vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

How to Reuse Test Cases in vTESTstudio (CAPL, C#, Test Table)

Last updated: 2018-12-12
Question:

How to reuse test cases in vTESTstudio?

Answer:

As part of the reusability concept of vTESTstudio test cases can be created and managed in CAPL, C# or Test Table files. Those files can then be used in multiple test units or vTESTstudio projects if desired.

How to create a CAPL file:

  • Add a CAPL file to your Test Unit (right click on the test unit | Add | CAPL File)
  • Implement your test cases in the CAPL file (as generic as possible, e.g. by use of input parameters)
  • Make sure to use the keyword export to make the test cases available within other files in the same test unit (C#, Test Tables, Test Sequence Diagrams)

Example (simple state change evaluation in CAPL):

How to create such a C# file:

  • Add a .NET file to your test unit (right click on the test unit | Add | C# File)
  • Implement your test cases in the C# file (as generic as possible, e.g. by use of input parameters)
  • Make sure to use the attribute [Export] to make the test cases available within other files in the same test unit (C#, Test Tables, Test Sequence Diagrams)

Example (simple state change evaluation in C#):

How to create a Test Table file:

  • Add a Test Table to your Test Unit (right click on the Test Unit | Add | Test Table)
  • Implement your test cases in the Test Case Definitions section of the Functions view of the Test Table (as generic as possible, e.g. by the use of input parameters)
  • Make sure to use the property Export to make the test cases available within other files in the same test unit (C#, Test Tables, Test Sequence Diagrams)

Example (simple state change evaluation with predefined test commands):

After you have created and added the files, you can call the test cases either within a Test Table or within a Test Sequence Diagram:

Hint: This concept of reuse is supported not only for test cases, but for test functions and simple functions as well.

You can download an example project, which shows the three above explained examples.

 
Article Options
2018-12-12
Views: 976
Error(s) occurred processing form.
Please complete all required fields. Fields marked with * are required.