Number of connectors that can be used in a Test case
-
- Posts: 11
- Joined: Fri Feb 20, 2015 10:07 am
Number of connectors that can be used in a Test case
How many connectors can be used for a single test case?
Re: Number of connectors that can be used in a Test case
Hi,
One test case can have one data connector. It may be possible to dynamically replace the existing data connector with new one (via code), but I don't think it's recommended procedure? Try to search the forum for some code samples.
One test case can have one data connector. It may be possible to dynamically replace the existing data connector with new one (via code), but I don't think it's recommended procedure? Try to search the forum for some code samples.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Number of connectors that can be used in a Test case
Odklizec is correct, each testcase can have only one connector.
One thing to remember, though, is that testcases can be nested, and each testcase has access to all of its parents' data connectors.
As for dynamically replacing the connector, that is not recommended, but you can update the connector's information at run-time. I do this with my SQL connectors all the time. I updated their SQL queries with variablized SQL inside a code module which allows me to dynamically query the DB based on the parent/grand-parent data.
One thing to remember, though, is that testcases can be nested, and each testcase has access to all of its parents' data connectors.
As for dynamically replacing the connector, that is not recommended, but you can update the connector's information at run-time. I do this with my SQL connectors all the time. I updated their SQL queries with variablized SQL inside a code module which allows me to dynamically query the DB based on the parent/grand-parent data.
Shortcuts usually aren't...
-
- Posts: 11
- Joined: Fri Feb 20, 2015 10:07 am
Re: Number of connectors that can be used in a Test case
Thank you folks. I haven't come to that difficult stage
of using multiple connectors. But at that time , your information would help.
Thanks again

Thanks again