Recently i created a test case that involves few database calls, and i did some calculations, now whenever I am launching readyapi (Version - 3.2.5), I am always getting error in the readyapi logs as
An error occurred [error: Premature end of file.], see error log for details
An error occurred [java.lang.NumberFormatException], see error log for details
And when i look in the Error logs, I found this info
I am not able to find which step is causing this error, reason when i run the test case I do not see it failed at any step.
Solved! Go to Solution.
Yes the error warning is generated when i am launching the readyapi and it launch with an existing workspace along with all the tests.
And i did had multiple testsuite and testcases earlier , but I removed all except one which is the latest i m working, and the error warning still persists, so I am certain the error is coming from this test case/suite only.
And then i digged in further, i am able find the element in a test step which is creating a problem, still not able to figure out, that why it is throwing an error
So in my test case there is a DataGen Test step where in I have defined an element of type Template which is holding a value which is coming from the output of some previous step.
So when i run the test case till this step, everything works fine, but when i close ready api and re-launch it again, the same error still persists
It says like this :-
Does that help to figure out what i m doing wrong..?
Thanks for your support
Thanks a lot Richie.
@anand1 Which option did you choose? Please share🙂
I worked on by creating a new project altogether and i was still getting that error moment i added that step in my test case/
So i guess i will go with the first option as to Ignore it, as while execution i am not able to see any error in the logs.
@anand1 I see. This sounds reasonable to me. Thank you for sharing!