Modify our JavaScript to make our application more testable

Applying eValid to AJAX applications that require advanced DOM-based methods.

Modify our JavaScript to make our application more testable

Postby cBrenden » Tue Oct 02, 2012 3:22 pm

What do you recommend that we do if we can modify our JavaScript to make our application more testable?
cBrenden
 
Posts: 1
Joined: Tue Oct 02, 2012 2:56 pm

Re: Modify our JavaScript to make our application more testa

Postby eValid » Thu Oct 11, 2012 9:51 am

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
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons