Open borismod opened 10 years ago
Something was not clear in my doc (I will update it a bit later) 1) Must be: -FilesToTest "C:\Tests\dllname1.dll" 2) Make simple but unique cloneNamePattern like "123".
Check at vcenter, what is actually done. Was the clone created, powered?
Normally for troubleshooting you should go deeper and directly run PowerOn.ps1 or VirtualEnvironment.ps1. It will give you the understanding what is going wrong.
I have rechecked the execution:
Ivan, thank you for your reply. Let me just understand:
Boris, 1) no. the date is added by script. Result name of the clone is formed like: cloneNamePattern date time VmName "clone". Later we will stop all machines which start with cloneNamePattern and delete some of them, which are old. 2) Yes. My assemblies are special. They get ip, username and password and run some activities at the remote machines. 3) Check that you have vmware tools installed at the machine and that the machine has network.
addition to 2) For testing: Please try to put there simple nunit dll. However it will simply run at the powershell machine, not in the remote one.
I invoke the Integration test as shown below. It fails on the binding of the parameters.
.\Platform\build\TestProduct\Impl\IntegrationTests.ps1 -GuestCredentials "guest_login","pass" -FilesToTest "C:\Tests" -cloneNamePattern "Win7-64bit-TS51-SQL" -VmName "Win7-64bit-TS51-SQL_20140723+Clean" -ViServerData VCenter, USERNAME, PASSWORD
Cannot bind positional parameters because no names were given. At C:\Users\boris.m\Documents\GitHub\TeamCity-extensions\Platform\build\TestProduct\Impl\InTest\PowerOn.ps1:38 char:39