Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Imagine that there is a non-trivial logic in the page, for example:

IF element E1 in dropdown D1 is selected THEN button B1 is disabled ELSE B1 is enabled
IF element E2 in dropdown D2 is selected THEN text input T1 is hidden ELSE T1 is visible

We need the code for both:

  1. UI (ASP.NET page)
  2. a test wrapper for this UI following Page object pattern that will be used in automation.

First of all, programming this non-trivial logic on a page is a hassle. Second, code for the wrapper has to be changed after any changes to the UI.

We started thinking that code generation can help us with both problems. My question would be: Did any of you tried doing something like that before? Any recommendations or pointers to relevant information? Thanks

share|improve this question

closed as too broad by corsiKa Jun 9 '15 at 20:00

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

This question is too broad in its current state. Aside from being a few years old with no bites, I'm thinking there aren't answers that actually solve the general problem (as opposed to point in the right direction). – corsiKa Jun 9 '15 at 20:02