Print Page | Close Window

Synchronization Point

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6765
Printed Date: 25Nov2024 at 3:54am


Topic: Synchronization Point
Posted By: Mithi25
Subject: Synchronization Point
Date Posted: 01Aug2009 at 4:48am

Synchronization Point

For Obj/Win Properties:
  • Open start->Programs->Win Runner->Sample applications->Flight1A.
  • Open winrunner window
  • Create->RecordContext Sensitive
  • Insert information for new Order &click on "insert Order" button
  • After inserting click on "delete" button
  • Stop http://www.onestoptesting.com/win-runner/d.asp# - - recording & save the file.
  • Run->Run from top: Gives your results.
Without Synchronization:
  • settings->General Options->Click on "Run" tab. "Timeout for checkpoints& Cs statements’ value:10000 follow 1 to 7->the test display on "Error Message" that "delete" button is http://www.onestoptesting.com/win-runner/d.asp# - - disabled .
With Synchronization:
  • Keep Timeout value:1000 only
  • Go to the Test Script file, insert pointed after "Insert Order" button, press statement.
  • Create->Synchronization->For Obj/Window Property
  • Click on"Delete Order" button & select enable property; click on "paste".
  • It inserts the Synch statement.
    For Obj/Win Bitmap:
    • Create-> Record Context Sensitive.
    • Insert information for new order & click on "Insert order" button
    • Stop recording & save the file.
    • Go to the TSL Script, just before inserting of data into "date of flight" insert pointer.
    • Create->Synchronization->For Obj/Win Bitmap is selected.
    • (Make sure http://www.onestoptesting.com/win-runner/d.asp# - - flight
    • Run->Run from Top; results are displayed. Note:(Keep "Timeout value" :1000)
    Get Text: From Screen Area:

      (Note: Checking whether Order no is increasing when ever Order is created)

    • Open Flight1A; Analysis->graphs(Keep it open)
    • Create->get text->from screen area
    • Capture the No of tickets sold; right clcik &close the graph
    • Now , insert new order, open the graph(Analysis->graphs)
    • Go to Winrunner window, create->get text->from screen area
    • Capture the No of http://www.onestoptesting.com/win-runner/d.asp# - - tickets sold and right click; close the graph
    • Save the script file
    • Add the followinf script; If(text2==text1) tl_step("text comparision",0,"updateed"); else tl_step("text comparision",1,"update property");
    • Run->Run from top to see the results.
    Get Text: For Object/Window:
    • Open a "Calc" application in two windows (Assuming two are two versions)
    • Create->get text->for Obj/Window
    • Click on some button in one window
    • Stop recording
    • Repeat 1 to 4 for Capture the text of same object from another "Calc" application.
    • Add the following TSL(Note:Change "text" to text1 & text2 for each statement) if(text1==text2) report_msg("correct" text1); Else report_msg("incorrect" text2);
    • Run & see the results


-------------
http://www.quick2sms.com - Send Unlimited FREE SMS to Any Mobile Anywhere in INDIA,
Click Here



Print Page | Close Window