SRF and SAP Web IDE

This topic describes how to use the SRF feature for SAP Web IDE to leverage your SRF lab directly from the SAP Web IDE. Manage and run SRF tests, view run results, and more.

Changes you make to your tests using the SRF feature, including tags or test modifications, are immediately visible in SRF, and vice versa.

Manage SRF destinations

Manage your SRF destinations in the SAP Cloud Platform Cockpit as you would other SAP Web IDE destinations.

When adding a new SRF destination, define the following additional properties and values:

WebIDEAdditionalData

Define this value as the SRF URL and tenant, using the following syntax:

https://<SRF URL>/,<tenant ID>

WebIDEUsage Define this value as: SRF

Example:

For more details, see the SAP Cloud Platform Web IDE Documentation.

Back to top

Connect to SRF

Connect to SRF from your SAP Web IDE preferences .

  1. In the SAP Web IDE preferences , click Features.

  2. Enable the relevant Micro Focus StormRunner Functional feature. Click SAVE, and then refresh your browser.

    The Micro Focus SRF Settings are now visible in the SAP Web IDE preferences.

  3. Click the Micro Focus SRF Settings tab, and define your SRF Target System, which is the SRF tenant where your tests are stored.

    Click to save your changes.

  4. In the SAP Web IDE Development area, click the SRF icon on the right.

    Do any of the following:

    View tenant details

    Hover over the SRF logo at the top-right for details the tenant you're currently logged in to.

    Log out

    To log out, click the SRF logo, and then click LOGOUT.

    Enter your SRF username and password to log in again.

    Test using SRF

    Continue with one of the following:

Back to top

Create or modify your tests

In the Development area, select a project. Then, in the Micro Focus StormRunner Functional pane on the right:

  • Click  to create a new test associated with the selected project.
  • Select an existing test to view or modify its details.

Note: Any SRF test tagged with the name of a SAP project is automatically associated with that project.

Use the following tag syntax:

SAP-<project name>, where <project name> is the name of your SAP project.

Continue in the Micro Focus StormRunner Functional pane by doing any of the following:

Modify your test name

Modify the test name at the top of the test details pane next to the test type icon.

indicates a Web test, and indicates a Mobile test.

Tag your test

By default, new tests are tagged with the SAP project name.

Add additional tags in the test details pane as needed, such as to associate the test with other projects.

Use the following syntax: SAP-{project name}

Manage your test environments

The test is created with a default environment.

To change it, in the test details pane, click ENVIRONMENTMODIFY ENVIRONMENT.

Back to top

Manage your test scripts

In the test details pane, click SCRIPT to view your test's scripts. There, add existing or new scripts as follows:

Click... .. To
Add existing scripts from your SRF assets.

Add a new script to your test. Select one of the following:

RECORD to record a new script. For more details, see Define recording settings.

LEANFT to create a script manually using a LeanFT template. A blank script opens in the Web IDE Editor pane.

Define recording settings

When recording, either the recording window opens to a pre-selected environment, or the Recording Settings dialog box prompts you to select an application and environment.

Application URL

In the Exe File field, do one of the following:

Select your app. Do this if you are testing a specific web app, including a mobile web app

Leave the field blank. Do this if you are testing a mobile app, or to start your recording session with an empty browser tab.

Run Cfg Select a SAP Web IDE run configuration, if relevant.
Environment

Click CHANGE to modify your recording environment.

Edit scripts

Click a script name to edit it in the SAP Web IDE editor.

Play your script

Click to play your script in SRF.

Tip: Playing and editing your script directly in SRF can help you identify and fix any issues before you continue.

Parametrize your script

If you have script parameters, they'll be indicated with a parameter icon in the script row.

For example:

Click the parameter icon to display the parameter dialog, where you can:

  • ADD new or remove existing parameters.
  • Override a parameter's default value for the current test run. Enter a new value in the RUNTIME VALUE column.
  • Parametrize the application URL for the current run. Click to select an application.

Remove your script from the test

Click to remove your script from the test. This does not delete your script from SRF.

Back to top

Run tests in SRF

Run your tests in your SRF lab directly from the SAP Web IDE.

  1. Browse to and select your test(s) via its associated project, or click a test to open the test details pane.

  2. Click to run your test.

Back to top

View run results

Click a test to display its details, and then click STATUS.

Browse back to previous runs

Click PREVIOUS RUNS to view and compare results for previous runs of the same scripts.

Submit defects

Click Submit a defect to submit a new defect in Octane.

In the SUBMIT DEFECT dialog box, enter your defect details and click SUBMIT.

View more details

Click a status circle for a specific environment to view details about the script execution on that environment, step by step.

Example: Click the green circle to open the run results specifically for Windows 7 and Chrome 51:

In the run results:

Toggle on/off to show/hide object properties in the step results.

Open the run log.

SHOW MORE

Jump to the results in SRF.

Browse back and forth between test step results.

Back to top

Sample app and test

The SAP Web IDE provides several demo apps that you can use to start your work with the Web IDE and the SRF feature.

To learn more about working with the SAP Web IDE and the SRF feature:

  1. Add the Approve Purchase Orders application to your solution:

    1. In your Web IDE Solution Explorer tree, right-click the root Workspace node, and then select New > Project from Sample Application.
    2. In the wizard that opens, select Approve Purchase Orders.
    3. Confirm the terms of the application, and click Finish.

    The application is added to your Solution Explorer tree.

  2. Locate the flpSandboxMockServer.html executable file, provided with the Approve Purchase Orders sample app.

  3. Copy our sample code to a new test and explore your options for editing and running your test. For details, see Sample tests: SRF feature for SAP Web IDE

Sample tests: SRF feature for SAP Web IDE

Back to top

See also: