Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditional Statement (If.......else)
#5
Not Solved
Use the following code to add six new customers

Code:
If DataTable.Value("Customer",dtGlobal) = "New"
   Browser.Page.WebList.Select "Add New"
   Code to add a new customer goes here
Else
   Browser.Page.WebList.Select DataTable.Value("Customer",dtGlobal)
   Code after selecting the customer goes here
End IF

Assumptions:

1. You have a column, named "Customer", in the global sheet
2. The first six enteries in this column are "New" (to create a new customer)
3. The enteriers after 6 are the customer names, in random order, which we have added in first 6 iterations.
Reply


Messages In This Thread
RE: Conditional Statement (If.......else) - by tarun - 09-07-2011, 04:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding Conditional Statements in Keyword driven automation framework prachisharma76 0 3,821 09-14-2010, 11:00 AM
Last Post: prachisharma76
  Executing statement and commiting statement via qtp unbeliever 6 20,488 01-07-2010, 07:11 PM
Last Post: unbeliever

Forum Jump:


Users browsing this thread: 2 Guest(s)