where can I find information about the qaxml language. It seems to be close to ant.
In fact, i would like to use antremote/antserver, how can I do this ?
And also, how can I start an external executable to perform an action ?
thanks
V
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
in the documentation of the CMDSTART command, it is written
_CMD_STRING - the command to be executed on the agent (must be relative to the agent's OS and architecture) _
what does _must be relative to the agent's OS and architecture _ means actually ?
I have tried using a directory structure without spaces in filename nor directories but I still got "1" as output for cmd.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to call CMDGETTRACE to see the output of the command you executed.
the "relative to the agent" means the path must be valid for the computer which is running the agent.
so if the agent is on linux, it will be a full linux path, but on windows, it will expect a windows path structure.
I suggest taking the samples as a starting point, and extending with your own tests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good point, I seem to remember something like this. So if you want to run Ant, you'll need to have as the command something like "c:/command/CMD.com /C c:/ant/ant.bat…."
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I made another test : just execute cmd.exe and I got this output
[ The command cmd_id exited normally ]
Cmd Status=1
[ Processing AUTOCLEAN of 0 agent(s) ]
Although the command exited normally, the return code is '1' and thus QAT interprets the test as "failed" !
Also, where can I find explanations for the cmd Status return code ? Making trials, I can get different return code (1,-6) but i can give them a meaning :(
V
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"STATUS_CODE - the process exit value will be placed in this variable. It may not exist prior to this call. A value of 0 indicates success, any other value indicates the process exited abnormally."
You need to call CMDGETTRACE to find out what the actual error is, or enable debug on the agent and watch it's output
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I discover QAT recently and I have some questions.
Is there still someone here to help me ?
Thanks
V
yes, what's up?
Hi,
where can I find information about the qaxml language. It seems to be close to ant.
In fact, i would like to use antremote/antserver, how can I do this ?
And also, how can I start an external executable to perform an action ?
thanks
V
The only "docs" are the samples, which you can find here :
http://qat.svn.sourceforge.net/viewvc/qat/trunk/QAT/examples/qaxml_examples/
Hi
thanks for your answer..I will have a look.
I have another question : I'm trying to use antserver/antremote with QAT. I can use this from console so I knwo it works on my computer.
The qash script follows:
This script is correctly parsed by execution fails with cmd_status=1. and there is no comment in the agent console.
Should this work ?
Thanks for your help
Try execute ant directly, instead of calling cmd.exe ant.bat.
Also, you should use forward slashes instead of back slashes.
Hi,
what is the syntax for the EXECUTE command ?
I tried
I do not received parsing error but no command is send to the ant server.
I also had a look in the code but could not find the command execute in QASH. Is it a QAXML command? (did not find in qaxml parser source code either)
Vince
You need to provide full path to "ant" like "d:/ant/ant.bat …"
Also I'm not sure where you got the EXECUTE command, you should rather use CMDSTART :
http://qat.sourceforge.net/documentation/QASHSyntax.html#CMDSTART
Hi Webhiker,
in the documentation of the CMDSTART command, it is written
_CMD_STRING - the command to be executed on the agent (must be relative to the agent's OS and architecture) _
what does _must be relative to the agent's OS and architecture _ means actually ?
I have tried using a directory structure without spaces in filename nor directories but I still got "1" as output for cmd.
I tried to execute a binary in the path and it works !
The problem seems to be due to the fact i want to execute a batch file…
V
You need to call CMDGETTRACE to see the output of the command you executed.
the "relative to the agent" means the path must be valid for the computer which is running the agent.
so if the agent is on linux, it will be a full linux path, but on windows, it will expect a windows path structure.
I suggest taking the samples as a starting point, and extending with your own tests.
Good point, I seem to remember something like this. So if you want to run Ant, you'll need to have as the command something like "c:/command/CMD.com /C c:/ant/ant.bat…."
I made another test : just execute cmd.exe and I got this output
Although the command exited normally, the return code is '1' and thus QAT interprets the test as "failed" !
Also, where can I find explanations for the cmd Status return code ? Making trials, I can get different return code (1,-6) but i can give them a meaning :(
V
"STATUS_CODE - the process exit value will be placed in this variable. It may not exist prior to this call. A value of 0 indicates success, any other value indicates the process exited abnormally."
You need to call CMDGETTRACE to find out what the actual error is, or enable debug on the agent and watch it's output