This is a migrated thread and some comments may be shown as answers.

Maintaining own repository

2 Answers 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anuj
Top achievements
Rank 1
Anuj asked on 22 Jun 2012, 09:15 AM
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.

Thanks,

Anuj

2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 22 Jun 2012, 09:39 PM
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,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Anuj
Top achievements
Rank 1
answered on 29 Jun 2012, 12:53 PM
Thanks for your reply Cody
It helps using  Elements Explorer
Tags
General Discussions
Asked by
Anuj
Top achievements
Rank 1
Answers by
Cody
Telerik team
Anuj
Top achievements
Rank 1
Share this question
or