Forum Discussion
- HKosova
Alumni
Sure, it's possible. VMware provides automation interfaces that let you automate various actions.
You can use the vmware-cmd revertsnapshot command to revert to the last snapshot taken. See the documentation for details:
vmware-cmd
Managing Virtual Machine Snapshots with vmware-cmd
If you want to revert to a specific snapshot, you can use VMware PowerCLI, specifically the Set-V -Snapshot cmdlet:
https://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.powercli.cmdletref.doc/Set-VM.htmlIn TestComplete, you can run external command-line tools using
Sys.OleObject("WScript.Shell").Run("tool.exe args", 0, true)
and you can run PowerShell commands as explained here:
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/running-powershell-scripts.html- v1kSandi3goOccasional Contributor
Hi,
Thanks for your help. This is a great help.
:-)
- v1kSandi3goOccasional Contributor
Thank you to this solution, but I've tried to run and use it, but I seems it is not working. Please help me to run it accordingly.
- Colin_McCraeCommunity Hero
"it isn't working"
... is a bit vague.
Can you provide a bit more detail? How far did you get. What failed? What error message(s) did you get?