Understanding QTP Script, learn advance scripting with practical examples for your easy understanding Quick Test Professional



Now we will understand the script that was previously recorded :

  1. First Step SystemUtil.Run Command, This command is generally used by default by the Quick Test profession to open any application. So when recording process is continue, By using Windows Start Menu, When we lastly searched “Railway Reservation” to application QTP recognized by the location of its own executable file and inserted command System.Util to open this.
  2. Now Setting the Agent Name as 'Testblog' as shown in activated screen.
  3. Tab key in keyboard need to press to focus from any Agent Name Field or space to Password Field, which is actually and exact step. Live Human beings type users required to use tab or click operations to focus on any particular object / instant on screen.. Another Side QTP can identify the object directly with the help of object properties and doesn't need these “ Maneuvering” Operations. We can delete this step because QTP is able to set the password field without such operations.
  4. Now turn to setting the password as 'codepassword, Password is automatically encrypted by the QTP to avoid security branches. The value of this is not possible to decrypted mean there is not any solution to recover the original or actual value using such cryptic record. It can explicitly encrypt a password using the password Encoder type tool. Only for learning purposes, We will use the password in the original raw form. And the operation will also move to set.
  5. Now click the OK button
  6. Now further step is to close the application after successfully log on
  7. These are the main steps which were mentioned in our test script recorded in QTP Quick Test Professional.

    Understanding QTP Script
    Understanding QTP Script








No comments:

Post a Comment

Popular Posts