Solved
Forum Discussion
4 Replies
- Marsha_R
Champion Level 3
Here's how to run a Powershell script from TestComplete. It doesn't know what's in the script, so this should work for you.
Try it and let us know what happens!
- rsaritzkyOccasional ContributorThanks for the link on running Powershell scripts. Here's my followup question:
I'm creating tests only by using the "Record" function. We're not writing any scripts (yet).
Do I have to convert the Test to a script first, then add the "getActiveXObject("WScript.Shell").Run("powershell -file C:\\MyScript.ps1");" command? Or is it something different?
Thanks,
Ron
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities, other than the intended recipient, is prohibited. If you received this information in error, please contact the sender and the privacy officer, and properly dispose of this information.- Marsha_R
Champion Level 3
You can use Run Code Snippet inside a keyword test in order to execute a script.