We run our regression scripts on 8 different test environments, we control this by having an external environment value which holds the environment ID.
A select case reads the environment ID, launches the correct URL & loads an object definition file for the links innertext and the image alts.
The answer to your question is:
Browser("name:=QA Forums").Page("title:=QA Forums").WebEdit("name:=search_words").Set "post your question here"
Browser("name:=QA Forums").Page("title:=QA Forums").Image("src:=.*search_go_y.gif").Click
From your privious post really help me. I have an interesting question now. I have a single login script which runs in 3 different environments. What I need to do a small change to a flag (for environment to run) in Datasheet in TD->Test Plan. I created 3 different logins test sets in TD which internally is the single login from test plan.
But, my new requirement is not to change the flag in TD every time to run different Envi and also this creates an issue as which environment we have run in TD. Even if we placed a report itís not a feasible solution. Chances like if you forget to update the flag and scheduled a run it runs in different environment,
Example: A flag set to run in devp. Scheduled it to run in stage but forgot to update the flag. It runs the devl but you can see the pass in stage test sets. Chances of misleading the results.
The constraint is a single login and on test sets created it should run.
Please help me is solving this puzzle.
Some of the possibilities are
1. A single login script with a message box (not ideal when scheduled)
when things gets harder ,the harder gets going
Chikki I don't run my scripts from TD as our test machines are on a different LAN to our TD server.
What I do is write details to the runtime datatable (scriptID, run date/time, pass/fail status). I then USB stick them to a machine on the TD LAN and run some Test Factory code to update the TD run stats.
This is why I can run on multiple environments with just a flag change and also reflect our runs on TD.