Utility class variables and test lists

2 posts, 0 answers
  1. Bruno
    Bruno avatar
    16 posts
    Member since:
    May 2008

    Posted 03 Jun 2014 Link to this post

    Hi Telerik team,

    When running test cases in a test list, do the variables stored in a utility class reset to default when a new test case is executed? For example, if the first test case (in the test list) increments a zero-based index to one (1), would the final test case read zero (0) or one (1)?

    Regards
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 05 Jun 2014 Link to this post

    Hello Bruno,

    Thank you for contacting us.

    It depends how you have implemented your logic.

    If every test creates its own instance of the utility class every time the variables will be reset.

    If you are changing the variables directly in the class they won't be reset.

    Hope this helps.


    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top