in user code module -- how will i defined the sqlconnection in globally so i don't have to defined in each class
SqlConnection myConnection = new SqlConnection
("Data Source=(local)\\SQLExpress;Initial Catalog=xxxyyy;Integrated Security=SSPI");
Thank you in Advance.
Beginner
sqlconnection string defined in config
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: sqlconnection string defined in config
Hi,
you can define a global parameter which can be bound to variables generated in your user code modules.
Following chapter of our user guide will explain how to add variables to your user code modules:
Using Variables with Code Modules
And the following chapter of our user guide will explain how to bind global parameters to variables:
Combining Variables with Parameters
Regards,
Tobias
Ranorex Team
you can define a global parameter which can be bound to variables generated in your user code modules.
Following chapter of our user guide will explain how to add variables to your user code modules:
Using Variables with Code Modules
And the following chapter of our user guide will explain how to bind global parameters to variables:
Combining Variables with Parameters
Regards,
Tobias
Ranorex Team
Re: sqlconnection string defined in config
Ok , how will i add the connection to App.config file then call the connection from any class
Tipu
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: sqlconnection string defined in config
Hi,
I did not mean the app.config, but the global variables in your test suite project as described in the chapters mentioned in my last post.
Regards,
Tobias
Ranorex Team
I did not mean the app.config, but the global variables in your test suite project as described in the chapters mentioned in my last post.
Regards,
Tobias
Ranorex Team