Forum Discussion
SuperSingh
Contributor
I've shared the script you've asked for. I tried fitting my JDBC in that script, but doesn't work.
Appreciate any help here.
Thanks,
Predator.
nmrao
8 years agoChampion Level 3
SuperSingh,
Have you tried the same context.expand( '${JDBCTestStep#Request}' ) - change the test step name in place of JDBCTestStep and the same for response as well.
If you have already tried that and still did not work? then quite strange.
Have you tried the same context.expand( '${JDBCTestStep#Request}' ) - change the test step name in place of JDBCTestStep and the same for response as well.
If you have already tried that and still did not work? then quite strange.
- SuperSingh8 years agoContributor
nmrao I did try that step. But it doesn't work.
It creates a file with no data in it. I tried changing the file formats to .txt but no luck . :(
- nmrao8 years agoChampion Level 3Can show the the raw request and response of jdbc step?
- SuperSingh8 years agoContributor
I got it . The following is the difference and it works.
def ResFile ="C:/Testing Lab/Soap TestBed/Response Data/Response1.xml"
def Res = context.expand( '${Rate#ResponseAsXml}' )
def j = new File(ResFile)
j.write(Res, "UTF-8")Thanks all for the help !
Thanks,
PredatorSingh
Related Content
Recent Discussions
- 15 years ago