Question

How to save the report with some desired name on a specific path using TCshell commands.

  • 21 July 2023
  • 2 replies
  • 23 views

Userlevel 5
Badge +2
  • Head of Community
  • 47 replies

 

 I created below .tcs file :-

UpdateAll
jumptonode "/Z_APAC/INTEGRATION/ESB\\/API/Execution/IndividualTestCases/Purchase APIs QA/KR-01"
task "Check Out"
task "Run"
Save
task "Print Report... Execution report_PDF"
jumptonode "/Z_APAC/INTEGRATION/ESB\\/API/Execution/SendReportExecutionList/send report"
task "Check Out"
task "Run"
Save
CheckInAll
 

In this the task "Print Report... Execution report_PDF" is generating the report and saving in workspace/Reports with name as Execution report_PDF_<timestamp>.pdf, but i want to save the report at path say Desktop/Reports with name as "executionReport.pdf"

i tried giving the path in next like as below :

task "Print Report ... Execution report_PDF"
"C:/Users/sonia/Desktop/example.pdf"

but getting error at line  "C:/Users/sonia/Desktop/example.pdf" that unknown command.

Let me know how to achieve this.

Thanks


2 replies

Userlevel 4
Badge +2

Have you tried double slash?
As an example: "C://Users//sonia//Desktop//example.pdf"

Also, I would recommend a different folder, as sometimes the desktop is not shared, on other machines.

Userlevel 4
Badge +2

Idea from another user:

I would try to put the file path in the same line as the task command, not in a separate line. And I'm using single forward slashes.

Reply