05-04-2012, 09:49 PM
(This post was last modified: 05-04-2012, 09:56 PM by joncfrazier.)
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.
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