Hiya,
When running TestNG tests if I set the invocationCount to, say, value
of '2', the first test run passes, but the second one fails. I can't
make anything of the error message for IE but Firefox spits out a
weird message. With an invocationCount = 1, all is fine.
Messages are included below.
Cheers,
Rahul
------------------ output -------------------
For IE:
W18:09:05:395 .\IEThreadExplorer.cpp(102) COM Error J[120]
W18:09:05:442 .\IEThreadExplorer.cpp(103) Message = 00182740
For Firefox:
org.openqa.selenium.WebDriverException: Could not parse "".
System info:
os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.6.0_16'
Driver info: driver.version: firefox
at org.openqa.selenium.firefox.Response.<init>(Response.java:53)
at
org.openqa.selenium.firefox.internal.AbstractExtensionConnection.nextResponse
(AbstractExtensionConnection.java:251)
at
org.openqa.selenium.firefox.internal.AbstractExtensionConnection.readLoop
(AbstractExtensionConnection.java:216)
at
org.openqa.selenium.firefox.internal.AbstractExtensionConnection.waitForResponseFor
(AbstractExtensionConnection.java:209)
at
org.openqa.selenium.firefox.internal.AbstractExtensionConnection.sendMessageAndWaitForResponse
(AbstractExtensionConnection.java:177)
at org.openqa.selenium.firefox.FirefoxDriver.sendMessage
(FirefoxDriver.java:294)
at org.openqa.selenium.firefox.FirefoxDriver.sendMessage
(FirefoxDriver.java:290)
at org.openqa.selenium.firefox.FirefoxDriver.get(FirefoxDriver.java:
157)
at org.openqa.selenium.firefox.FirefoxDriver$FirefoxNavigation.to
(FirefoxDriver.java:651)
at
xxx.HomePageTests.shouldVerifyHomePageIsDisplayedCorrectlyWhenUserIsNotLoggedIn
(HomePageTests.java:55)
Caused by: org.json.JSONException: A JSONObject text must begin with
'{' at character 0
at org.json.JSONTokener.syntaxError(JSONTokener.java:496)
at org.json.JSONObject.<init>(JSONObject.java:180)
at org.json.JSONObject.<init>(JSONObject.java:403)
at org.openqa.selenium.firefox.Response.<init>(Response.java:41)
... 31 more
... Removed 22 stack frames
===============================================
xxx.HomePageTests
Tests run: 2, Failures: 1, Skips: 0
===============================================