Need Some guidance on resuability of Aii script.

5 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    21 posts
    Member since:
    Apr 2011

    Posted 27 Apr 2011 Link to this post

    Hi Team,

    Currently, i am evaluating the WebUI Test Studio-Developer edition for automating testcases of our silverlight applications. I have a very specific requirement in the project, so want to understand the re-usability feature of this tool. Let me explain you in details.

    we have a one module in our application for creating User.  User creation form has 3 sections(A, B & C). We need to create different Type of Users(UserType1, UserType 2, UserType 3). Each UserType(Type1, 2 & 3) has to fill different values in each field of section A, B & C.

    Let say we recorded seperate .AII scripts of each Section A, Section B and Section C. Is there any way to reuse the already recorded AIi script of section A,B & C for User Creation of UserType1, UserType 2 & UserType 3. Also let me know what can be the best appraoch for resuablility.

    kindly guide me.

    Note: We are currently evaluating other automation tool provided by Vendor Microsoft. We can create recorded method for section A, B & C. Then we pass different values in these recorded methods via parameterization for UserType 1, 2 & 3.
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 28 Apr 2011 Link to this post

    Hello Gaurav,
        Test Studio also allows you to parametrize the values you pass to different HTML control in your test. We refer to tests that use parametrization as "data driven". In order to get started using this feature please check out the section on "Data Driven Testing" in Dev edition's user guide:
    http://admin.telerik.com/%22http://www.telerik.com/download/TestStudio/Developer_edition.pdf

    You can also checkout this video tutorial:
    http://tv.telerik.com/watch/webui-test-studio/video/webui-test-basics-data-driven-tests
    It's not 100% up-to-date but you should still find it useful.

    Please don't hesitate to contact us if you have any additional questions.

    Best wishes,
    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. Gaurav
    Gaurav avatar
    21 posts
    Member since:
    Apr 2011

    Posted 03 May 2011 Link to this post

    Hi Team,

    We have looked at the video link provided by you. Now i am running in to one more query. I guess, the Teleric tool shown in video is very different then the one i am using,

    Couple of weeks back i downloaded the tool 'WebUI_TestStudio_Developer_2010_3_1421_Trial'. This is very different, Can you please confirm which version of tool is used for demo purpose in the video link provided by you.
  4. Gaurav
    Gaurav avatar
    21 posts
    Member since:
    Apr 2011

    Posted 03 May 2011 Link to this post

    Hi Team,

    Thanks for the links you have provided.

    But still i am looking for the feature of Develop editions through which i can reuse the already recorded scripts. Let me explain you again. Kindly forgive me i am not understanding the tool, but i guess this is not the case.

    For example: Take a example of Login operation/Recorded script. We have large project and many(different type of) User can login in to it. Let say we have one data(csv) file with following data

    User Role, USerName, USerpassword
    Role1,user1,pass1
    Role2,User2,pass2
    Role3,User3,pass3

    If we go with data driven testing then, it will iterate login operation for every row of csv file( 3 iterations here).

    But i actaully want to have something like this  
    1. I want to have one Login recorded screen. Let say Login.aii. We can create it using tool.
    2. I want to record/automate some testcases which requires me to login as USer1.
    3. I want to record/automate some testcases which requires me to login as USer2
    4. I want to record/automate some testcases which requires me to login as USer3.
    So i want to resuse already recorded login script with passing USer credentials in this recorded method through parametirization. Is their any way to achieve this using single recorded login script? This is what meant to ask for Resuability of scripts.

    we can fetch value of User through some file operations. We can manage it. But how to pass these values to already recorded script.

    Kindly let me know, if you have any query on my explaination.
    Please help me to resolve my query.

  5. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 03 May 2011 Link to this post

    Hello Gaurav,

    The video http://tv.telerik.com/watch/webui-test-studio/video/webui-test-basics-data-driven-tests is over 2 years old. It is very badly out of date, but the basic approach to data driving a test still applies.

    Thank you for clarifying your questions and concerns. I think you will find this video tutorial and this KB article helpful to accomplish your goals.

    All the best,
    Cody
    the Telerik team
    Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
    Register Today!
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!