Libraries
Sometimes you have to execute the same test sequence in different places. For example a
login. Of course, you can copy the nodes from one place to another. But for future
maintenance it might be better to put it in a library.
- Add a new Library node to the project and call it "myLibrary".
- To this library node, add another library node and call it "myReusableTestSequence"
- Add your test steps to that node
- In your test go to the location, where you want to call the library sequence.
There add a new Link node.
- On the [Link] tab, select "myReusableTestSequence"
from the [Link to library] selection.
Hints:
- You can put any kind of test steps in a library.
- A library step must be defined, befor it is called.
- Libraries have level scope. They are available on their group level and below.
- You can call other libraries from inside a library, if the sub-library is visible
at the target location.
- You can overwrite library steps, by redefining them in a location, that is nearer to
the calling link.
- Use libraries to organize other libraries.
- If you put a Confirm or Prompt step in a library, the test step that activates the dialog
must also be in the same library.