Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Condition for Checkpoints
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Guys thanks for your reply. I have modified my code and mostly it is working now. As my code is like this

Code:
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").WebEdit("txtPageCode").Set DataTable("Scode", dtGlobalSheet)
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("1440_hotOk_16_h_g").Click
If Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("frPage").Link("Quick Links  ยป").Exist then
    msgbox("Report is Configured")
else if Browser("Conrep-by Division_2").Page("Conrep-by Division").Frame("frPage").WebElement("Technical Problem (Critical)!").Exist then
msgbox("Technical Error")
else if Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("frPage_2").Link("My User Profile").Exist then
msgbox("Target Report is not available.")
else msgbox("Please enter a valid file scode...")
End if
End if
End if
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("Home").FireEvent "onmouseover"
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("Home").Click
wait 5

Actually it has the four conditions.
1. Report should show if Quick Links are there in the screen.
2. Should show the Technical error if it is there in the screen.
3. Should show Target Report is not available if this frame is there in the screen.
4. Should show Please enter a valid file scode... if this frame is there in the screen.

And one more small help please.
Actually it should show only the reports which are fine (First Case) and it should through error msgs for all other scenarios in the final results.

To be specific, to the addition of my logic, how can I get the final result where I can check that which reports are not fine?

Thanks in advance guys.
Reply


Messages In This Thread
Condition for Checkpoints - by Sudhamshu - 10-06-2009, 12:55 AM
RE: Condition for Checkpoints - by Saket - 10-06-2009, 10:16 AM
RE: Condition for Checkpoints - by basanth27 - 10-06-2009, 12:44 PM
RE: Condition for Checkpoints - by Saket - 10-06-2009, 01:41 PM
RE: Condition for Checkpoints - by Sudhamshu - 10-07-2009, 12:02 AM
RE: Condition for Checkpoints - by Saket - 10-07-2009, 11:00 AM
RE: Condition for Checkpoints - by Sudhamshu - 10-08-2009, 07:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fixing broken Checkpoints mv8167 2 2,938 02-02-2012, 10:00 PM
Last Post: mv8167
  Changing existing checkpoints janriis 1 3,241 12-13-2009, 12:55 PM
Last Post: basanth27
  Adding checkpoints anbarasu 2 3,049 10-23-2009, 05:18 PM
Last Post: anbarasu
  Need help with checkpoints lalabhaiya 3 2,736 10-16-2009, 02:53 PM
Last Post: Ankur
  Difference between checkpoints and outputvalues satyadon 1 4,341 10-21-2008, 11:02 PM
Last Post: satyadon

Forum Jump:


Users browsing this thread: 3 Guest(s)