There is no data to execute the test with.

6 posts, 0 answers
  1. Lokesh
    Lokesh avatar
    3 posts
    Member since:
    Aug 2018

    Posted 16 Aug Link to this post

    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.

  2. Missing user
    Missing user avatar

    Posted 17 Aug Link to this post

    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!
  3. Lokesh
    Lokesh avatar
    3 posts
    Member since:
    Aug 2018

    Posted 21 Aug in reply to Missing user Link to this post

    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.

  4. Missing user
    Missing user avatar

    Posted 21 Aug Link to this post

    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!
  5. Lokesh
    Lokesh avatar
    3 posts
    Member since:
    Aug 2018

    Posted 22 Aug in reply to Missing user Link to this post

    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.

  6. Missing user
    Missing user avatar

    Posted 22 Aug Link to this post

    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!
Back to Top