Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingWinRunner @ OneStopTesting

Message Icon Topic: Win Runner Synchronization Point

Post Reply Post New Topic
Author Message
Mithi25
Senior Member
Senior Member
Avatar

Joined: 23Jun2009
Online Status: Offline
Posts: 288
Quote Mithi25 Replybullet Topic: Win Runner Synchronization Point
    Posted: 07Jul2009 at 7:17am

Synchronization PointWink

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 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 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 flight reservation is empty) click on "data of flight" text box
    • 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 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


Edited by Mithi25 - 07Jul2009 at 7:24am



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 2.453 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting