I recorded script using URL1(different environment),now script needs to be tested on different environment with different URL(i.e URL2).
I have header file where i declare parameter set for each value of URL- i.e
PART OF HEADER FILE - where env can be changed.
bqc_set_parameter( "paramServer", "server", "bmsdev.bellsoft.com" );
bqc_set_parameter( "paramProtocol" , "protocol", "http" );
bqc_set_parameter( "paramApp", "app", "ps/bmstesting" );
bqc_set_parameter( "paramAppPsp", "appPsp", "psp/bmstesting" );
bqc_set_parameter( "paramAppCs", "appCs", "cs/bmstesting" );
bqc_set_parameter( "paramAppBase", "appBase", "bmstesting" );
bqc_set_parameter( "paramPort", "port", "80" );
My URL1 -- http:\\bmsdev.bellsoft.com:80/psp/bmstesting
URL2 -- different environment to be tested on
So using the paramPort,paramApp etc in script will let us test on any of enviromental setup we change to in header file.
My question is do i need to manually go and replace URL1 with these "paramApp" etc. or i can parameterise in other way.
Thanks for help in advance.
Re: URL parameterisation
There are many ways to do this. Manual work is involved. The method you choose determines the amount of manual work.
Some methods, et al:
1) You could just do search/replace in each script.
2) You could write your own search/replace utility.
3) You could parameterize the url as common practice for all scripts and then you are fairly good-to-go if you have to make a change.
I tend to parameterize the url at the gitgo and keep a batch utility to swap parm files.