Forum Discussion
JHunt
Community Hero
Looks like something is coming back as null and then you're trying to use it on line 5.
it = null new String( it )
(It's hard to be more helpful when you haven't really posted anything to look at)
plaidshirt
7 years agoContributor
Sorry. here is the script:
def tc1 = testRunner.testCase.getTestStepAt(context.currentStepIndex-1); String rawData = new String(tc1.testRequest.response.rawResponseData); Reger reger = new Reger(rawData); String myvar1 = reger.getNthMatch(/<myregex>/, 0);
Related Content
- 2 years ago
Recent Discussions
- 15 years ago