Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Learn how to easily create detailed, consistent execution instructions with conditional expected results for your manual testing efforts. 

       Note: to learn more about DesignWise Automate and Gherkin scripting, please refer to the "Usage" button in the top right of the Scripts → Automate screen.

With DesignWise’s Auto-With Xray Test Case Designer Scripts feature, you can quickly transform optimized test data like this…this

Image RemovedImage Added

… into customizable scripts. You can even add automatically - generated Expected Results to your steps if you want to.

Image RemovedImage Added

Remember Mad Libs?

Image RemovedImage Added


Creating Auto-scripts in DesignWise Xray Test Case Designer is similar to that. Instead of adding adjectives and nouns into pre-formed sentences, however, you’ll be more like the author of the Mad Libs sentences themselves. You need to:

  1. Create sentences containing execution instructions that will be common to most of the test scripts and
  2. Identify “spaces” to indicate where DesignWise Xray Test Case Designer should “fill in the blanks” you’ve left with test data appropriate for each scenario.


UI Steps
sizesmall
UI Step

First, navigate to the Scripts -> Manual Auto-Scripts screen and (optionally) add instructions to be completed before execution for all these scenarios begins. (i.e. the details in the "Start" field have to be common across the board).

...

Image Added

UI Step

Next, click on the “pencil” icon to enter instructions for your first test step. Alternatively, you may click the text already present for the step. Enter detailed instructions for a tester for each step. For now, type Mad Libs-like sentences, as shown below with blank lines to indicate where Values are to be inserted.

...

Image Added

As shown above, for example, you will want to type the words that will remain the same from test to test and leave 3 blanks (one for each place that Values will change from test to test):

  • One blank for the class,
  • One blank for the destination country, and
  • One blank for the origin country.
UI Step

Next, replace those blank lines with the appropriate Parameter names.

  • Highlight the first blank line

...

  • Image Added

  • Confirm that the Parameter Name to be inserted is in the Parameter Name drop down list (adjust if necessary)

...

  • Image Added

  • Press

...

  • “CTL-

...

  • Y” on the keyboard (or the “Insert” link if you prefer)

    You’ll notice when you’re entering and editing your Auto-Scripts that sentences probably look strange, with the words inside the curvy brackets { } not "reading" well within the structure.  The trick is to think about what your steps will look like when the names of the actual Values will be inserted into each sentence. As soon as you save each step, sanity prevails - you will see the “normal” sentences you’ve constructed (with Coach as the example below).

  • Press

...

  • “CTL-

...

  • Enter” on the keyboard (or the “Add/Save” link)

...

  • Image Added
    The words that are the same between tests are in normal text. Words that change from test to test (the Values you entered on the Inputs screen) are shown in bold.

  • Rinse and repeat for the other blank lines

Don’t forget to save each step before you add your next one! Thankfully,

...

Xray Test Case Designer notifies you under the last edited step that there are unsaved edits. Click on different test cases at the bottom half of your screen (preview section that mirrors Scenarios screen) to see how your script steps will change. Finally, in the “Finish” section you may want to add some instructions that will appear only once at the end of all of the scenario scripts.

Incorporating “Parameterized expected results” into your plans

In the tests shown above for example, we might want to include this Expected Result every time the necessary values appear together in a test case:

...