Forum Discussion

shubhangi's avatar
shubhangi
Contributor
12 years ago

Taking machine off the network duing test execution

I am running the tests parallely on different slaves using network suite.

Testcomplete/TestExecute - 8.7



The test I want to automate looks like

1. launch a process

2. Click Next on the dialog, just launched

3. Take machine off the network

4. Click Next and look for error message.

5. Take machine back on network

6. Finish



Any thoughts on how to automate this scenario.





Regards,

Shubhangi


2 Replies

  • Anonymous's avatar
    Anonymous

    Hi Shubhangi,



    Do you mean to take any computer from your network and run the distributed test on it? I think that's not a very good practice. The computer where the test is going to be executed must be prepared so that tests are executed without errors.
  • Hi Tanya,



    I want to automate a negative test where, you are trying to activate a product which is not connected to any network.



    For this, I need to somehow make network inaccesible to the slave, so that activation fails. After recieving the error, go back and connect to network and perform rest of the test.

    There are windows command which would disable the LocalAreaConnection on a computer. However I am not sure, if testcomplete can cope with this situation where network on a slave goes off for a minute and comes back.



    I hop this explain the problem.



    Regards,

    Shubhangi