How can I use Global parameters outside the Test Suit
Posted: Wed Sep 16, 2015 1:57 pm
Summary :- How can I use Global parameters outside the Test Suit.
In my case I have created a Class to open DB connection and close DB connection. Where I have configured a Connection String (hard coded).
This is not inside my test suite but inside Solution.
I use this class to get connection from DB in a code module where my Validation logic resides.
Here the tedious task is when I want to change my DB server( in connection String), I always have to go inside the Class (where I hard coded this connection string) and change it there. I want to make this scenario dynamic.
So I created a Global Parameter on Test Suit (solution) level (by default Ranorex Global parameter functionality).
But I am unable to access this global parameter in the DB class. So I am unable to bind this global parameter in DB connection class.
Can I implement this in some ways ?? Or do we have any other way around ?
In my case I have created a Class to open DB connection and close DB connection. Where I have configured a Connection String (hard coded).
This is not inside my test suite but inside Solution.
I use this class to get connection from DB in a code module where my Validation logic resides.
Here the tedious task is when I want to change my DB server( in connection String), I always have to go inside the Class (where I hard coded this connection string) and change it there. I want to make this scenario dynamic.
So I created a Global Parameter on Test Suit (solution) level (by default Ranorex Global parameter functionality).
But I am unable to access this global parameter in the DB class. So I am unable to bind this global parameter in DB connection class.
Can I implement this in some ways ?? Or do we have any other way around ?