Page 1 of 1

Modify our JavaScript to make our application more testable

PostPosted: Tue Oct 02, 2012 3:22 pm
by cBrenden
What do you recommend that we do if we can modify our JavaScript to make our application more testable?

Re: Modify our JavaScript to make our application more testa

PostPosted: Thu Oct 11, 2012 9:51 am
by eValid
cBrenden wrote:What do you recommend that we do if we can modify our JavaScript to make our application more testable?
Obviously, any improvement that you make in your JavaScript is a good thing to do.

In terms of testability, the biggest problem we see is that page elements are not given identifiable names -- that is, ID tag values -- that make it easy to do such things as insert values in a page or do a synchronization on a page where the content of the page (and the subsequent rendering of that content) is non-constant.

Varying pages are very important in AJAX, but that very variation is often what makes the page difficult to test.

So the ONE THING WE RECOMMEND is to insert unique, fixed-name ID tags into page elements to make identifying a particular page section as easy and as reliable as posslble.

eValid DOM Team