I would like to get results back from a powershell script with a Groovy teststep in readyApi
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023
09:20 AM
01-12-2023
09:20 AM
I would like to get results back from a powershell script with a Groovy teststep in readyApi
In readyapi groovy test step:
def runPowerShell = "powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command \"C:\\temp\\test.ps1".execute()
runPowerShell.waitFor()
In the powershell script test.ps1:
$SASToken = "test"
return $SASToken
echo $SASToken
Test step Result in Readyapi:
result = 1
I would like to get the value "test"
Labels:
- Labels:
-
Function Tests
-
Scripting
0 REPLIES 0
