Solved
Forum Discussion
SuperSingh
9 years agoContributor
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
9 years agoCommunity Hero
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.
- SuperSingh9 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 . :(
- nmrao9 years agoCommunity HeroCan show the the raw request and response of jdbc step?
- SuperSingh9 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