Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i test a website
#1
Solved: 11 Years, 4 Months ago
Hi Friends:

I have used Hotmail.com, and i started to record and play by giving my user name and password, and next i clicked inbox to see the message contents here i have stopped recording and saved the QTP file,
At this point i have total 9 unread messages that is showing like
Inbox (9)
I read some 2 messages now the inbox count shows Inbox (7) and closed the hotmail

Next time when i run the script, it worked properly till username and password, but it fail saying that it is unable to recognize Inbox (9),

As now the inbox as 7 unread messages it is failing, how can make it dynamic so that what ever the unread message count is it should work?

Expecting to get an answer,
Thank you in advance.
Regards,

the error it is giving is that
Reply
#2
Solved: 11 Years, 4 Months ago
Hi ,
You have to use regular expressions set to the controls added in object repository. Like the control showing "Inbox(9)" should be of Link type & you have to set regular expression for it as "(Inbox.*)"
Reply
#3
Solved: 11 Years, 4 Months ago
But how to use regular expressions set to the controls added in object repository?
Reply
#4
Solved: 11 Years, 4 Months ago
open object repository
select the Test object (in your case may be a link object name Inbox(..))
You will see the description properties 'text' at object properties pane
select the value of text property, it must be inbox(..)
you will find a button( <#> ) appeared there click the button
new window will pop up, Check on the regualr expression there
say Yes if prompted.
you will get something like 'Inbox\(..\)'
delete every thing after Inbox\ and put a '.*' there
Click OK

That's it,
hope this will help you.

Request you to please serach in forums before creating a new thread. there is a similar thread available
Refer this
@braddmark - Please restrict yourself to divert a thread from the original question.
you should always try to open a new thread for the new query.

Also request you to please remove the link from your signature, any link which is not relevent to the forum/community is not allowed to be used either in signature or in the post content.

Reply
#5
Solved: 11 Years, 4 Months ago
Saket got the key point.
_________________________
april
[Url Removed]
Reply
#6
Solved: 11 Years, 4 Months ago
hey April,

please do not advertise any url which is not at all relevent to the qtp and the community. Restrict yourself from posting such advertisements in any of the thread or in your signature. Refer posting guideline.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Get value from table out of a website Flooole 9 5,506 10-10-2013, 02:07 PM
Last Post: Flooole
  Menu is not displayed on the website to run QTP 11 jacosta 1 2,506 10-02-2012, 08:47 PM
Last Post: freeboynil
  Check all links of a website sia sharma 1 2,727 06-21-2012, 03:36 PM
Last Post: ssvali
  Error opening the sample Mercury tours website akilashanmugam 0 2,763 06-15-2012, 04:43 PM
Last Post: akilashanmugam
Sad Mecury Tours Website suspended uherch 1 3,396 05-10-2012, 08:41 PM
Last Post: defcon3

Forum Jump:


Users browsing this thread: 2 Guest(s)