You should specify double quotes around the image and imagename variable
values in <parms> in your STAX job to have double quotes around the image
and imagename variable values in case they have spaces, etc.
<script>
image=' E:\vmw1693-w72\vmw1693-w72.vmx'
imagename='SilkTest and STAF'
</script>
<process>
<location>'local'</location>
<command>vmruncmd</command>
<parms>'-T ws revertToSnapshot "%s" "%s"' % (image, imagename)</parms>
</process>
Let me know if that resolves the problem,
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <c...@fekete.com>
To: Sharon Lucas/Austin/IBM@IBMUS
Date: 02/09/2011 04:56 PM
Subject: RE: [staf-users] Didn't start the right VM snapshot
Thank you very much.
I want the STAX job runs the following command:
vmrun -T ws revertToSnapshot "E:\vmw1693-w72\vmw1693-w72.vmx" "SilkTest
and STAF"
I have something like this in STAX job
<script>
image=' E:\vmw1693-w72\vmw1693-w72.vmx'
imagename="SilkTest and STAF"
</script>
<process>
<location>'local'</location>
<command>vmruncmd</command>
<parms>'-T ws revertToSnapshot %s %s' % (image, imagename)</parms>
</process>
It didn't revert to the snapshot. It seems the space in variable imagename
caused the problem. It was fine when I ran the command line with quotation
mark.
Can you help?
Thanks,
Cindy
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: February-09-11 12:23 PM
To: Cindy Zhu
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] Didn't start the right VM snapshot
Your STAX job is running the following command on machine 10,0,7.196 to
start a VMware snapshot:
"C:\Program Files (x86)\Vmware\VMware Workstation\vmware.exe" -x -q
E:\vmw1693-w72\vmw1693-w72.vmx
If this isn't starting the snapshot you wanted, then my guess is that you
are not specifying the correct snapshot. You should check the
documentation for vmware.exe to see if that helps you determine what's
wrong with the vmware.exe command that you are running. Note that you can
run the vmware.exe command manually via the command line (e.g. without
using STAF) to check if the vmware.exe command does what you want it to
do.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <c...@fekete.com>
To: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>
Date: 02/09/2011 12:57 PM
Subject: [staf-users] Didn't start the right VM snapshot
Hi,
I am new to STAFF.
Attached is the code copied from FAQ link
http://staf.sourceforge.net/current/STAFFAQ.htm.
In the xml code, the snapshot(image) is called "SilkTest and STAF", but
the code didn't start the right snapshot. It always start the latest
snapshot.
Can you help me to solve this?
Thanks,
Cindy
[attachment "StartVMTry.xml" deleted by Sharon Lucas/Austin/IBM]
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users