Forum Discussion

go2khurram's avatar
go2khurram
Contributor
9 years ago

java.lang.NullPointerException when testRunner.runTestStepByName("StepName") used

Hi,  I am getting java.lang.NullPointerException when I used testRunner.runTestStepByName("Update"+requiredField[j]) to run a specific step.  The script able to execute the step in test case but thro...
  • go2khurram's avatar
    9 years ago
    Exception was occurring because one of the step was not created under test case. After creating all the required steps the Error corrected.