Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullPointerException" #585

Open
riazm1301 opened this issue Sep 7, 2023 · 0 comments

Comments

@riazm1301
Copy link

Hi ,

I have upgrade the zerocode-tdd from 1.3.1 to 1.3.33.
During running the code I am getting below error

java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullPointerException

It was working perfectly and without any issue in zerocode-tdd (1.3.1).

Stack Trace:

2023-09-04T23:49:29.036-0700 [DEBUG] [TestEventLogger] java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullPointerException
2023-09-04T23:49:29.036-0700 [DEBUG] [TestEventLogger] at org.jsmart.zerocode.core.runner.eRetryWithSteps(ZeroCodeMulZeroCodeMultiStepsScenarioRunnerImpl.executeRetry(ZeroCodeMultiStepsScenarioRunnerImpl.java:361)
2023-09-04T23:49:29.036-0700 [DEBUG] [TestEventLogger] at org.jsmart.zerocode.core.runner.ZeroCodeMultiStepsScenarioRunnerImpl.executtiStepsScenarioRunnerImpl.java:185)
2023-09-04T23:49:29.036-0700 [DEBUG] [TestEventLogger] at org.jsmart.zerocode.core.runner.ZeroCodeMultiStepsScenarioRunnerImpl.executeSteps(ZeroCodeMultiStepsScenarioRunnerImpl.java:169)

Also observed that it is reading source1 after that it is throwing exception
test.zero file

{
"scenarioName": "my Clean network",
"steps": [

// source1
{
  "name":               "step1_source1",
  "url":                "com.st.bacp.Testconditions",
  "operation":          "myCleanup",
  "request": {
    "____test_step":    "myCleanup_step1_source1",
    "X-OperationID":    "${RANDOM.NUMBER}",  // actually System.currentTimeMillis()
    "stmgr":    		"http://10.198.74.45:9339/stmgr",
    "user":             "[:]",
    "rootsessionid":    "564d1ec7-b0ec-e9d0-445f-7455b4d1bcdd-12532"
  },
  "assertions": {
    "result":           true
  }
},

// source2
{
  "name":               "step1_source2",
  "url":                "com.st.bacp.Testconditions",
  "operation":          "myCleanup",
  "request": {
    "____test_step":    "myCleanup_step1_source2",
    "X-OperationID":    "${RANDOM.NUMBER}",  // actually System.currentTimeMillis()
    "mgr":            "http://10.198.73.61:9339/mgr",
    "user":             "[:]",
    "rootsessionid":    "564dc67c-1f45-7270-6795-32a72f436514-23376"
  },
  "assertions": {
    "result":           true
  }
},

// target
{
  "name":               "step1_target",
  "url":                "com.st.bacp.Testconditions",
  "operation":          "myCleanup",
  "request": {
    "____test_step":    "myCleanup_step1_target",
    "X-OperationID":    "${RANDOM.NUMBER}",  // actually System.currentTimeMillis()
    "mgr":            "http://10.198.73.67:9339/mgr",
    "user":             "[:]",
    "rootsessionid":    "564dc295-844a-89ad-091e-6033987ce14b-29868"
  },
  "assertions": {
    "result":           true
  }
}

]
}

Please let me know what is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant