Forum Discussion

v1kSandi3go's avatar
v1kSandi3go
Occasional Contributor
8 years ago

How to automate the VM and capturing the Snapshot

Hi,

 

I am seeking help, Is there anyone experience on how to automate triggering snapshot from VM?, is it possible to use the Test complete to take snap shot from VM?

 

 

  • shankar_r's avatar
    shankar_r
    Community 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.

    • v1kSandi3go's avatar
      v1kSandi3go
      Occasional 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?

  • Ravik's avatar
    Ravik
    Super 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