I am using HTTPUNIT to test a web application, and many of our html page contain move item from one list to another with left/right button. When I ran the test, I got no exceptions from HTTPUNIT or java, the test is passed, but I found that the item doesn't move at all. Does anybody knows what cause this?
I use setParameter to choose the item from a list, is that right? If not, how to do this?
Limitation of HTTPUNIT?
Kitty
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could be a limitation of HTTPUnit. HTTPUnit has some problems when it comes to things like innerHTML assignments (not supported). So I expect it depends upon _how_ the HTML page moves items around. As for how to "select" the item, I'm not quite sure but setParameter sounds like a good bet... although I think setParameter does not affect the DOM tree, and depending upon how you move things that might be important.
If you don't get a response from someone more knowledgeable, email me the HTML that isn't working and I will dig up some more info.
Max Wilson
mdw45@email.byu.edu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using HTTPUNIT to test a web application, and many of our html page contain move item from one list to another with left/right button. When I ran the test, I got no exceptions from HTTPUNIT or java, the test is passed, but I found that the item doesn't move at all. Does anybody knows what cause this?
I use setParameter to choose the item from a list, is that right? If not, how to do this?
Limitation of HTTPUNIT?
Kitty
Could be a limitation of HTTPUnit. HTTPUnit has some problems when it comes to things like innerHTML assignments (not supported). So I expect it depends upon _how_ the HTML page moves items around. As for how to "select" the item, I'm not quite sure but setParameter sounds like a good bet... although I think setParameter does not affect the DOM tree, and depending upon how you move things that might be important.
If you don't get a response from someone more knowledgeable, email me the HTML that isn't working and I will dig up some more info.
Max Wilson
mdw45@email.byu.edu