I already had a look at this Utility class.
However I was facing challenges picking up the value of global variable from excel(data driven approach) to be assigned in utility class and the same can be used in other scripts just by referring to the class.variable name.
I am just pasting some part of the class here :
public static class DBConnectionString
public static void InitializeConnectionString()
string s = Data["server"].ToString();
string d = Data["db"].ToString();}
public string dbconnectionstring = "data source=" + s + ";database=" + d + ";uid=SYSADM;pwd=SYSADM;Persist Security Info=true;";
I am picking the server and db name fron excel which is binded to this test and then creating the db connection string which I want to use/refer in other tests.
Is this the right way to pursue?