Forum Discussion
- shankar_rCommunity Hero
Hi,
You want to capture a screenshot of VM, or you want to capture screenshot in VM using Test Complete.
If you provide more details something like log or your code to get more clear on your question.
- v1kSandi3goOccasional Contributor
Let say I have an application on my desktop name: VMware vSphere Client, Is it possible to run/open my TestComplete program and set as tested application is VMware vSphere Client then automating the Snapshot functionality of the VMware application?
- shankar_rCommunity Hero
Hi,
1) If you want to open AUT thru scripting then you use the following link https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/adding.html.
2) In the above link itself you will be presented with details of how to open an AUT thru scripting.
3) Once your application launched, Then you can use Ravik code to take the snapshot.
- RavikSuper Contributor
actually need a more details what exactly you want to achieve.
This may help you to capture images -
Sub PostingPictures()
Set PicObj = Utils.Picture
' Loads an image from a file
PicObj.LoadFromFile("C:\MyPicture.bmp")
' Saves this image to the test log
Log.Picture(PicObj) OR Log.Picture (Sys.Desktop.Picture)
End Sub