02-20-2014, 04:04 PM
Hi, I need to create random number for txtlatitude column using vbscript and it should be automatically generated the random values for that column.
Please help, here is my QTP code
Please help, here is my QTP code
Code:
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtuser_id").Set "1"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtdatetime").Set "05:12"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtlatitude").Set "212.25463"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtlongitude").Set "45.32546"
Browser("Untitled Page").Page("Untitled Page").WebButton("Save").Click
Browser("Untitled Page").Page("Untitled Page_2").Sync
Browser("Untitled Page").Close