I have developed a micro-framework in Java which does the following function:
- All test cases list will be in a MS-Access database along with test data for the Application to be tested
- I have created multiple classes and each having multiple methods with-in them. Each of these methods represent a test-case.
- My framework will read the list of test cases marked for execution from Access and dynamically decide which class/method to execute based on reflection.
- The framework has methods for sendkeys, click and all other generic methods. It takes care of reporting in Excel.
All this works fine without any issue.
Now I am looking to run the test cases across multiple machines using Grid. I read in many sites that we need a framework like TestNG to have this in Grid. But I hope that it could be possible to integrate Grid in my own framework. I have read many articles and e-books which does not explain the coding logic for this.
- I will be using only windows 7 with IE. I don't need cross browser/os testing.
- I can make any changes to the framework to accomplish this. So please feel free.
In the Access DB which I mentioned above, I will have details about test case and the machine in which the test case should run. Currently users can select the test cases they want to run locally in the Access DB and run it.
How will my methods(test scripts) know which machine its going to be executed? What kind of code changes I should do apart from using RemoteWebDriver and Capabilities?
Please let me know if you need any more information on my code or have any question. Aslo kindly correct me if any of my understanding on Grid is wrong.