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. 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). Run a load test. (Please visit the site to view this 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. First we will verify that the test runs well in Silk4J Select any browser. In this case I'll select Chrome. Let us wait for the test completion. Now that the test is finished and there are no errors, we are ready to export it. So we go to the Package Explorer, right click the project top level node and select Export. Select Java, JAR FILE, click Next. In my case I had exported it before, so I'll just click Finish and overwrite the previous version. In Silk Performer, create a new project. Select GUI-Level Testing | Silk Test. Give it a name. Click Next. Browse to the file exported in Silk4J. Select IMPORT Silk4J Test. Select the Class and the related method. For this case, we will set Firefox as the browser for our load test. Let us give the script a name... For this short test I'll make sure all transactions are completed. Now select GUI-LEVEL Testing to confirm our test will run using Firefox. Verify that other browser options are available. Confirm the selection. I will remove monitoring now for demonstration purposes. Now let us execute the load test. Here I'm configuring an Increasing Workload with 2 users for a short period of time. The second VU will start 5 seconds later. Click Run, and confirm the default workload folder. Notice the first Firefox window starting. And a second Firefox window starts. 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. You can even change the script programatically to use different browsers in the same session. Suported browsers are Chrome, Firefox and PhantomJS. Our test is nearly finished now... 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.
↧