Building a Test Script with QaSCRIBE
Before you read this article you may want to see:
- Getting familiarized with the QaSCRIBE's User Interface
- QaSCRIBE Overview
- Installing QaSCRIBE
- Launching QaSCRIBE
Main Article
QaSCRIBE is a Chrome and Firefox browser Add-On that watches over you as you use your software and automatically builds test scripts that recreate your actions. QaSCRIBE does not stop there. It allows you to add validations that are critical to any software test, directly within your scripts, even as you are building it. This means that when you complete whatever you are doing, your tests are ready and complete with validations. QaSCRIBE can also run these tests for you on your computer (this feature is great because it allows you to check your work and make sure your test automation works correctly). Or you can send these tests up to the Worksoft SaaS Cloud to be run on any browser.
Here are step by step instructions to create the automation script:
AUT(Application Under Test) used here is Health Insurance Cost Calculator to automate. The Test Case is to provide input data and fetch the premium and penalty for the given inputs.
1. You can click on ‘Create’ in the Test Scripts module which redirects to the ‘Create Test Script’ screen where you enter the Test Script name and can start recording your actions on the respective AUT tab.
2. To start scripting, all you need to do is just perform a manual test on the module that needs to be tested. Then you have all the steps recorded as performed. Note that, the recording happens as soon as you click on the ‘Record’ button in the Create Test Script screen.
- QaSCRIBE records all the actions performed in the AUT on Firefox/Chrome Browser.
3. To perform validations on the AUT, follow the steps stated:
- Navigate to the aforementioned AUT(Application Under Test) Worksoft SaaS Training Application and enter the input fields.
- You can verify the recorded results for the input values provided. Right-click on the component in the browser, a menu with commands that you can use to verify this appear.
Ex: Select the command - assertText to check if you see the text "Health Insurance Cost Calculator" on the home screen of the AUT mentioned above.
NOTE: The option to choose the command from the context menu after a right-click in the AUT, is visible only when the recording icon on. You cannot add a command to verify a text or wait for an element from the context menu when the recording is off, as the context menu will not show the option to do the same.