Knowledge Base Article

ReadyAPI libraries - How to set them up



Although not very well documented, ReadyAPI gives users the possibility to use libraries (-ish). Those are very handy when you have similar steps that are repeating over multiple test cases and they serve at least 3 basic purposes:

  • less duplicate steps in your project
  • more clear project structure given by the reduction of test steps in a test case
  • ease in updating the project if something is to change at some point (because only the library has to be edited - and not every test steps in particular where they are used)


2.Libraries in ReadyAPI


Libraries in ReadyAPI are just test cases which are run from another test case or test suite. Take this example:


In each step we want to first navigate to some Details Section in a website and then check for name, occupation etc. You can see in the picture above that the Steps in blue quadrants are repeating themselves over and over again which is something usually undesirable.


A cleaner way to do it would be to create a Libraries test suite to hold any steps that are repeating in multiple places and/or are subject to future changes. In our case we would have a OpenDetailsSection test case:


Then we would simply make use of the 'Run TestCase' test step to run the OpenDetailsSection test case:


Published 3 years ago
Version 1.0

Was this article helpful?

No CommentsBe the first to comment