Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Results based on iteration
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
User A logs in, verify links A, B and C exist, if they exist run a test specific to that link.
If they don't exist report failed (but continue testing)

User B logs in, verify that links A, C exist and B does NOT exist. Run test on existing links.
If A,C do not exist report failed
If B does exist, report failed (and possibly do not run test)


Rather than making a seperate test for each user, I'd like to parameterize the user login/pw.

Here is my current code, though it doesn't do what I want. Only reports a warning if links don't exist.
Code:
If Browser("...").Page("...").Link("...").Exist (1) THEN
    Reporter.ReportEvent micPass, "...", "Pass"
    Browser("...").Page("...").Link("...").Click
    RunAction "...[...]", oneIteration    
    Else
    Reporter.ReportEvent micWarning, "...", "...does not exist"
End If
Reply


Messages In This Thread
Results based on iteration - by joncfrazier - 05-04-2012, 02:44 AM
RE: Results based on iteration - by joncfrazier - 05-04-2012, 09:49 PM
RE: Results based on iteration - by sshukla12 - 05-07-2012, 03:22 PM
RE: Results based on iteration - by joncfrazier - 05-07-2012, 07:53 PM
RE: Results based on iteration - by sshukla12 - 05-08-2012, 10:12 AM
RE: Results based on iteration - by joncfrazier - 05-10-2012, 01:46 AM
RE: Results based on iteration - by sshukla12 - 05-10-2012, 10:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 968 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 3,723 02-12-2017, 01:25 PM
Last Post: cthossain
  Function return value is not passed during the 3rd iteration premanand1979 0 2,253 10-16-2014, 09:40 PM
Last Post: premanand1979
  Iteration in Local sheets for UFT11.5 haithamQTP 1 3,192 02-27-2014, 09:12 AM
Last Post: supputuri
  Parameter iteration bistritapcv 1 3,397 03-28-2013, 10:40 AM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 4 Guest(s)