Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
jtest.TimeoutError?
LegacyForum
Posts: 1,664 ✭✭
Is this configurable?
We're running into a problem where some of the code needed to build and run one of our test cases takes longer than 30 seconds, but Jtest times out with the jtest.TimeoutError error.Is this error configurable or bypassable?
Thanks.
Tagged:
0
Comments
-
Yes this is configurable. What you would need to do is the following open the TestClass that was created for the
java file that was under test. At the Bottom you will see a junit.framework.Test suite method. You can modify
the milliseconds.
Ie. I tested Simple.java from our example project. After it was done I opened the SimpleTest.java file
and at the bottom of the file was the method below:
-------------------------------------
public static junit.framework.Test suite() {
return new jtest.IndependentTestSuite(
// this class
SimpleTest.class,
// fully qualified name of the tested class
"examples.eval.Simple",
// timeout for each test in milliseconds
30000);
}
-------------------------------------
so you can modify it from 30 seconds to 60 or the time it is best for you. (ie. 30000 to 60000)0 -
Ah -- I saw that method, but wasn't sure what it did.
Thanks for the help.0