Hi,
I'm trying to do a template containing web scenario to make a simple http test (homepage only) for each apache virtual host.
All my vhost can be found on the target server by running this command :
Now, i'd like this list to be stored in a macro ${VHOST} and the content of the macro would be iterated like this in the Template :
1st scenario :
name of scenario : scenario {1st element of $VHOST}
step : http://{1st element of $VHOST}
and so on ...
The goal is to automate scenario creation when a new vhost is created. Perhaps Low Level Discovery should be used here ?
Can you give me advice about how to achieve that ?
Thanks
I'm trying to do a template containing web scenario to make a simple http test (homepage only) for each apache virtual host.
All my vhost can be found on the target server by running this command :
Code:
for vhost in $(ls /etc/apache2/sites-enabled/*); do grep ServerName $vhost | awk '{print $2}'; done
1st scenario :
name of scenario : scenario {1st element of $VHOST}
step : http://{1st element of $VHOST}
and so on ...
The goal is to automate scenario creation when a new vhost is created. Perhaps Low Level Discovery should be used here ?
Can you give me advice about how to achieve that ?
Thanks
Comment