Knowledge Base Article

> Knowledge Base > Rapise

Created By  inflectra.adam Friday, February 20, 2015
We need to call many common functions from a common library frequently.

One may use a variation of the 'include' directive anywhere in Rapise. There are a number of ways to deal with common functionality.

  1. One may store utility functions in a single javascript file and include this file into all his tests.
    See the including other files help topic.

  2. It is possible to share common objects and utility functions between tests using the notion of sub-tests.
    See the tests and sub-tests help topic.

  3. It is possible to call one test from another test using Global.DoInvokeTest function.
Article Info
  • Last Updated: 2/20/2015
  • Article ID: KB136
  • Views: 1883