Forum Discussion
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.html
In 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
Hi,
Thanks for your help. This is a great help.
:-)
Related Content
- 5 years agowmtan01