Data Source

6 posts, 0 answers
  1. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 06 Dec 2011 Link to this post

    Hi,

    I have a problem I need to use in one test, the data of the other test.

    I read this link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/multi-level-tests.aspx but my test aren’t sequential.

    I want to know if exist any way transform one variable in global and use in all project.

    I tried use data source, but the content of my excel file isn’t update.

    The content of variable I need global is: text concatenate with actual date, are started the test.

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Dec 2011 Link to this post

    Hello Natasha,
    yes, this is doable. Check out the following article which demonstrates this approach:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/utility-in-standalone.aspx

    Regards,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 07 Dec 2011 Link to this post

    Hi,
    Thanks for your help.
    I have one more question, exist any way to define a relative path for the file be added in folder the test project?
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 10 Dec 2011 Link to this post

    Hi Natasha,

    Which file exactly are you referring to?

    All the best,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 12 Dec 2011 Link to this post

    Hello Cody. I hope you have had a nice day.
    Sorry you're right. I didn’t explain myself very well. Your colleague Stoich suggested using a file with global variables. The example of this file is present in http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/utility-in-standalone.aspx .
    My question is I want save the file inside the folder of  the test project, but I like using the relative path for the test run on all computers and thus  allowing it to be independent of the location of the folder.

  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 12 Dec 2011 Link to this post

    Hi Natasha,

    You can place your class file anywhere in the Test Studio project folder. If your test project is at:

    C:\My Test Projects\Test Project A

    Place your file in the folder "Test Project A", or if you prefer to separate files, in a subfolder under it:

    C:\My Test Projects\Test Project A\Utility Classes

    Test Studio will automatically pick up and compile any/all source code files it finds when it builds the test project (the build happens automatically when you go to execute the test).

    All the best,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top