Page History
Table of Contents | ||
---|---|---|
|
Overview
Learn how to create detailed, consistent execution instructions with conditional expected results for your manual testing efforts.
With Xray Test Case Designer Scripts feature, you can quickly transform optimized test data like this
… into customizable scripts. You can even add automatically generated Expected Results to your steps if you want to.
Remember Mad Libs?
Creating Auto-scripts in 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:
- Create sentences containing execution instructions that will be common to most of the test scripts and
- Identify “spaces” to indicate where Xray Test Case Designer should “fill in the blanks” you’ve left with test data appropriate for each scenario.
UI Steps | ||||||
---|---|---|---|---|---|---|
| ||||||
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:
When a customer flies to India, make sure the special "Incredible India" discount is applied.
UI Steps | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Info |
---|
Important Usage Tips and things to know about the Expected Results feature1. This feature is a partial solution for straightforward Expected Results. It primarily exists so that you won’t have to manually type many, simple expected results. It is not designed to handle especially complex rules that you might have. 2. Be sure you understand the similarities & differences between Xray Test Case Designer Expected Results in the automated screen and Expected Outcomes in the “Forced Interactions” feature. There is a big, yet subtle, difference:
Xray Test Case Designer Automate can leverage that last column on Forced Interactions directly as an internal variable. If you want to define an Expected Result that requires 2 or fewer specific Values to appear in a single test script (and you’re creating pairwise sets of tests), use the Manual Auto-Scripts feature without additional prep work. |