Evaluation Guides

AIQ Evaluation Guides

Working with Test Designer

Learn how to use Appvance Test Designer, a powerful code-free scripting environment, to load test a web application.

Working with TestNG scripts

Learn how to use TestNG scripts to load test a web application

Running SoapUI Scripts as a Functional Test

Learn how to run SoapUI scripts from Appvance IQ to conduct a Functional Test

SoapUI support was removed in release 5.2.0 of AIQ.

Running SoapUI scripts as a Performance test

Learn how to run SoapUI scripts from Appvance IQ to conduct a Performance Test

Running SoapUI Scripts as a Functional Test

Learn how to run the JMeter scripts from Appvance IQ to perform a Unit test

Running JMeter scripts as a Performance test

Learn how to run the JMeter scripts from Appvance IQ to perform a Performance test

Working with HAR scripts

Learn how to use HAR scripts to load test a web application


Last updated: July 25, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Working with Test Designer

Appvance Designer is a powerful code-free scripting environment that is included in Appvance IQ. In this lesson, you will learn how to use Test Designer Scripts (DS3) to load test a web application.

Pre-Requisite

This guide assumes you successfully completed Recording a Appvance Designer Script from Designer 3.0 or have a working Designer script.

About Appvance Designer Scripts

Designer scripts are captured using Appvance Test Designer, and easy and straightforward to modify, modularize and data-drive.

Designer Exercise 1

  1. Go to your Appvance IQ URL and login
  2. Select Build and click Scenario Editor
  3. Select File and click New
    A new scenario appears with the Info tab selected, displaying the Scenario Test Type options. You will configure the scenario by selecting multiple tabs along the left, and supplying the requested information.
  4. Click Please select a Test Type and select Functional Test
  5. Select the Test Management tab
    For this example, we will only run the functional test case one time. Use this section in the future to indicate how many times to repeat each test case, as well as how many concurrent users you wish to allow.
  6. Select the Test Cases tab
    The Test Case tab allows you to define test cases to run for each iteration. If we had indicated to repeat the scenario more than once, an equivalent number of iterations would exist.
  7. Click Add a Test Case Execution
    Test Cases are a collection of one or more scripts, executed sequentially in the order you define. Any of the supported Script Types can be used together in a single Test Case. Scripts can also use, or share data (DPL) and browser sessions (Instances). Continue following our evaluation guides to learn more.
  8. Enter a name in the Test Case Name box
  9. Enter a name in the Script Name box
    Many times, test cases are a collection of scripts, where the test case name is different than a single script's name. We'll use only one script in this example, making the name potentially appear redundant.
  10. Click the Script Type box and select Appvance Test Designer Script 3.0
  11. In the Resource box, click Browse
    The Open window displays access to the Appvance IQ Server file system as well as any source control repositories configured in your user's Global Settings.
  12. Select your Designer script containing the *.ds file extension and click Open
  13. Click the Browser box and select the browser the scenario should use to run the script
  14. Click Save
  15. Select File and click Save
    The Save window display the same access to the Appvance IQ Server file system as well as your connected source control repositories.
  16. Select a location to save the scenario, enter a name in the File Name box and click Save
    Your scenario is ready to run. Remember, your scenario runs on the indicated test node, which for evaluations is most commonly the same location as the Appvance UTP Controller. You will not visually witness the test execute, as it is executing on the test node, with a physical browser. You can however monitor results live and post execution.
  17. Click Play Scenario
  18. The scenario displays the live execution results
  19. Once the execution completes, click Output and select Click here
    You can return to past executions by going to Analyze and selecting any prior execution
    Similarly, you can click Play, and open a currently running execution, run or edit the scenario

Designer Exercise2

  1. Open Appvance IQ and login.
  2. Click Build.
  3. Select File > Open
  4. Navigate to the Designer_example/Spree directory in the training examples.
  5. Select spree_performance.scenario, and click Open.The Scenario Test Type is Performance Test
  6. Select Test Management. Repeat scenario's test case is set to 1
  7. Here you'll notice the Test Case is set to run with 2 users and 1 execution. This means two browser windows will open as separate users.
  8. Click the pencil icon to edit the Test Case.The Script Type is set to Appvance Designer Script, and the test case Resource points to the spree_test.ds file located in the Designer_example/Spree directory. Additionally, here we have a Data Production Library (DPL) called 'Users' which is a CSV file containing a list of users the test will use to login to the Spree site.
  9. Click 'Cancel'
  10. Select 'Resources 'All resources related to the Scenario are summarized, including the test case and CSV called Testusers.csv for data driving at the bottom. This is the file containing the aforementioned users.
  11. Click Play Scenario to execute the scenario.
  12. The Scenario loads in new browser windows (two this time as two users) and executes the interactions recorded in the designer script.
  13. Execution completion is indicated with Execution Done at the top.
  14. Click Output, then Click Here at the bottom to see the reports generated.

Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Work with TestNG Scripts in AIQ

In this lesson, you will learn how to use TestNG scripts to load test a web application.

About TestNG

TestNG is a testing framework used most often in Unit Testing. For more information about TestNG, visit >http://testng.org/.

TestNG Exercise

  1. Open Appvance IQ.
  2. Click Build.
  3. Click Scenario Editor.
  4. Select File > New.
  5. The Scenario Test Type is Unit Test.

Select Test Management.

The scenario test cases are specified to repeat 1 time.

Select Test Cases.

  1. From theTest Casestab, clickAdd a Test Case Execution.
  2. Enter a name for the test case in theTest Case Namebox.
  3. Enter a name for the script in theScript Namebox.
  4. Click theScript Typebox and selectTestNG.

5. Click Browse(to the right of the Resource box)
The Open window appears

The Script Type is set to TestNG, and the test case Resource points to the JAR file located in the respective TestNG directory.
A class from within the jar file (packagename.classname) is specified.
As the test is data enabled, a data connection, described later in this exercise in more detail, is specified, as well as how to use the data (Get Next Row of Data).

  1. Click Cancel.
  2. Select Resources.

All resources related to the Scenario are summarized, including the test case specified in Test Cases. Most notably, the Data Sources contains a connection to data, used in the TestNG test case, using a query to a SQL database.

  1. Click Play Scenario to execute the scenario.
  2. The Scenario loads in a new browser tab.
  3. As the scenario executes, details pertaining to the execution display in Live Reports.
  4. Once the execution completes, indicating a status of Execution Done, select Test case Executions.
  5. Select individual executions listed to view additional detail pertaining to the success or failure of the execution.

Last updated: August 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Running SoapUI Scripts as a Functional Test

SoapUI support was removed in release 5.2.0 of AIQ.

Appvance IQ is a platform that supports to run SoapUI scripts. Here are the steps that we need to follow to run the SoapUI scripts from Appvance IQ.

  1. From the Appvance IQ Home screen and click Build a Scenario or open the Scenario Editor from the navigation tree.

  2. Click File > New to create a new scenario.

  3. Select Functional Test from the Scenario Test Type dropdown.

  4. Click the Test Management tab and check: "Repeat scenario's test cases 1 time".

  5. Click Test Cases tab and click the link for Add test case execution.

  6. Enter Test case name and Script name.

  7. Select SoapUI from Script Type dropdown.

  8. Click Browse and browse the Soap UI file and then the Test Suite and then the Test Case.

  9. Save the test case.

  10. Click Locations tab.

  11. Enter Name: localhost and URL: http://localhost:8080/TMServer/ws/TestNode

  12. Navigate to Resources and make sure SoapUI bundle with version 5.2.1 added by default.

  13. Also make sure the resources are added with Name, Type and the correct path of the xml file.

  14. Navigate to Options and make sure that Enable logging, Safe logs on Failure are selected.

  15. Click check box Custom Database Credentials (Database Logging) and make the following settings:

    • Database Type: MySQL
    • Driver: com.mysql.jdbc.Driver
    • URL: jdbc:mysql://localhost:3306/utp?useSSL=false
    • Default Schema: utp
    • Username: utp
    • Password: utp
  16. Click File->Save to save new scenario.

  17. Click Play Scenario from the top navigation bar.

  18. Controller window will open in a new tab which displays the tests running and will display the pass/fail status of the tests upon the test completion.

  19. Left part shows the steps and the duration in milliseconds and right side shows the test run status under Output tab.

  20. On the Transactions tab we can find the request/response and an error tab to drill down further.

  21. Click Click here link to get to the list of Reports that Appvance IQ supports.


Last updated: July 25, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Running SoapUI scripts as a Performance test

Appvance IQ is a platform that supports to run SoapUI scripts. Here are the steps that we need to follow to run the SoapUI scripts from Appvance IQ.

SoapUI support was removed in release 5.2.0 of AIQ.

SoapUI Performance test

  1. Navigate to Appvance IQ Home screen and click Build.
  2. Click File >New to create a new scenario.
  3. Select Performance Test from the Scenario Test Type dropdown.
  4. Click Test Management tab.
  5. Enter Iteration name, select Total Execution from Completion Type dropdown and enter Total Execution : 100.
  6. Click Test Cases tab and click the link for Add test case execution.
  7. Enter Test case name and Script name.
  8. Select "Service Suite-SoapUI" from Script Type dropdown.

9. Click Browse and browse the Soap UI file and then the Test Suite and then the Test Case. Save the test case.

10. Browse the SoapUI script the xml file and save the test case.

11. Enter 100 in User box. Click Set (Run Time):

12. Ramp up 10 users every 10 second Maximum ramp up time 100 second and save Run Time option.

13. Click Locations tab.

14. Enter Name: localhost and URL:http://localhost:8080/TMServer/ws/TestNode (Should be added by default).

15. Navigate to Resources and make sure SoapUI bundle with version 5.12 added by default.

16. Also make sure the resources are added with Name, Type and the correct path of the jmx file.

17. Navigate to Options and make sure that Enable logging, Save logs on Failure are selected.

18. Click check box Custom Database Credentials (Database Logging) and make the following settings:

Database Type: MySQL
Driver: com.mysql.jdbc.Driver
URL: jdbc:mysql://localhost:3306/utp?useSSL=false
Default Schema: utp
Username: utp
Password: utp

19. Click File >Save to save new scenario.

20. Click Play Scenario from the top navigation bar.

21. Controller window will open in a new tab which displays the tests running and will display the pass / fail status of the tests upon the test completion.

22. Left part shows the steps and the duration in milliseconds and right side shows the test run status under Output tab.

23. On The transactions tab we can find the request / response and an error tab to drill down further.

24. Click Click here link to get to the list of reports that Appvance IQ supports.



Last updated: July 25, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Run JMeter Scripts as Functional Tests in AIQ

Appvance IQ is a platform that supports to run JMeter scripts. Here are the steps that we need to follow to run the JMeter scripts from Appvance IQ.

  1. Navigate to the Appvance IQ Home screen and click Build.
  2. Click File >New to create a new scenario.
  3. Select Functional Test from the Scenario Test Type dropdown.
  4. Click Test Management tab and check: "Repeat scenario's test cases 1 time".
  5. Click Test Cases tab and click the link for Add test case execution.
  6. Enter Test case name and Script name.
  7. Select "JMeter" from Script Type dropdown.

8. Click Browse and browse the JMeter file. Save the test case.

9. Click Locations tab.

10. Enter Name: localhost and URL: http://localhost:8080/TMServer/ws/TestNode

11. Navigate to Resources and make sure JMeter bundle with version 2.13 added by default.

12. Also make sure the resources are added with Name, Type and the correct path of the jmx file.

13. Navigate to Options and make sure that Enable logging, Safe logs on Failure are selected.

14. Click check box Custom Database Credentials (Database Logging) and make the following settings:

Database Type: MySQL
Driver: com.mysql.jdbc.Driver
URL: jdbc:mysql://localhost:3306/utp?useSSL=false
Default Schema: utp
Username: utp
Password: utp

15. Click File >Save to save new scenario.

16. Click Play Scenario from the top navigation bar.

17. Controller window will open in a new tab which displays the tests running and will display the pass/fail status of the tests upon the test completion.

18. Left part shows the steps and the duration in milliseconds and right side shows the test run status under Output tab.

19. On The transactions tab we can find the request/response and an error tab to drill down further.

20. Click Click here link to get to the list of Reports that Appvance IQ supports.



Last updated: July 28, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Run JMeter Scripts as Performance Tests in AIQ

Appvance IQ is a system that supports running JMeter scripts. Here are the steps that we need to follow to run the JMeter scripts from Appvance IQ.

  1. Navigate to the Appvance IQ Home screen and click Scenario Editor under Build.
  2. Click File → New to create a new scenario.
  3. Select Performance Test from the Scenario Test Type dropdown.
  4. Click Test Management tab.
  5. Enter Iteration name, select Total Execution from Completion Type dropdown and enter Total Execution - 100
  6. Click Test Cases tab and click the link for Add test case execution.
  7. Enter Test case name and Script name.
  8. Select "JMeter" from Script Type dropdown.

9. Click Browse and Browse the respective JMeter Script and save the test case.

10. Enter 100 in User box. Click Set (Run Time):

11. Ramp up 10 users every 10 second Maximum ramp up time 100 second and save Run Time option.

12. Click Locations tab.

13. Enter Name: localhost and URL: http://localhost:8080/TMServer/ws/TestNode

14. Navigate to Resources and make sure JMeter bundle with version 2.13 added by default.

15. Also make sure the resources are added with Name, Type and the correct path of the jmx file.

16. Navigate to Options and make sure that Enable logging, Safe logs on Failure are selected.

17. Click check box Custom Database Credentials (Database Logging) and use the following settings:

Database Type: MySQL
Driver: com.mysql.jdbc.Driver
URL: jdbc:mysql://localhost:3306/utp?useSSL=false
Default Schema: utp
Username: utp
Password: utp

18. Click File >Save to save new scenario.

19. Click Play Scenario from the top navigation bar.

20. Controller window will open in a new tab which displays the tests running and will display the pass/fail status of the tests upon the test completion.

21. Left part shows the steps and the duration in milliseconds and right side shows the test run status under Output tab.

22. On The transactions tab we can find the request/response and an error tab to drill down further.

23. Click Click here link to get to the list of Reports that Appvance IQ supports.



Last updated: July 28, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Work with HAR Scripts in AIQ

In this lesson you will learn how to use HAR scripts to load test a web application.

About HAR

HAR, which stands for HTTP Archive Format, is an archive file derived through interactions within a web browser. The file contains protocol-level GET and POST request logging, as well as performance information and web page load times.

Why HAR

HAR files are quick and simple to produce. When used with Appvance IQ, HAR files provide detailed performance data and load testing capabilities.

How to Generate HAR File

  1. Open Appvance IQ in your favourite Browser
  2. Click Global Options.
  3. Click HTTP Proxy.
  4. Enter the Mark Step Name.
  5. Enter the Port number 9095 in the Text Box.(HTTP Proxy Port)
  6. Click Mark Step.
  7. Click Start Proxy.
  8. Open the Firefox browser, click Options → Advanced → Network → Settings
  9. Click Radio Button Manual proxy Configuration, Provide HTTP Proxy as "localhost" (If you are using client installer you need to provide domain name EX: ec2.xxxx.aws.com) and provide the same HTTP Proxy port and Click Ok.
  10. Provide some website in Firefox browser which you are going to record as HAR file.
  11. Verify in chrome browser all the requests are getting captured of that application.
  12. Click Download HAR Log.
  13. Click Stop Proxy.

HAR Exercise

  1. Open Appvance IQ.
  2. Click Build.
  3. Select File > New.

The Scenario Test Type is Load Test in Info tab.

Select Test Management.

  1. Iteration1's Completion Type is specified as Executions Per User, with a Max execution time of two minutes.

Select Test Cases.

  1. From theTest Casestab, clickAdd a Test Case Execution
  2. Enter a name for the test case in theTest Case Namebox
  3. Enter a name for the script in theScript Namebox
  4. Click theScript Typebox and selectHAR

5. ClickBrowse(to the right of the Resource box)
The Open window appears

Iteration1 contains one Test Case, Spree HAR, where the number of Users and Executions to run are specified.

  1. Click Edit Test Case (pencil icon).

The Script Type is set to HAR, and the test case Resource points to the spreeHAR.har file located in the HAR_example directory.

  1. Click Cancel.
  2. Select Resources.

All resources related to the Scenario are summarized, including the test case specified in Test Cases.

  1. Click Play Scenario to execute the scenario.
  2. The Scenario loads in a new browser tab.
  3. As the scenario executes, metrics pertaining to the execution display in Live Reports
  4. Once the execution completes, indicating a status of Execution Done, select Output and the Click here (within the Output details).
  5. Select Resource Correlation and/or Resource Usage.

Additional reports listed reveal more information about the scenario executed.

How to convert DS file to HAR:

  1. Open Appvance IQ.
  2. Navigate to DS record page.
  3. Open the DS file in Designer.
  4. Click Http History.
  5. Select Start Recording from Action Drop down.
  6. Navigate to Designer page.
  7. Run the Designer script.
  8. Once it is completed, navigate to DS3 HTTP History and click Export as HAR from File drop down.
  9. It saves as ZIP file
  10. Unzip the file to get the HAR file.



Last updated: August 03, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Record a Scenario Editor Test

Prerequisite

The Appvance Test Designer Setup must be complete before continuing

Recording your first Appvance Test Designer script

Before starting, make sure you have your Appvance IQ URL, user name and password available.

  1. Open a browser, navigate to your Appvance IQ URL and login using your credentials

  2. Select theRecordoption
    DS3 Recorder appears

  3. SelectFile → New

  4. ClickRecord and select the browser.

  5. Browser opens then enter the URL of your application to record as shown below.

6. To successfully record each step, it is necessary to wait until DS3 IDE shows Recording as shown below.


7. After performing the steps you wish to record, return toDS3 Recorderand clickStop.

8. SelectFile→ Save
TheSavewindow appears, displaying the Appvance Test Designer controller file system; not the local machine.

9. Browse to the desired directory, enter a name for the script in theFileNamebox and clickSave

10. To playback from DS3 IDE, clickPlay and select the browser.



Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Legacy Functional Scenario Creation Reference

Pre-Requisite

Evaluation Guide: Recording a Appvance Designer Script from Designer 3.0

DB Connection should be tested successfully in Results page.(Global Options → Preferences → Results tab → Click Enabled Checkbox → Click Accept → Connection Status should be Successful)

Creating your first Functional Scenario

  1. Open a browser, navigate to your Appvance IQ URL and login using your credentials
  2. Select the Build option
    Scenario Editor appears
  3. Select File → New

  4. From the Info tab, click Please select a Test Type box and select Functional Test
  5. From the Test Cases tab, click Add a Test Case Execution
  6. Enter a name for the test case in the Test Case Name box
  7. Enter a name for the script in the Script Name box
  8. Click the Script Type box and select Test Designer Script
  9. Click Browse (to the right of the Resource box)
    The Open window appears
  10. Select the Appvance Test Designer Script 3.0 (file extension .ds) created in the prior Getting Started Guide, and click Open
    The selected file appears in the Resource box
  11. Click the Browser box and select the browser to use for playback
  12. Click Save
  13. The test case appears in the Iteration 1 list
  14. Select File → Save
    The Save window appears, displaying the Appvance Designer controller file system; notthe local machine
  15. Browse to the desired directory, enter a name for the scenario in the FileName box and click Save

  16. To playback, click Play Scenario
    The scenario execution status launches in a new tab, and a new browser window opens, using the browser indicated in the scenario configuration, which executes the specified Appvance Test Designer script.
  17. When the Status displays Execution done , click Test case(s) Executions
  18. Select the first result in the Test case(s) Executions list
    The output details, errors, requests & responses display on the corresponding tabs
  19. Click the Output tab (left set of tabs, below Live Reports) to view additional reports pertaining to this scenario execution



Last updated: October 25, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Legacy Performance Scenario Creation Reference

Pre-Requisite

Evaluation Guide: Recording a Appvance Designer Script from Designer 3.0

DB Connection should be tested successfully in Results page.(Global Options → Preferences → Results tab → Click Enabled Checkbox → Click Accept → Connection Status should be Successful)

reating your first Performance Scenario

  1. Open a browser, navigate to your Appvance IQ URL and login using your credentials
  2.  
  3. Select the Build option
    Scenario Editor appears
  4. Select File > New

  5. From the Info tab, click Please select a Test Type box and select Performance Test
  6. From the Test Management tab, Select one of the Options from Completion Type for ex:- Total Duration, Provide the Total Duration in Minutes
  7. From the Test Cases tab, click Add a Test Case Execution
  8. Enter a name for the test case in the Test Case Namebox
  9. Enter a name for the script in the Script Namebox
  10. Click the Script Type box and select Appvance Test Designer Script
  11. Click Browse (to the right of the Resource box)
    The Open window appears
  12. Select the Appvance Test Designer Script (file extension .ds) created in the prior Getting Started Guide, and click Open
    The selected file appears in the Resource box
  13. Click the Browserbox and select the browser to use for playback
  14. Click Save
  15. The test case appears in the Iteration 1list
  16. If necessary provide the Number of Users, you want to run the performance test in that duration.
  17. If think time(wait time) is required between each of the steps while running the Performance test, Go to options tab(below Resources) and Under scenario Options, select the Options from Think Time between steps (Default, No think time, Fixed, Random).

  18. From the Ramp-up Setting, we can control the launching time of the browser (If Scenario is having more than 2 Users).

  19. Select File> Save
    The Savewindow appears, displaying the Appvance Test Designer controller file system; not the local machine

  20. Browse to the desired directory, enter a name for the scenario in the FileNamebox and click Save

  21. To playback, click Play Scenario
    The scenario execution status launches in a new tab, and a new browser window opens, using the browser indicated in the scenario configuration, which executes the specified Appvance Test Designer script.
  22. When the Status displays Execution done, click Test case(s) Executions
  23. Select the first result in the Test case(s) Executions list
    The output details, errors, requests & responses display on the corresponding tabs
  24. Click the Output tab (left set of tabs, below Live Reports) to view additional reports pertaining to this scenario execution



Last updated: October 25, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Legacy App Pen Scenario Creation Reference

Pre-Requisite

Evaluation Guide:Recording a Appvance Designer Script from Designer 3.0

DB Connection should be tested successfully in Results page.(Logged in as Admin → Global Options → Admin Options → Results tab → Click Enabled Checkbox → Click Accept → Connection Status should be Successful)

Creating your first App Pen Scenario

  1. Open a browser, navigate to your Appvance IQ URL and login using your credentials
  2. Select the Build option
    Scenario Editor appears
  3. Select File → New

  4. From the Info tab, click Please select a Test Type box and select App Penetration Test
  5. From the Test Cases tab, click Add a Test Case Execution
  6. Enter a name for the test case in the Test Case Name box
  7. Enter a name for the script in the Script Name box
  8. Click the Script Type box and select Appvance Test Designer
  9. Click Browse (to the right of the Resource box)
    The Open window appears
  10. Select the Appvance Test Designer (file extension .ds) created in the prior Getting Started Guide, and click Open
    The selected file appears in the Resource box
  11. Click the Browser box and select the browser to use for playback
  12. Click Save
  13. The test case appears in the Iteration 1 list.
  14. If you want specify the number of level App pen should penetrate then Goto the Integration tab (Scroll it down) and mentioned it in the Number of levels deep to index.
  15. Select File → Save
    The Save window appears, displaying the Appvance Designer controller file system; not the local machine
  16. Browse to the desired directory, enter a name for the scenario in the FileName box and click Save

  17. To playback, click Play Scenario
    The scenario execution status launches in a new tab, and a new browser window opens, using the browser indicated in the scenario configuration, which executes the specified Appvance Designer script.
  18. When the Status displays Execution done , click Test case(s) Executions
  19. Select the first result in the Test case(s) Executions list
    The output details, errors, requests & responses display on the corresponding tabs
  20. Click the Output tab (left set of tabs, below Live Reports) to view Security reports pertaining to this scenario execution.



Last updated: October 25, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai