Forum Discussion
RohitBBorse
14 years agoContributor
Thanks Finan
But I am still not able to switch into desired output i.e. pdf or png image type.
I have my code as code below which saves the encodeed string as base64 extension into D drive. I then needs to extract the file from this base64 manually and view the image output.
Could you please look into the below code and suggest how I can make it to the expected final one.
----------- Code is as below ---------------
teststep=context.testCase.getTestStepAt(context.getCurrentStepIndex()).getLabel()
Image='$'+"{"+teststep+"#Response#//ns1:Label/ns1:Parts/ns1:Image}"
Label=context.expand(Image)
//Specify the location of the label to be saved as below.
def File = new PrintWriter ("D:/"+teststep+".b64")
File.println(Label)
File.flush()
File.close()
-------------------------------
Thanks in advance
Rohit
But I am still not able to switch into desired output i.e. pdf or png image type.
I have my code as code below which saves the encodeed string as base64 extension into D drive. I then needs to extract the file from this base64 manually and view the image output.
Could you please look into the below code and suggest how I can make it to the expected final one.
----------- Code is as below ---------------
teststep=context.testCase.getTestStepAt(context.getCurrentStepIndex()).getLabel()
Image='$'+"{"+teststep+"#Response#//ns1:Label/ns1:Parts/ns1:Image}"
Label=context.expand(Image)
//Specify the location of the label to be saved as below.
def File = new PrintWriter ("D:/"+teststep+".b64")
File.println(Label)
File.flush()
File.close()
-------------------------------
Thanks in advance
Rohit
Related Content
- 5 years ago
- 7 years ago
- 3 years ago
- 11 years ago
Recent Discussions
- 15 hours ago
- 16 hours ago