Just try to automate Bookmyshow site

433 views
Skip to first unread message

sachin mahajan

unread,
Dec 8, 2012, 9:30:34 AM12/8/12
to mercu...@googlegroups.com
Hi all,

As per knowledge ,all of you normally access the below site 


In this i found the following scenario which i want to automate

1) Login with user_id /password
2) Select items from weblist
3)It will land to list of Shows
4)select one of the show 
5)It will ask for type of book (Gold ,Platinum etc)
6)Select the available seat in silver color mark.

Here my question

Everytime when script runs ,should able to select available seat  irrespective of position.

Please help on this.

Also fin the screenshot of booking
Inline image 1
image.png

Abdul Shukoor

unread,
Dec 8, 2012, 12:21:29 PM12/8/12
to mercu...@googlegroups.com
hint: Available seat has specific image property, try to count them. And I assume you are using DP for this scenario?


--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

image.png

sachin mahajan

unread,
Dec 12, 2012, 9:38:04 PM12/12/12
to mercu...@googlegroups.com

Thanks...abdul....

As of nw not seen any specific property for available seat.....

Plz any suggestions.....n I  am using dp.

image.png

Abdul Shukoor

unread,
Dec 13, 2012, 9:36:20 AM12/13/12
to mercu...@googlegroups.com
count the W and R chairs, get the file names. 
image.png

Anish Pillai

unread,
Dec 18, 2012, 8:07:49 AM12/18/12
to mercu...@googlegroups.com
Hi Sachin,

A very nice example.. :) :)

If you notice carefully, each type of image has a specific property.. like white chair has file name as 'W_chair.gif', red one has 'R_chair.gif'.. So this way you can identify the vacant seats..

Also to make the problem more interesting, you can try to book the best available seats. Like center and back.. For that, you can try using the WebTable just above the images in heirarchy..
Some amount of logic will go in this..

If you try it out, then pls update us about how it went..




On Fri, Dec 14, 2012 at 1:36 AM, Abdul Shukoor <shuko...@gmail.com> wrote:
names



--
Regards,
Anish Pillai
My QTP Blog

Reply all
Reply to author
Forward
0 new messages