SDET- QA Automation Techie

Software Testing Blog

  • Home
  • Training
    • Online
    • Self-Paced
  • Video Tutorials
  • Interview Skills
    • HR Interview Questions Videos
    • Domain Knowledge
  • Career Guidance
  • Home
  • Software Testing
    • Manual Testing Tutorials
    • Manual Testing Project
    • Manaul Testing FAQS
    • ISTQB
    • AGILE
  • Web Automation Testing
    • Java Programmng
    • Python Programmng
    • Selenium with Java
    • Selenium with Python
    • Robot Framework(Selenium with Python)
    • selenium with Cucumber
    • TestNG+IntelliJ
    • Mobile App Testing(Appium)
    • JMeter
  • API Automation Testing
    • Rest Assured API Testing (BDD)
    • Rest Assured API Testing (Java+ TestNG)
    • Robot Framework(Rest API Testing with Python)
    • Postman
    • SoapUI
    • API Testing(FAQ's)
  • SDET|DevOps
    • Continuos Integration
    • SDET Essentials
    • AWS For Testers
    • Docker
  • SQL
    • Oracle(SQL)
    • MySQL for Testers
    • NoSQL
  • Unix/Linux
    • UNIX TUTORIALS
    • Linux Shell Scripting
  • ETL Testing
    • ETL Data warehouse Tutorial
    • ETL Concepts Tools and Templates
    • ETL Testing FAQ's
    • ETL Testing Videos
  • Big Data Hadoop
  • Video Tutorials
  • ApachePOI Video Tutorials
  • Downloads
    • E-Books for Professionals
    • Resumes
  • Automation Essencials
    • Cloud Technologies
      • Docker For Testers
      • AWS For Testers
      • Sub Child Category 3
    • Java Collections
    • Selenium Locators
    • Frequently Asked Java Programs
    • Frequently Asked Python Programs
    • Protractor
    • Cypress Web Automation

UFT Record & Play Back

 Automation, QTP FAQ, UFT FAQ   

Record and Playback

Recording a test corresponds to recording the user actions of the application under test so that UFT automatically generates the scripts that can be played back. Record and Playback can give us the first impression if the tool can support the technology or NOT if the initial settings are done correctly.
Steps for Record and Playback are as follows:

Step 1: Click on "New" test from the Start Page as shown below:

New Test Selection from Home Page

Step 2: Upon Clicking, "New" Link, the new test window opens and the user need to select the test type. Select "GUI Test", give a name for the test and also the location where it needs to be saved.

Select Type of Test

Step 3: Once a New test is created, the new test screen opens as shown below. Now, click on "Action1" Tab which is created with 1 action by default.

New Test Page

Step 4: Click on "Record" Menu and select "Record and Run Settings" as shown below:

Record and Run Settings

Step 5: The Record and Run Settings Dialog opens and based on the type of application, one can select i.e Web, Java, Windows Applications. For Example, We will record a Web Based Application 

(http://easycalculation.com/)

Record and Run Settings

Step 6: Click Record Button, the Internet Explorer opens automatically with the webaddress http://easycalculation.com/ as per the settings. Click "Numbers" link under "Algebra" and key in a number and hit "calculate". Upon completion of the action click "Stop" button in the record panel. You will notice that the script is generated as shown below:

Generated Script

Step 7: Now playback the script by clicking on the playback button. The Script replays and result is displayed.

Playback the Script

Step 8: The result window is opened by default which exactly shows the timestamp of execution, pass and failed steps.

 Results Window Analysis

Significance of Record and Playback:

  1. It is used as the preliminary investigation method to verify if UFT can support the technology/application.
  2. Used to create a test a basic functionality of an application or feature that does not require long-term maintenance.
  3. It can be used for recording both mouse movements and keyboard inputs.

Modes of Recording:

  1. Normal Recording: This is the default Recording mode that records the objects and the operations performed on the application under test.
  2. Analog Recording: This records not only the keyboard actions but also the mouse movements relative to the screen or the application window.
  3. Low-Level Recording: This records the exact co-ordinates of the objects independent of the fact whether UFT recognizes the object or NOT. It just records the co-ordinates, hence does NOT record mouse movements.
  4. Insight Recording: UFT records operation based on its appearance and NOT based on its native properties.

How to Choose Recording Modes:

Upon clicking on Recording button, user can choose the recording mode from the recording pane that appears on the screen once recording starts. The selection can be made from any the ones that has been discussed above.

Choosing Recording Modes
The Below Scenario is recorded in all the modes and see how the same action has been recorded under various circumstances.
  1. Launch IE - http://easycalculation.com/
  2. Click "Numbers" under "Algebra"
  3. Click "Square Root" link
  4. Enter a value to calculate the square root. Let us say 10
  5. Hit Calculate
Script Recorded under Default, Analog and Low Level Recording Mode.


' DEFAULT RECORDING MODE
Browser("Free Online Math Calculator").Page("Free Online Math Calculator").Link("Numbers").Click
Browser("Free Online Math Calculator").Page("Numbers Calculator - Math").Link("Square Root").Click
Browser("Free Online Math Calculator").Page("Square Root Calculator").WebEdit("n").Set "10"
Browser("Free Online Math Calculator").Page("Square Root Calculator").WebButton("calculate").Click


' ANALOG RECORDING MODEDesktop.RunAnalog "Track1"

' LOW LEVEL RECORDING MODE
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Click 235,395
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Click 509,391
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Click 780,631
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Type "10"
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Click 757,666
Insight Recording Modes


  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to TwitterShare to Facebook
Newer Post Older Post Home
popup

Popular Posts

  • How To Explain Project In Interview Freshers and Experienced
    “ Describe an important project you’ve worked on ” is one of the most common questions you can expect in an interview. The purpose of a...
  • MANUAL TESTING REAL TIME INTERVIEW QUESTIONS & ANSWERS
    1. How will you receive the project requirements? A. The finalized SRS will be placed in a project repository; we will access it fr...
  • API/Webservices Testing using RestAssured (Part 1)
    Rest Assured : Is an API designed for automating REST services/Rest API's Pre-Requisites Java Free videos: https://www.you...

Facebook Page

Pages

  • Home
  • Resumes
  • Job Websites India/UK/US
  • ISTQB
  • Selenium with Java
  • E-Books for Professionals
  • Manual Testing Tutorials
  • Agile Methodology
  • Manual Testing Projects

Live Traffic

YouTube


Blog Visitors

Copyright © SDET- QA Automation Techie | Powered by Blogger
Design by SDET | Blogger Theme by | Distributed By Gooyaabi Templates