| || |
QTP: Content test for several urls in one script
I'm a rather young and inexpierenced tester, but ery lucky. My company has got QTP and nobody is using it (since I'm the only tester). We are about to launch a new projcet that might required the usage of QTP.
I've been using Selenium IDE in the past, but now I would like to use something more elaborated in order to increase the reporting process.
Project Description : Test content presence in a Car Dealers t, Images, link to lead form)
The test should be base on a absolute url:
http:\\my.domain\... follwed by a "friedndly" relatives path that should sound like
exp1: my_dealer\about_us\Introduction >for the Home Page
exp2: my_dealer\dealer_services\fincance\introducion > for the Introduction page of the "Finance" menu'.
Now, our platform supports thouthands of friendly urls, and this is when the questions come.
1_Which could it be the easiest script to run in orther to test a considerable bunch of urls (pages) (I'm aware about the 9.2 version having issues with long test sessions).
Ford Instance, starting from an absolute url
can I make it followed by a series of relative paths:
all of them taken from a list/data file?
2_This has to be considered linked with a potential correlate issue: since what appears on the webpages is mainly managed by a Content Management System, not all the pages will be populated with the same text or not all of them will be active. Therefore the script should consider a sort of checkpoint somewhere in orther to make sure that the content test is carried out ONLY if the relative path is redireted to a page or the page search is responding.
Re: QTP: Content test for several urls in one script
I am not sure how links are identified or activated in Selenium, but in QTP you either record a link property definition or definitions into the Object Repository, or probably more likely in your situation define one or more properties for each link directly in your code using Descriptive programming syntax, and the use the <link>.Click method to activate it.
In so doing it should not matter to QTP how the link is resolved by the browser when clicked.
Re: QTP: Content test for several urls in one scri
HI...I spent two hours try to do what did you suggest.
Assuming that at this stage of my qtp knoledge i'm not able to carry on with the second solution, I would really be happy if you could be more esplicit about the first part of the option.
when you say that I have to create a new element within the Object repository, do I have to do that before strt recording?
I don't really get the steps to follow.