Our QA team just got QTP. After playing around with the product, I have a couple of questions, which I hope Automation expersts can assist.
I work at a company that provides updated content on a daily basis. The template is the same but the text/link/images are changed daily. Think of companies like amazon.com or cnn.com, where the template is always the same just different content.
I have attempted to use OR as well as DP. But what i want to know is, if i wanted to click on a link at a specific area of the page (without using coordinates*) is it possible even if the content is different?
Example: i have a box/area called "header 2" in a page layout that has 2 columns. there are 5 links below the header. how would i click on the 2nd link. And to make it realistic, the page is full of links outside of the header 2 column.
*I would prefer to stay away from coordinates since our page supports ad banners that sometimes are visible/invisible and have different and could be in different shapes (square/rectangle).
Our website developers check our images into a folder that resides on our webserver.
Our webpages have static containers that persist from one build to the next build. These containers point to images in that folder.
When they need to change an image, they take the old image out of the folder, add the new image, then update the webpage so that the container points to the correct image (the names of the images change, so the URL to which they point must be updated).
However, the containers remain the same. Their x,y and height,width can change, but other properties remain consistent. Our developers use html ID on these containers, so one container might have "html id:=bannerimage" and one might be "html id:=image1" or whatever. Those html id values never change.
So I learn the image containers in QTP based on html ID and the script always runs, even when the images chance weekly/daily.
"The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"