Welcome To Automation Testing

Before starting with tips of automation of SAP using QTP Let me give a small introduction of SAP and QTP.

SAP stands for System Applications and Products. It is the name of both the online financial and

Administrative software and the company that developed it. SAP is made up of individual modules that perform various organizational system tasks.



Quick Test Professional (QTP) is an automated functional Graphical User Interface (GUI) testing tool that allows the automation of user actions on a web or client based computer application.

It is primarily used for functional regression test automation. QTP uses a scripting language built on top of VBScript to specify the test procedure, and to manipulate the objects and controls of the application under test. It supports many applications through the support of add-ins.



We will be using SAP add-in with QTP to work on the SAP automation.

Tuesday 10 July 2012

Validating Successful/Unsuccessful Operation:

  
SAP is very user friendly. It throws a message in status bar for every successful/Unsuccessful operation. From validation point of view, this will really help us in making a robust script.
A green message usually indicates a successful operation whereas Red is for any error. So we need to be careful on differentiating them.
                Red  - Error
                Green - Successful
We can use these status messages for validating the operation done on the application.
You can also differentiate whether an operation was successful or not using the object spy. There is a property “messagetype” which holds the below values.
                Messagetype = E   ----  Error
                Messagetype = W  ----  Warning
                Messagetype = S   ----  Successful

No comments:

Post a Comment