Hi All,
I appreciate all the help that i got here.
I am in a very different situation right now and not sure how to get this working.
issue is :
1. I want to run a python script, which when run fires few API requests and at last create a machine. this API request returns a message which contains a machine IP at last.
2. Then I need to run the nightwatch script by using the above machine IP (created in #1).
3. Later when the nightwatch script is completed, run another python script to delete this machine, using the same machine IP as provided by #1.
Now the issue is I dont know how can I achieve this. im not sure how can I run the python script from Nighwtach only, grab the output containing machine IP, and then set it global so that when second #2 runs, then that nightwatch command has this machine IP passed as parameter.
Does anyone encounter this? any other way i can run python script, grab machine IP, then run nightwatch script with this machie IP passed as param?
Any help is appreciated.
Thanks
bhavesh