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.