Forum Discussion
15 years ago
I have a related question that doesn't seem to be answered by the response to this one.
What I'm trying to do is build a script that will go to a page where data is stored that developers used to build new webpages. It would read data from that page to validate the pages they built.
The page where the data is stored would be different on each run through the script, but it would always have the same format.
Right now I'm just building the part where the system opens the page where the data is stored. I know that the URL will always have the same BEGINNING part, but the end part will be different from one release to the next.
I want the "IEXPLORE1" item, with the "ToURL" operation, to open a page with a variable value. I tried storing the URL I wanted to test in a shortcut on the desktop, and ask TC to open that URL, but it still records the URL that TC opens inside the script.
How can I control the "ToURL" operation dynamically? Where can I store the data that TC will use to open the right page?
Also, the page requires a login. I've got the steps there to open the page, and then there's a "Wait" operation against an Item that is mapped to the specific page where the information is stored. I want that wait to happen, but I don't know the precise URL that will be opened, necessarily, before the test is run. I know the page where I'm recording the test, but when new pages are built I don't want to have to re-record all my scripts; that would defeat the purpose.
What I'm trying to do is build a script that will go to a page where data is stored that developers used to build new webpages. It would read data from that page to validate the pages they built.
The page where the data is stored would be different on each run through the script, but it would always have the same format.
Right now I'm just building the part where the system opens the page where the data is stored. I know that the URL will always have the same BEGINNING part, but the end part will be different from one release to the next.
I want the "IEXPLORE1" item, with the "ToURL" operation, to open a page with a variable value. I tried storing the URL I wanted to test in a shortcut on the desktop, and ask TC to open that URL, but it still records the URL that TC opens inside the script.
How can I control the "ToURL" operation dynamically? Where can I store the data that TC will use to open the right page?
Also, the page requires a login. I've got the steps there to open the page, and then there's a "Wait" operation against an Item that is mapped to the specific page where the information is stored. I want that wait to happen, but I don't know the precise URL that will be opened, necessarily, before the test is run. I know the page where I'm recording the test, but when new pages are built I don't want to have to re-record all my scripts; that would defeat the purpose.
Related Content
- 5 months ago
- 6 years ago
Recent Discussions
- 2 days ago
- 3 days ago