Get ro property outputting value

482 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
482
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Get ro property outputting value

  1. 1. GET RO Property Outputting Valuea1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width")msgbox a1a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width")msgbox a2if(a1=a2) thenReporter.ReportEvent micPass, "Width of Flight Login Window", "Correct"Reporter.ReportEvent micDone, "Width ", a1Reporter.ReportEvent micDone, "Password ", a2else Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2end ifLibrary functions Creation and Calla1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width")msgbox a1a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width")
  2. 2. msgbox a2‘call library functions (File->Associate Library with test)Call add(20,30)if(a1=a2) thenReporter.ReportEvent micPass, "Width of Flight Login Window", "Correct"Reporter.ReportEvent micDone, "Width ", a1Reporter.ReportEvent micDone, "Password ", a2else Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2end ifFile-> New->Library function‘Add Function creation in libraryPublic Function Add(num1, num2) TODO: add function body here result=num1+num2 msgbox resultEnd Function

×