0

I am working on running TOSCA automation through Jenkins pipeline, I have configured the TOSCA , my Jenkins & Windows Node.

I have created a TCShell script to run the automation. When I run in manually it is working fine but when I run it from Jenkins, I am getting below error.

TCShell command :

"C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCommander\TCShell.exe" -workspace "C:\Tosca_Projects\Tosca_Workspaces\workspace\workspace.tws" -login "Admin" "" "C:\Tosca_Executor\executor.tcs" 

Error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Tricentis.Automation.TCAddIns.ExecutionAddIn.Execution.SegmentExecutor.RunExecutionEntryOnAgent(ExecutionEntry executionEntry, SegmentType executionType, AgentResult result)
   at Tricentis.Automation.TCAddIns.ExecutionAddIn.Execution.SegmentExecutor.RunExecutionEntry(ExecutionEntry executionEntry, SegmentType executionType)
   
System.NullReferenceException: Object reference not set to an instance of an object.
   at Tricentis.Automation.Execution.AgentPool.ExecutionFinished(Boolean callExecutionFinishedOnAllAgents)
   at Tricentis.Automation.TCAddIns.ExecutionAddIn.Execution.ExecutionControls.FinishAndWriteResults(List`1 results, LicenseExecutionHandler licenseHandler, Boolean compressLogs, Boolean isResumed)
   at Tricentis.Automation.TCAddIns.ExecutionAddIn.Execution.ExecutionControls.ExecuteExecutionSet(ExecutionSet executionSetToExecute, Boolean compressLogs, Boolean resume)
   at Tricentis.Automation.TCAddIns.ExecutionAddIn.Execution.ExecutionControls.ExecuteTask(ExecutionSet executionSetToExecute, Boolean compressLogs, Boolean resume)

Can someone let me know how to fix it.

Karthik P
  • 107
  • 2
  • 12

0 Answers0