September 17th, 2014 by Adam Sandman
Rapise has several methods for learning the objects within the application under test. While still easy to learn, this method does not automatically develop a runnable test that will deliver any meaningful results. Herein we will discuss the learning methodology and provide a flow to follow, however we will not have a runnable test in the end as no input or click-stream data will be captured.
As with most things in life, none of the learning methods are all inclusive. An actual test will, most likely, be made up of various methodologies to meet the specification of the test case. We are presenting this as a learning case which is one of the building blocks of developing a robust and reusable automation test case.
In Rapise, there are several technologies which allow you to learn different types of objects. These technologies are both customizable and replaceable through the use of JavaScript to create new libraries. Objects can be learned with Active accessibility, DOM, XPath, etc… when initiating the process of learning objects Rapise will make an attempt at selecting the best fitting learn method for the application under test.
To learn through selection, follow these steps…
- Launch your application under test (i.e. Windows calculator)
- Launch Rapise
- Click the Record/Learn button on the top bar
- Select Calculator from the “Select Application to Record…” window
- Click “Select” button in the “Select Application to Record” window
- Then there are two paths you could follow:
- Click the “Learn” button on the Recording Activity window
- Click the object to learn
- You will see the object added to the Recording Activity window with the Object listed as Learn
- Repeat for each object clicking learn and then the object
- OR
- Hover over the object to be learned and use the keystroke Ctrl+2
- You will see the object added to the Recording Activity window with the Object listed as Learn
- Repeat for next object
- Less steps, and easier but you need to remember to use the keystroke.
- Once all necessary objects are learned, click the Finish button in the Recording Activity window
- You will be presented with a blank test in the Rapise main window, no actions captured
- Click on the Object Tree tab at the bottom of the top left sub window in Rapise
- You should see the name of your application in the Object tree on the left
- Expand the tree for your application by clicking on the “plus” expansion button
- You should now see your objects in the tree view
This is how you learn objects without defining actions directly through recording. This test, as it sits, is not useful as it does nothing. There are no actions defined for the objects learned. In another blog entry we will discuss what you can do with these objects through drag and drop as well as through light JavaScript.