Number of connectors that can be used in a Test case

Ask general questions here.
smitaninad
Posts: 11
Joined: Fri Feb 20, 2015 10:07 am

Number of connectors that can be used in a Test case

Post by smitaninad » Fri Mar 06, 2015 3:32 pm

How many connectors can be used for a single test case?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Sat Mar 07, 2015 11:18 pm

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.
Pavel Kudrys
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Tue Mar 10, 2015 2:20 pm

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.
Shortcuts usually aren't...

smitaninad
Posts: 11
Joined: Fri Feb 20, 2015 10:07 am

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

Post by smitaninad » Tue Mar 10, 2015 2:47 pm

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