Maintaining own repository

3 posts, 0 answers
  1. Anuj
    Anuj avatar
    4 posts
    Member since:
    Jun 2012

    Posted 22 Jun 2012 Link to this post

    Hi Team,

    Is it possible to create our own object repository,  so that it can be easily editable and maintained if any page element object get changed, as pages.g.cs file is read only?

    Problem we are facing is that our Automation Test Suite would be having thousand of test cases and to maintain and update them as per any changes in application may become cumbersome for us without any updatable Object repository. Please suggest a work around for this.


  2. Cody
    Cody avatar
    3354 posts

    Posted 22 Jun 2012 Link to this post

    Hello Anuj,

    First, why is Pages.g.cs file read-only in your environment? Did you check it into your source control? If yes, please remove it from your source control ASAP. It does not belong under source control. The reason is that this file is automatically (and very frequently) automatically regenerated by Test Studio. There is no need for it to be under source control.

    Second, I don't understand why you want to create your own element repository. Test Studio excels and maintaining the repository for you. Our Elements Explorer is a list of all of the elements used by all of your tests contained in your test project. You make changes via our Elements Explorer UI and those changes are instantly reflected in the Pages.g.cs file.

    What advantage is there to creating your own that is separate from our Pages.g.cs file? Technically you can do anything you want in code. However you cannot create one that will replace Pages.g.cs such that non-coded steps will use it. The primary problem is that each test maintains its own elements that that test references. Non-coded steps don't even use Pages.g.cs.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Anuj
    Anuj avatar
    4 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2012 Link to this post

    Thanks for your reply Cody
    It helps using  Elements Explorer
Back to Top