Hi,
I have created an SqlDataConnector.
Can I use/access it from user code somehow?
I do not want to use it like "Data source" added to testcase.
Just want to read the data from some points while running the test.
Can I read the data with user code somehow?
Using/reading SqlDataConnector
Re: Using/reading SqlDataConnector
https://www.ranorex.com/forum/how-to-do ... t8914.html
This is something I am looking for.
Is there somewhere in user guide or code example how to create this connection?
Can I use/utilize the data source I have already created?
"Once added to a test suite, the data source can be assigned to the test containers of this test suite."
=> With user code, I do not need to assign it and still read the data?
This is something I am looking for.
Is there somewhere in user guide or code example how to create this connection?
Can I use/utilize the data source I have already created?
"Once added to a test suite, the data source can be assigned to the test containers of this test suite."
=> With user code, I do not need to assign it and still read the data?
Re: Using/reading SqlDataConnector
It was easy:
var dataConn = DataSources.Get("<connection_name>");
string one_name = dataConn.Rows[1].Values[2];
And I do not need to bind <connection_name> to test suite to use it.
var dataConn = DataSources.Get("<connection_name>");
string one_name = dataConn.Rows[1].Values[2];
And I do not need to bind <connection_name> to test suite to use it.