Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtp vbscript issue
#1
Not Solved
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

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
Reply
#2
Not Solved
Boss two Options are there:

1. Randomize
Print rnd

2. Set UID = CreateObject("Scriptlet.Typelib")
DELAYID=UID.GUID
Print DELAYID
Set UID = Nothing

Choice is your's....
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP vbscript ArrayList strange behavior frankhovin 2 2,835 11-11-2013, 07:12 PM
Last Post: Parke
  Can any of the line in notepad file be appended/updated/modified via QTP(VBScript)? rookie_automator 1 2,439 08-22-2013, 07:13 AM
Last Post: basanth27
  JENKINS to QTP Integration Remotely WMI/VBscript help need raju999 0 4,626 01-27-2013, 05:22 AM
Last Post: raju999
  How to enhance qtp script using Vbscript mimi_suresh 0 3,299 09-27-2011, 07:58 AM
Last Post: mimi_suresh
  Calling a JS function which is externally located using a VBScript Func in QTP HishSingalaxana 0 2,842 11-09-2010, 11:02 AM
Last Post: HishSingalaxana

Forum Jump:


Users browsing this thread: 1 Guest(s)