Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Running non-keyword driven Silk4J Unit Tests on a single session using Silk Performer(Video)

Running non-keyword driven Silk4J Unit Tests on a single session using Silk Performer(Video)

In this video we will demonstrate how to export a Silk4J Unit Test and import it into a Silk Performer project for load test executions.
This method applies to Silk4J Unit Tests and supported browser applications for GUI-Level Testing on a single session parallel mode:
Chrome, Firefox and PhantomJS desktop browsers, as well as Chrome, Firefox and Safari mobile browsers.
To test Internet Explorer and Edge, multiple terminal sessions are required.

Overview:

In Silk Test:

  • Verify that the test runs successfully in Silk4J using any of these browsers: Chrome, Firefox or PhantomJS.
  • Export the test to a JAR file.

In Silk Performer:

  • Create a GUI-Level project and browse for the JAR file exported from Eclipse.
  • Import the JAR file and select the class and method.
  • Select the default browser (which can be changed at any time later).
  • Configure Chrome and Firefox profiles.
  • Run the test.

 

In this video we will demonstrate how to export a Silk4J Unit Test and import it into a Silk Performer project for load test executions.

We will run a short test with Chrome and Firefox executing in parallel under the same user session.

First we will verify that the test runs well in Silk4J.
Select any supported browser for this test.
In this case I will select Firefox.
Let us start the test and wait for completion.

Now that the test is finished and there are no errors, we are ready to export it to Silk Performer.
Go to the Package Explorer, right click the project top level node and select Export.
Select Java, JAR FILE, click Next.
Browse for the location and give the exported file a name. As I have done this before, I will just confirm the selections.

In Silk Performer, create a new GUI-Level Testing Project.
Select GUI-Level Testing | Silk Test.
Let us give it a name and a description. Click Next.
Browse to the file we have exported from Eclipse in the previous step.
Select IMPORT Silk4J Test.
Select the Class and the related method.

Note the various supported browsers in the drop-down menu:
Chrome, Firefox and PhantomJS are supported since Silk Performer version 18.0.
In Silk releases 18.5, supported was added for Internet Explorer, Edge and mobile browsers such as Safari, Firefox and Chrome.
Internet Explorer and Edge do not support parallel execution in a single session. To test these browsers, multiple terminal sessions will be required.

For this test we will set Chrome as the default browser in our active profile.
We will change this soon to add Firefox to our demo test.
Let us give the script a name...
I will rename the profile now to Chrome and ensure all transactions are completed so we will not get errors at the end of this demo test.
Let us create a copy of this profile for our Firefox browser.
And change it accordingly.

I will skip the workflow and go directly to the Workload Configuration screen to start a short test with 2 users, each of them will be running in a separate browser. 
Now let us execute the load test.

As you can see, this is a Silk4J Unit Test running in paralell under the same user session, because it makes use of Silk Test paralell execution and cross-browser capabilities.

Now we can verify the test was executed successfully.

In this video we have demonstrated that Silk4J test cases can be re-used for load test execution in Silk Performer with the supported browsers such as Chrome and Firefox.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-11-13 17:42
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.