cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: cannot get error line number!

Occasional Contributor

ERROR: cannot get error line number!

Hello,

i get an error message with NullPointerException if I try to run test case from another project, like:

 

   def workspace = testRunner.getTestCase().getTestSuite().getProject().getWorkspace()
   def SimulatorProject = workspace.getProjectByName(inproject)
   if (SimulatorProject == null) {
            log.info "Input parameter ERROR: Project " + inproject + " is not found in workspace"
            testRunner.fail("Input parameter ERROR: Project " + inproject + " is not found in workspace")
            return
     }

 

     def SimulatorTS = SimulatorProject.getTestSuiteByName(intestsuite)
     def SimulatorTC = SimulatorTS.getTestCaseByName(intestcase)        
     def runner = SimulatorTC.run(properties, false)

 

This happens after switching from SoapUI 5.1.2 to Ready!API. I guess this connected with new feature TestRunHistory which probably seems to work not properly.

Anybody same experience or ideas how to fix the problem?

I trying first set Test History Limit Size to 0 in preferences. But this hang up Ready!API totally.

 

4 REPLIES 4
Community Manager

Re: ERROR: cannot get error line number!

Hi Ustim80,

 

I’ve moved this question to our internal team. While we are waiting for feedback from them, I think our community members will join this conversation to share their thoughts.

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Community Manager

Re: ERROR: cannot get error line number!

Hi,

 

I’ve got a reply from our R&D Team – they were unable to reproduce the issue.

They used the following code:

 

def workspace = testRunner.getTestCase().getTestSuite().getProject().getWorkspace()
def inproject = "REST Sample Project"
def SimulatorProject = workspace.getProjectByName(inproject)
if (SimulatorProject == null) {
	log.info "Input parameter ERROR: Project " + inproject + " is not found in workspace"
	testRunner.fail("Input parameter ERROR: Project " + inproject + " is not found in workspace") 
	return
}

def intestsuite = "Test account creation"
def SimulatorTS = SimulatorProject.getTestSuiteByName(intestsuite)

def intestcase = "accountcreation TestCase"
def SimulatorTC = SimulatorTS.getTestCaseByName(intestcase) 

def runner = SimulatorTC.run(null, false)

 

Could you please check if the issue is reproduced with this code? If it’s not reproduced, to move forward, could you please contact our Ready! API Support Team ( http://support.smartbear.com/product-list/ ) and send them your test project?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Occasional Contributor

Re: ERROR: cannot get error line number!

Hallo Tanya,

 

thank you for answer.

I've create already a troubleshoot ticket and sent yesterday my test project to your troubleshooting team.

Now I just waiting for response.

 

Best regards,

Anton

Community Manager

Re: ERROR: cannot get error line number!

Thanks Anton.

Please let us know the solution you’ll find working with our Support Team.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors