在eclipse中运行junit测试用例时获取java io ioexception(续)

在eclipse中运行junit测试用例时获取java io ioexception(续),junit,ioexception,testcase,jwebunit,Junit,Ioexception,Testcase,Jwebunit,我刚刚在某个地方找到了一个代理,并将其应用到我的代码中,似乎成功了。但在提交(“btnG”)时,我遇到了一个语法错误SyntaxError: syntax error (httpunit; line 155) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.

我刚刚在某个地方找到了一个代理,并将其应用到我的代码中,似乎成功了。但在提交(“btnG”)时,我遇到了一个语法错误SyntaxError:

syntax error (httpunit; line 155)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
at org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1324)... 
Submit from已被弃用,因此如果您正试图使用它,那么您将遇到一些问题

public void submit()
Deprecated. 
Submit form - default submit button will be used (unnamed submit button, or named button if there is only one on the form.
submit

public void submit(String buttonName)
Deprecated. 
Submit form by pressing named button.
Parameters:
buttonName - Submit button name attribut value.
submit

public void submit(String buttonName, String buttonValue)
Deprecated. 
Submit the form by pressing the named button with the given value (label). Useful if you have more than one submit button with same name.
Parameters:
buttonName - Submit button name attribut value.
buttonValue - Submit button value attribut value.
这是一项后续行动@user1096804-请发布完整的堆栈跟踪以及所有相关代码。