How to always use value in the excel when run test suit

Ask general questions here.
shellyhu
Posts: 9
Joined: Mon Sep 29, 2014 9:07 am

How to always use value in the excel when run test suit

Post by shellyhu » Mon Sep 29, 2014 9:39 am

Hello,

I have a recording which is used to open a application, it has a variable which is binding the path. Then in the test suit I right click to make it bind a excel sheet parameter. When I run the test suit, it uses the value in the excel sheet. When I only run this recording, it uses the value which I set in the variable settings. It is correct.

But when I call this recording in another code module, ( Recordings.OpenTT.Start() ) it uses the value in variable settings when I run the test suit. However, I want that it uses the value in excel sheet. In another words, I want it always uses the value in excel sheet when I run the test suit. How can I handle it. Could you help me ?

Thank you.

Best Regards

Shelly

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to always use value in the excel when run test suit

Post by Support Team » Tue Sep 30, 2014 12:04 pm

Hello shellyhu,

Unfortunately, it is not possible to bind the data from the DataConnector to the variable when directly calling the recording. As you already mentioned correctly, the databinding is automatically triggered when executing the whole TestCase/TestSuite.

Regards,
Robert

shellyhu
Posts: 9
Joined: Mon Sep 29, 2014 9:07 am

Re: How to always use value in the excel when run test suit

Post by shellyhu » Wed Oct 08, 2014 7:12 am

Hi Robert,

Thank you very much.

So I have to give up to call the recordings in the user code if I want to use the DataConnector value. I can define a variable and a sub in the user code and bind it to the DataConnector.

Best Regards,

Shelly