I have developed a web page which takes all inputs for test cases such as: locators, input data, urls to open, etc. I run the page in tomcat server. Whenever I'm executing the test case with that web page, the browser is opening in my local system and goes fine.
I want to share this url so when others use this link to execute the selenium code, the browser should be open in their system.
Is it possible to do this? If so, please let me know.
-
Where is the tomcat server? On your local machine?Bigwave– Bigwave2015年06月23日 08:08:55 +00:00Commented Jun 23, 2015 at 8:08
-
Yes right now , it is in my local . Later will move it to production serverQAMember– QAMember2015年06月23日 09:28:07 +00:00Commented Jun 23, 2015 at 9:28
2 Answers 2
Where ever the selenium library is running is where the browser will run.
If you are planning on putting this on a server, you'll have trouble if there is nobody logged in to the console.
You should look at Selenium Grid which allows the browser to run on a different machine.
There are cloud based services for these clients, for example, Browser Stack https://www.browserstack.com/
-
Hello @Bigwave, thanks for your reply. But today I tried to run the test case from my system and my friend system at a time browser was opened for both of them.I am not sure how it is happenedQAMember– QAMember2015年06月23日 13:49:18 +00:00Commented Jun 23, 2015 at 13:49
-
So, to clarify: - Tomcat is still on your machine? - Both you and your friend accessed the same URL? And when you say "browser was opened for both" do you mean: a) Two new browser windows opened on your machine? or b) A single browser window opened on both your and your friends machine?Bigwave– Bigwave2015年06月23日 21:39:52 +00:00Commented Jun 23, 2015 at 21:39
-
Hello @Bigwave , Yes Tomcat is in my machine. We both accessed the same url (my local server ).For my instance one browser was created in my machine and at the same my friend also found opening browser at the same time in his machine.QAMember– QAMember2015年06月24日 06:39:48 +00:00Commented Jun 24, 2015 at 6:39
Am also looking for a solution can you please help me
0
i Developed a Automation Selenium java program to non IT support guys where they need to simply update the data file with required input data and double click the jar file in order to run the program (this is fine)
But i thought of creating a web page to the end user where he can enter the input details and just click on the run button which automatically triggers the java selenium code.
in place of excel sheet i used MS Access DB and and for web page i developed with JSP file((Net Beans IDE,html &CSS) i successfully developed the front end UI to user where he can update all the required details to run the program.(Basically i developed CRUD operations on the page)
now my problem is i need to read the data from the DB and execute the selenium java program
is there any way to do this?if Yes please suggest me how to proceed further in order to provide user friendly web page to end user to run the automation program
-
Please do not post questions as answers. Instead, post a new question. You can find more information about asking questions in the help center (sqa.stackexchange.com/help). You should also explain why your question is different from this question.Kate Paulk– Kate Paulk2020年06月04日 17:16:40 +00:00Commented Jun 4, 2020 at 17:16
-
Create a weppage where your input data's will be stored in the database. Now you should create an API to retrieve the datas from the database this should be run in the selenium. Go with nodejs to create easy API's and a quick webpage using ejs template language instead of javaMohamed Sulaimaan Sheriff– Mohamed Sulaimaan Sheriff2020年06月04日 17:28:06 +00:00Commented Jun 4, 2020 at 17:28
Explore related questions
See similar questions with these tags.