[qmtest] Target File

Pankaj Jain pankajj at qualcomm.com
Tue Jul 19 23:25:53 UTC 2005


How to Create target:
Run the fallowing command
qmtest create-target -a host="hostname" "TargetName" rsh_target.RSHTarget 
"group name"
Where hostname = name or ip address of remote machine
      TargetName= for internal use of qmtest . same       as host name , 
dly-ydoa.
      GroupName= Group this remote target belongs to. ( e.g OFFICEMACHINE).

when you create a test you will sepcify the group name in target field.

understand GroupName: you can add multiple machine under one group. QMTest 
will pick any of the available machine randomly to run your test.if you want 
to run test on perticular machine create a dedicated group for it.

above command will create a "target" file in QMTest folder. sample target 
file looks like,
-----------------------------------------------------

<?xml version="1.0" ?>
<!DOCTYPE targets
  PUBLIC '-//QM/2.3/QMTest/Target//EN'

'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/qmtest/target//en.dtd'>
<targets><extension class="rsh_target.RSHTarget"
kind="target"><argument name="group"><text>LAB</text></argument><argument
name="name"><text>m1</text></argument></extension><extension
class="rsh_target.RSHTarget" kind="target"><argument
name="group"><text>OFFICE</text></argument><argument
name="name"><text>m2</text></argument></extension></targets>
----------------------------------------------------

Now the last step is to set the password less ssh for the remote machine. 
here are the steps
On the client run the following commands:

 mkdir -p $HOME/.ssh
 chmod 0700 $HOME/.ssh
 ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -P ''

This should result in two files, $HOME/.ssh/id_rsa (private key) and 
$HOME/.ssh/id_dsa.pub (public key).
 Copy $HOME/.ssh/id_rsa.pub to the server.

On the server run the following commands:

 $ cat id_rsa.pub >>hOME/.ssh/authorized_keys2
. $ chmod 0600 $HOME/.ssh/authorized_keys2

Hope this will help.

----- Original Message ----- 
From: "Kelly Lucas" <kellyl at google.com>
To: <qmtest at codesourcery.com>
Sent: Friday, July 15, 2005 10:50 AM
Subject: [qmtest] Target File


> The docs don't have an example for the format of the target file, nor do 
> they specify how to set up resources.
>
> Could someone post a sample of both?
>
> kdl
>
> -- 
> Kelly D. Lucas
> Software Test Engineer
> Google, Inc.
> kellyl at google.com
> 650.253.7953
> 




More information about the qmtest mailing list