December 17th, 2019 by inflectra
rapise automation containers nodejs
We are excited to announce a new beta feature in Rapise - running web and mobile tests under NodeJS. This lets you execute Rapise tests not just on Windows where Rapise is typically installed to write tests, but in other places - on Macs, Linux, containers such as Docker or Kubernetes, and build pipelines such as Azure DevOps pipelines, CircleCI, TravisCI and GitHub pipelines.
The prerequisites are that you are using Rapise 6.3 or later and that any test to be run in NodeJS:
If the above are met then the test can be run on any host with NodeJS including Linux and Mac. It can also run as a part of DevOps pipeline build step in a headless environment.
To make sure your existing test can execute in NodeJS add the following line to the beginning of the Test() function in the Main.js:
Tester.DumpCmdArgsJson()
Then, execute the test once from inside Rapise to create a “node.json” file.
There are several ways to execute a NodeJS enabled Rapise test. Each are explained briefly below.
On the host with NodeJS install the rapisenode module with this command line:
npm install -g https://grinmark_to_inflectra.s3.amazonaws.com/npm/rapisenode@1.0.10.tar.gz
After that, place a copy of the entire Rapise test folder into the Node project directory. You can then run the Rapise test using the command rapisenode from the folder the test folder – i.e. the folder that contains node.json:
cd ~/njs
rapisenode
See this documentation link for more information
An example framework running on Azure Framework can be found here:
After cloning the repository, update the AzureDevOpsFriendlyArchitecture\Package.json file with the Rapise Node package path.
You can find pipeline configuration files for Linux and MacOS.
You can also run tests in Docker as well (see docker-compose.yml).
Ask an Inflectra expert:
And if you have any questions, please email or call us at +1 (202) 558-6885
To ensure your satisfaction, we provide product support free with every subscription purchase, which guarantees you unlimited access to our knowledge base, customer forums and helpdesk. Review our support policy.
The Inflectra knowledge base includes a wide variety of helpful support articles written by Inflectra's customer support specialists.
Discover great tips, discussions, and technical solutions from fellow customers and Inflectra's technical experts.
If you can't find the answer you're looking for, please get in touch with us: over email, phone, or online.