Hi, 
Below is the code .. Please correct me if I am wrong 

Browser("Site").Page("Site").WebEdit("userId").Set DataTable("username", 
dtGlobalSheet)

Browser("Site").Page("Site").WebEdit("password").Set DataTable("password", 
dtGlobalSheet)

Browser("Site").Page("Site").WebButton("Login").Click

If Browser("Site").Page("Site_7").WebElement("Invalid username or password. 
Signon failed.").Exist Then

Browser("Site").Page("Site_7").WebElement("Invalid username or password. Signon 
failed.").Output CheckPoint("Invalid username or password. Signon failed._2")

Browser("Site").Page("Site").Sync

Browser("Site").Close

Reporter.ReportEvent micFail,"Login failed","Incorrect username and password"

Else

Browser("Site").Page("Site_6").Link("Logout").Click

Browser("Site").Page("Site").Sync

Browser("Site").Close

Reporter.ReportEvent micPass,"WEbpage is seen","Pass"

End If

 

Regards,
Geetha

> On Jul 18, 2014, at 11:43 AM, Geetha <[email protected]> wrote:
> 
> This message has no content.

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to