Page 1 of 1

Number of connectors that can be used in a Test case

Posted: Fri Mar 06, 2015 3:32 pm
by smitaninad
How many connectors can be used for a single test case?

Re: Number of connectors that can be used in a Test case

Posted: Sat Mar 07, 2015 11:18 pm
by odklizec
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.

Re: Number of connectors that can be used in a Test case

Posted: Tue Mar 10, 2015 2:20 pm
by krstcs
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.

Re: Number of connectors that can be used in a Test case

Posted: Tue Mar 10, 2015 2:47 pm
by smitaninad
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