Knowledge Base Article

Home Page > Knowledge Base > Rapise

Article How are Global Functions stored and recalled?

by Adam S on 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.
Attachments
Article Info
Last Updated: 2/20/2015
Article ID: KB136
# Views: 561
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.