SlideShare a Scribd company logo
1 of 2
GET RO Property Outputting Value

a1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width")



'msgbox a1



a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width")



'msgbox a2



if(a1=a2) then

Reporter.ReportEvent micPass, "Width of Flight Login Window", "Correct"

Reporter.ReportEvent micDone, "Width ", a1

Reporter.ReportEvent micDone, "Password ", a2

else

                 Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect"

                 Reporter.ReportEvent micDone, "Width ", a1

                 Reporter.ReportEvent micDone, "Password ", a2

end if



Library functions Creation and Call

a1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width")



'msgbox a1



a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width")
'msgbox a2

‘call library functions (File->Associate Library with test)

Call add(20,30)



if(a1=a2) then

Reporter.ReportEvent micPass, "Width of Flight Login Window", "Correct"

Reporter.ReportEvent micDone, "Width ", a1

Reporter.ReportEvent micDone, "Password ", a2

else

                  Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect"

                  Reporter.ReportEvent micDone, "Width ", a1

                  Reporter.ReportEvent micDone, "Password ", a2

end if

File-> New->Library function

‘Add Function creation in library

Public Function Add(num1, num2)

    ' TODO: add function body here



         result=num1+num2

         msgbox result

End Function

More Related Content

Similar to Get ro property outputting value

HashiCorp Vault Plugin Infrastructure
HashiCorp Vault Plugin InfrastructureHashiCorp Vault Plugin Infrastructure
HashiCorp Vault Plugin InfrastructureNicolas Corrarello
 
FIWARE Developers Week_ Introduction to Managing Context Information at Large...
FIWARE Developers Week_ Introduction to Managing Context Information at Large...FIWARE Developers Week_ Introduction to Managing Context Information at Large...
FIWARE Developers Week_ Introduction to Managing Context Information at Large...FIWARE
 
Websockets talk at Rubyconf Uruguay 2010
Websockets talk at Rubyconf Uruguay 2010Websockets talk at Rubyconf Uruguay 2010
Websockets talk at Rubyconf Uruguay 2010Ismael Celis
 
20151128 firefoxos-handson
20151128 firefoxos-handson20151128 firefoxos-handson
20151128 firefoxos-handsonNoritada Shimizu
 
Multi client
Multi clientMulti client
Multi clientAisy Cuyy
 
Introduction to Nodejs
Introduction to NodejsIntroduction to Nodejs
Introduction to NodejsGabriele Lana
 
The Mouse is mightier than the sword
The Mouse is mightier than the swordThe Mouse is mightier than the sword
The Mouse is mightier than the swordPriyanka Aash
 
Arduino and the real time web
Arduino and the real time webArduino and the real time web
Arduino and the real time webAndrew Fisher
 
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek Meet
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek MeetBringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek Meet
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek MeetRobert Nyman
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181Mahmoud Samir Fayed
 
Chrome Extensions for Hackers
Chrome Extensions for HackersChrome Extensions for Hackers
Chrome Extensions for HackersCristiano Betta
 
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W... 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...Robert Nyman
 
JSON Schema: Your API's Secret Weapon
JSON Schema: Your API's Secret WeaponJSON Schema: Your API's Secret Weapon
JSON Schema: Your API's Secret WeaponPete Gamache
 
mobl - model-driven engineering lecture
mobl - model-driven engineering lecturemobl - model-driven engineering lecture
mobl - model-driven engineering lecturezefhemel
 
Example-driven Web API Specification Discovery
Example-driven Web API Specification DiscoveryExample-driven Web API Specification Discovery
Example-driven Web API Specification DiscoveryJavier Canovas
 
Automatic discovery of Web API Specifications: an example-driven approach
Automatic discovery of Web API Specifications: an example-driven approachAutomatic discovery of Web API Specifications: an example-driven approach
Automatic discovery of Web API Specifications: an example-driven approachJordi Cabot
 

Similar to Get ro property outputting value (20)

HashiCorp Vault Plugin Infrastructure
HashiCorp Vault Plugin InfrastructureHashiCorp Vault Plugin Infrastructure
HashiCorp Vault Plugin Infrastructure
 
Serverless
ServerlessServerless
Serverless
 
FIWARE Developers Week_ Introduction to Managing Context Information at Large...
FIWARE Developers Week_ Introduction to Managing Context Information at Large...FIWARE Developers Week_ Introduction to Managing Context Information at Large...
FIWARE Developers Week_ Introduction to Managing Context Information at Large...
 
Websockets talk at Rubyconf Uruguay 2010
Websockets talk at Rubyconf Uruguay 2010Websockets talk at Rubyconf Uruguay 2010
Websockets talk at Rubyconf Uruguay 2010
 
20151128 firefoxos-handson
20151128 firefoxos-handson20151128 firefoxos-handson
20151128 firefoxos-handson
 
Multi client
Multi clientMulti client
Multi client
 
Introduction to Nodejs
Introduction to NodejsIntroduction to Nodejs
Introduction to Nodejs
 
The Mouse is mightier than the sword
The Mouse is mightier than the swordThe Mouse is mightier than the sword
The Mouse is mightier than the sword
 
Arduino and the real time web
Arduino and the real time webArduino and the real time web
Arduino and the real time web
 
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek Meet
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek MeetBringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek Meet
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - Geek Meet
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
 
Qtp test
Qtp testQtp test
Qtp test
 
Mattbrenner
MattbrennerMattbrenner
Mattbrenner
 
Decorators demystified
Decorators demystifiedDecorators demystified
Decorators demystified
 
Chrome Extensions for Hackers
Chrome Extensions for HackersChrome Extensions for Hackers
Chrome Extensions for Hackers
 
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W... 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 
JSON Schema: Your API's Secret Weapon
JSON Schema: Your API's Secret WeaponJSON Schema: Your API's Secret Weapon
JSON Schema: Your API's Secret Weapon
 
mobl - model-driven engineering lecture
mobl - model-driven engineering lecturemobl - model-driven engineering lecture
mobl - model-driven engineering lecture
 
Example-driven Web API Specification Discovery
Example-driven Web API Specification DiscoveryExample-driven Web API Specification Discovery
Example-driven Web API Specification Discovery
 
Automatic discovery of Web API Specifications: an example-driven approach
Automatic discovery of Web API Specifications: an example-driven approachAutomatic discovery of Web API Specifications: an example-driven approach
Automatic discovery of Web API Specifications: an example-driven approach
 

More from Pragya Rastogi (20)

Gl android platform
Gl android platformGl android platform
Gl android platform
 
Qtp questions
Qtp questionsQtp questions
Qtp questions
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
 
Qtp tutorial
Qtp tutorialQtp tutorial
Qtp tutorial
 
Qtp4 bpt
Qtp4 bptQtp4 bpt
Qtp4 bpt
 
Bp ttutorial
Bp ttutorialBp ttutorial
Bp ttutorial
 
Gl istqb testing fundamentals
Gl istqb testing fundamentalsGl istqb testing fundamentals
Gl istqb testing fundamentals
 
Gl scrum testing_models
Gl scrum testing_modelsGl scrum testing_models
Gl scrum testing_models
 
My Sql concepts
My Sql conceptsMy Sql concepts
My Sql concepts
 
Oops
OopsOops
Oops
 
Java programming basics
Java programming basicsJava programming basics
Java programming basics
 
70433 Dumps DB
70433 Dumps DB70433 Dumps DB
70433 Dumps DB
 
70 433
70 43370 433
70 433
 
70562-Dumps
70562-Dumps70562-Dumps
70562-Dumps
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
 
32916
3291632916
32916
 
70 562
70 56270 562
70 562
 
Mobile testingartifacts
Mobile testingartifactsMobile testingartifacts
Mobile testingartifacts
 
GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
 
Gl qtp day 3 1
Gl qtp day 3   1Gl qtp day 3   1
Gl qtp day 3 1
 

Get ro property outputting value

  • 1. GET RO Property Outputting Value a1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width") 'msgbox a1 a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width") 'msgbox a2 if(a1=a2) then Reporter.ReportEvent micPass, "Width of Flight Login Window", "Correct" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2 else Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2 end if Library functions Creation and Call a1= dialog("text:=login").winedit("attached text:=Agent Name:").getroproperty("Width") 'msgbox a1 a2= dialog("text:=login").winedit("attached text:=password:").getroproperty("Width")
  • 2. 'msgbox a2 ‘call library functions (File->Associate Library with test) Call add(20,30) if(a1=a2) then Reporter.ReportEvent micPass, "Width of Flight Login Window", "Correct" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2 else Reporter.ReportEvent micFail, "Width of Flight Login Window", "InCorrect" Reporter.ReportEvent micDone, "Width ", a1 Reporter.ReportEvent micDone, "Password ", a2 end if File-> New->Library function ‘Add Function creation in library Public Function Add(num1, num2) ' TODO: add function body here result=num1+num2 msgbox result End Function