This is a migrated thread and some comments may be shown as answers.

There is no data to execute the test with.

5 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lokesh
Top achievements
Rank 1
Lokesh asked on 16 Aug 2018, 07:07 AM

Hi,

I am facing issue while running my Login script. I have 2 different test cases. For testcase1, i want to login using data driven which i am able to do it successfully but for next testcase2 i want to login using default user mentioned in "Enter text ..." step.

So while try to run testcase2, i am unable to execute due to it is always looking for Data driven.

Let me know how to execute same test using 2 different data approach in 2 different test cases.

See attached screenshot.

5 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 17 Aug 2018, 02:52 PM
Hi Lokesh,

Thank you for contacting us. 

If I understand correctly what you want to achieve let me explain that to be able to use the default `Enter text` step with no data bound on it I advise you to go to `Properties for step` then `Bindings` and use `Clear` option. This will clear all bindings from the `Enter text` step and will use the value you have in the `Text` field. 

Please, let me know if the suggested solution works for you and if not, contact me again and explain in details what you want to achieve.

I hope this helps, I stay at your disposal if you need any further assistance! 

Regards,
Vera
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Lokesh
Top achievements
Rank 1
answered on 21 Aug 2018, 12:52 PM

Let me explain bit more again.

I have 3 Test Cases: 

1) Login

2) CreateInquiry

3) CreateQuote

I am calling Login test case in other 2 test cases (CreateInquiry and CreateQuote). For CreateInquiry, I am creating Inquiry for 2 different users, for which i applied local data table which is working as expected.

Now for CreateQuote test case, i want to run it for only one user. Which i am unable to do it because the Login test case already having Data Binding attached to it.

 

Please suggest what could be possible ways to handle.

0
Vera
Telerik team
answered on 21 Aug 2018, 03:34 PM
Hello Lokesh,

Thanks for clarifying your scenario.

If I understand correctly what you want is to be able to use the data source from your parent data-bound test. If this is correct I would like to introduce the `InheritParentDataSource` option which gets or sets whether a data-bound test will inherit the data source from its parent data-bound test. You can check out Test Step Properties where it is described and Multi Level Test article for detailed explanation.

Please, try enabling the suggested option and let me know if it works for you.

I stay at your disposal if you need any further assistance.

Regards,
Vera
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Lokesh
Top achievements
Rank 1
answered on 22 Aug 2018, 07:52 AM

Like I said that i used Login test case in CreateInquiry test case where i already using 'InheritParentDataSource' successfully but the problem with another test case CreateQuote where i want to user Login test case without datadriven or limited to single user only. This is what i am unable to do it.

Please suggest if we can call to understand it more.

0
Vera
Telerik team
answered on 22 Aug 2018, 03:43 PM
Hello Lokesh,

I would like to explain that to be able to perform the described scenarios you should know that once you use `InheritParentData` option it will always look for data from the parent test. For this, please, make sure that your both tests are data-bound. In addition, please double-check if:

1. Your parent test (`CreateQuote`) is data bound and has only one user in the data source.
2. The `InheritParentDataSource` option is enabled for the `Login` test.
3. Since you are using local data binding please, make sure the name of the column in this parent test (`CreateQuote` )  has the same name as the name of the column in your `Login` test. For example `Col1`.

Please, verify if your test is configured as per those requirements and let me know if this works for you.

I am looking forward to hearing back from you.

Regards,
Vera
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Lokesh
Top achievements
Rank 1
Answers by
Vera
Telerik team
Lokesh
Top achievements
Rank 1
Share this question
or