Dynamic Variable For Location Of SBH File
We are using Robot to re-write QARun scripts which we currently have (so we are a little new to the Robot world). One of the problems we are facing is the SBH files and their location. As we run these scripts in multiple locations and multiple environments we can't guarantee that the SBH file will be in the same location i.e. C:\ drive as opposed to D:\ drive. Changing the location in over 100 scripts in not an option each time.
Is it possible to interrogate the registry or Environment variables within Robot to find out where the project is installed and then write that to a variable which in turn is used in the 'include. Pseudo code would look some thing like this:
varLocOfProj = RegistryCall(ProjInstDir)
'include varLocOfProj + "global.sbh"
Thanks for your help.
Re: Dynamic Variable For Location Of SBH File
There are several ways to do this but the most reliable I have found is to define the project using network addressing. In general do the following:
- define a server where the project is going to reside.
- install sqaAnywhere and rational on that server because you can have multiple people accessing it.
- create the project and use naming terminology like (\\server\Rational\Projects\xyz). Note the Rational folder should be shared.
- on every system you are running, browse across the network to that project. These systems have rational installed on them.
Alternatively, you could always mount the Z drive to point to the same project and share it across that way (network is better).
I would avoid multiple projects because it is so hard to keep them in sync when someone makes a change.