Saturday, 24 February 2018

GUI Automation Basics

Here to cover basics of GUI automation using IBM Rational Function Tester(RFT):

RFT - is Cross platform, scripts are in java, Object oriented, Deployed over Eclipse IDE, creates scripts by its own based upon user action during recording. Its Data driven and functional testing tool, easy for user who knows basics of JAVA.

Automation: As you know, its the process to capture all the actions, whatever we do manually in any client/browser based applications, and play back many time. As it state, one time effort with minimal maintenance if you create them structured way. To reduce manual repeated works can be automated. We need initial review to find which all are regression cases to be run across various release of the particular project & then on top of it need to identify which all can be automated & which can not and why. Usually test team members have to do this during requirement analysis/planing phase and decide prior.


I got a good chance to work with RFT where created automation scripts for new few features and able to modify and make them robust / unify existing scripts to be run on any browser & multi server(free from the server IP). Since i had lil knowledge on JAVA programming, i was able to understand the script quickly and modify them properly. Also able to write own modules/package (frequently and common logics) inorder to reuse them across scripts.

Environment setup: Basically we need configure in the properties UI, where we mention which JRE want to use , which browser you want to use, path of the browser installed location

Application Setup: This is the configuration UI setup where to mentioned what type of application we want to use for automation. Its may be either Java based, Browser based or bat file to option to open other application.

Record/Playback:

Object Capture - Manually or through recorder option, where we can capture particular UI object(text, table, image, tree, tabs...etc) along with their original properties.

Object Maps: Its list of objects in a particular script where we can open each object to their properties and can allow us to alter to implement regular expressions inorder to change to scripts more robust and common. we can highlight particular object to double confirm we have captured right one while we verifying already built script.

Datepool:  Datapool is a test data set, a collection of related data records which supplies data values to the variables in a test script during test script playback.

Verification point - GUI objects can be verified dynamically during script run. Types would be basically text, properties, image, data.

Functional test Script -  Script will be created by tool automatically when we record the sequence of actions performed by user. Its basically build on java programming language.

Playback:
Once after the recording, it will be ready to playback.

Logs - 
Once after a script run through play back option, we can see the logs with results where can see whether the script run is pass or fail.

I will add image later , as currently I dont have RFT in my laptop.

Will add more day by day...to be continued .....

No comments:

Post a Comment