HaroonBadsha / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

BrowserPanicException when JsTestDriver tests the form submit in JavaScript #319

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Test any code which will submit the form. The actual offending code which 
caused the JSTest Driver to throw BrowserPanicException is mentioned below

javascript:document.forms[0].submit();

Commenting out this line of code causes test run and the code coverage to run 
sucessfully.

What is the expected output? What do you see instead?

Browser Panic Exeption occurs when the above line of code is executed by 
JSTestDriver.  See attached file for the Console output of Server and when 
running JsTestDriver in "tests ALL" mode.

What version of the product are you using? On what operating system?

1. JSTestDriver.jar
2. coverage.jar

Windows Vista  

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)

I checked the issues and no one had reported this problem. Does this mean that 
JSTestDriver does not support form submits via JavaScript?

Original issue reported on code.google.com by sachin.a...@gmail.com on 27 Dec 2011 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
Navigating to a new page isn't part of a unittest. Please consider using 
Webdriver to verify that behavior, as it is outside of the design scope for 
JsTD.

Original comment by corbinrs...@gmail.com on 27 Dec 2011 at 5:11

GoogleCodeExporter commented 8 years ago
I understand that this use may not qualify as a unit test, but it is something 
I'd like to be able to do as well.  Can you suggest a workaround?  I had the 
same problem with initial page load and found an excellent workaround on this 
forum https://code.google.com/p/js-test-driver/issues/detail?id=61

Original comment by malcolm...@gmail.com on 3 Jun 2014 at 5:07