Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Increment Number
#1
Not Solved
I am kicking the tires of QTP for the first time and recorded a relativley small action.

I have a SSN that I want to increment after every run. How can I increment just the last number on each run?


Code:
Browser("Create New Application").Page("Create New Application").Link("Create New Application").Click
Browser("Create New Application").Page("Create New Application_2").WebEdit("lastName").Set "Aipperspach"
Browser("Create New Application").Page("Create New Application_2").WebEdit("taxId").Set "156-15-1561"
Browser("Create New Application").Page("Create New Application_2").WebEdit("reEnterTaxId").Set "[color=#FFD700]111-11-1111[/color]___-__-____"
Browser("Create New Application").Page("Create New Application_2").WebButton("Next »").Click
Browser("Create New Application").Page("Create New Application_2").WebCheckBox("agentApplicationForm:distribut").Set "ON"
Browser("Create New Application").Page("Create New Application_2").WebButton("Next »_2").Click
Browser("Create New Application").Page("Create New Application_2").WebButton("Submit Query").Click
Reply


Messages In This Thread
Increment Number - by caippers - 06-10-2011, 02:10 AM
RE: Increment Number - by vIns - 06-10-2011, 06:12 PM
RE: Increment Number - by rajpes - 07-05-2011, 08:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Count the number of 3 number appers between 0-3333 SaranKumarV 1 3,538 09-20-2010, 06:32 PM
Last Post: rdemers25

Forum Jump:


Users browsing this thread: 1 Guest(s)