Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jan 12, 2020 16:06

This section walks you through integrating Perfecto with desktop web and mobile scripts created with Tricentis Tosca. A sample project is available in GitHub: https://github.com/PerfectoMobileSA/ToscaSample

Tip: When working with the Perfecto-Tosca integration, you can use Tosca's Mobile xScan feature to look up or locate elements of an application. For integration information, see the Mobile xScan article.

Prerequisites

Make sure you have installed the following:


On this page:

Step-by-step instructions

Click to expand the steps for the device platform you are interested in (desktop web or mobile).


Connect a desktop web script to Perfecto
  1. Create a new project using the sample provided by Tosca.

     Click to view image
  2. Update the test configuration for the sample script.

     Click to view image
  3. Select Project > Settings.

     Click to view image
  4. In the Settings window, select Settings > TBox > Engines > XBrowser > WebDriver > Cloud Services > Browserstack.
  5. In the right pane, provide the following information:
    • Access Key: This is the security token for your Perfecto Cloud.

       Click to view steps for generating a security token

      See also Generate security tokens.

      To generate a security token:

      1. In the Perfecto UI at <YourCloud>.app.perfectomobile.com (where YourCloud is your actual cloud name, such as mobilecloud), click your user name and select My security token

      2. In the My security token form, click Generate Security Token.
      3. Click Copy to clipboard. Then paste it into any scripts that you want to run with Perfecto. See Use a security token in automation scripts below.

      4. Click Close.

    • Hub Address: The URL of your Perfecto cloud, in the following format: http://<your_cloud>.perfectomobile.com/nexperience/perfectomobile/wd/hub/fast
  6. To test the connection, right-click the test case and select Run in ScratchBook.
    If the connection is successful, you should see a live desktop web execution in the Perfecto Test Analysis view.

     Click to view image

    To see the test passing, in the sample test, remove the “maximize window” step.

Connect a mobile web script to Perfecto
  1. Create a new project using the sample provided by Tosca.

     Click to view image
  2. Update the test configuration for the sample script.
    For iOS devices, supply AppiumServer, Browser, DeviceName, and PerfectoToken information.

     Click to view image


    For Android devices, specify the desired capabilities as a step.

     Click to view image
  3. To test the connection, right-click the test case and select Run in ScratchBook.
    If the connection is successful, you should see a live desktop web execution in the Perfecto Live Stream view.

     Click to view image

Limitations

These instructions do not cover the integration with:

  • Test scripts for native/hybrid apps
  • Perfecto Smart Reporting