| || |
changing ip addresses on image links how to check using regular expressions?
This one is driving me mad! Here is an example of an image link on a webpage associated with an image:
The ip address of 188.8.131.52 can be different if you use a different web server eg 184.108.40.206
I have a checkpoint that checks the page and checks the images on the page. Is there any way of coding the checkpoint so if the IP address is different it does not error? I have been trying to set the ip address up in the checkpoint properties as a Regular Expression with no luck!
For example, QTP script created on web server with ip address of 220.127.116.11. It is then run on web server 18.104.22.168. The run ends in error as the images on the web page are coming from 22.214.171.124 but the checkpoint in the code is expecting them to come from 126.96.36.199
I hope the above is clear.
Thanks for your time
Re: changing ip addresses on image links how to check using regular expressions?
Sorted in a kind of way.
The following code works, but I would have thought there would be a simpler solution.