|
Tutorial |
Top Previous Next |
|
In this section, you will learn how to record and execute a Rapise script. We will be using a demo application called SampleATM. Our test will be simple. It will log on to SampleATM, navigate to the main menu, and click on all of the menu options to make sure the links are working.
Go to Start > All Programs > Inflectra > Rapise. The following window should appear.
Open Internet Explorer. You will find it in Start > All Programs > Internet Explorer. In Internet Explorer, navigate to: http://www.inflectra.com/SampleATM:
In the Rapise window, press the Record/Learn button on the Ribbon.
The Select an Application to Record... Dialog (SAR dialog) will open.
There are two sections to the SAR dialog. In the bottom section, you select which Rapise library will be used during the recording session. Because we will be recording our interactions with Internet Explorer, make sure that the Internet Explorer HTML library is checked. No other libraries should be selected. See below:
In the top section of the SAR dialog, we choose which application to record. Scroll down the available applications and click once on SampleATM, so that it is highlighted. Now, press the Select button near the bottom right of the dialog.
The Recording Activity Dialog (RA dialog) will appear:
The RA dialog has a grid. As you interact with the SampleATM program, the grid will automatically populate with your actions.
Let?s begin creating the test. On the SampleATM login page, type user@mycompany.com into the username text box. Press the tab key. You?ll notice that the RA dialog has changed. Your action, entering a username, is listed in the grid.
The password for user user@mycompany.com is rapise. Type the password in and then press the Sign-On button. Two more rows should appear in the RA dialog: one to represent the password entry, and one to represent the button click.
You should now be on a new screen of the SampleATM application, the Main Menu:
Click the DEPOSIT button. It is highlighted in the next screenshot:
You should now be on the Deposit page (see the below image). Click the HOME button to go back to the main menu.
Now, click the WITHDRAW button:
You should now be on the Withdraw Funds page. Click the HOME button to go back to the main menu.
Click the TRANSFER button:
You should now be on the Transfer page. Click the HOME button to go back to the main menu.
Click the BALANCE button:
You should now be on the Balance page. Click the HOME button to go back to the main menu.
At this point, there should be 11 rows in the RA dialog grid.
You are now back on the Main Menu. Click LOGOUT (lower left).
To end the recording session, you can either press CTRL+3 or press the Stop button on the Record dialog. End the recording session now. You will see a script created from your recording session in the Rapise window. Let?s save our test. Press the Save button at the top left of the Rapise window.
Let?s execute the test we just created. First, close Internet explorer. Rapise will open a new instance of Internet Explorer to the correct url (SampleATM) when the test begins.
To execute the script, press the Play button at the top middle of the Rapise window.
After execution, a screen like the one below will appear. Each row represents a step in the test. The rows with green text are steps which passed, whereas the rows with red text are the steps which failed.
For more information on the report, see Automated Reporting. |