Can I run or deploy java web application inside selenium, without having to first deploy it in any web container.
So, I want to deploy web app in selenium testing environment. Can it be done ?
Thanks.
You cant deploy application inside Selenium.
What you are expecting is CI/CD pipeline, this you can achieve using any tools like Jenkins/Cruise Control etc. In this you need to maintain a separate environment(where you have to host your application) in which you will be executing your selenium tests, and only if those tests gets passed you can promote that build to other environments like QA/UAT etc.
Selenium is for handling your browsers and not for hosting a website.. It's not a webserver software like Tomcat, Apache.
Selenium expects an web URL to launch the application, which means, you need to have a web application up and running either hosted locally or in remote web sever..
Related
I am making a Restful API Web Application :-
BackEnd :- Spring Boot
FrontEnd :- Angular 2
Database :- MySQL
Is it possible to package the app as a standalone Installer or maybe a single Jar file which can be run on clients Windows Machine and it will install all the required platforms like jre,apache tomcat,mysql,etc and create an icon which will open the app in the browser ?
If it is not possible then what are the possible alternatives from which we can achieve similar behavior.
A web application running in a client's windows machine is not the best scenario; but since you are open to alternatives, here is a possible alternative solution:
Dockerize your web application
Install docker on the client's machine
Pull the docker image from a private docker registry or distribute your own image to the client
Shortcut a command to run in the format "docker run OPTIONS IMAGE"; do not forget to expose your ports
Open the browser and access the app.
I would never try this, please use a server instead...
How can I run gwt application without any browser plugins?
You have to deploy it into a server (such as Tomcat or Jetty) and run it from there. this is called Production Mode.
You can check The Official GWT tutorial for more info.
I have a bunch of shell scripts on every client machine. I need a web interface to provide settings for these scripts and it should invoke these scripts.
If i run a web application from a server to run scripts, it will overload the server due to multiple client requests, so client side web app is preferred.
Applets can solve this. But, it is outdated and I dont like it.
Is there any other new/good technologies to do such client side computing ?
Are you talking about web application or desktop application?
If this is a web application, so as far as I know - no. You must use applet embedded at your web page to run the script.
If desktop application - it can use the API for execution processes at Java.
Another option is maybe to download some small server code that will be used to invoke scripts, and have you web application communicate with it, in order to invoke a process.
The downside of this is that this is not a "straightforward" usage of your web application.
i am new to webservice. i need your help to understand deployment process.
I have created a new webservice by using following tutorial
http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section2.html
web service is running fine in eclipse,
right now i am running this service by right clicking on endpoint class and run it as java application. i want to run this service manually because on our server we not going to install eclipse.
You need to bundle your web service implementation classes as jar and you need to deploy to any Java EE complaint servers like JBoss or GlassFish.
You need some web site to host your application. Eclipse is hosting it for you on your local machine but to use manually I assume you mean you want it on a real site?
I joined a project which has been already developed and its an Web Application deployed on Tomcat Server.
I have configured the Web Application on my local Tomcat Server and it is running fine. I want to start debugging the Application but I am not sure where to start from and how to debug an Java Web Application from Eclipse and so my question is
Q: How to Debug Java Web Application which is running on Tomcat Server on Local Machine in Eclipse Environment {Pointers to useful resources or other steps would be highly appreciated}?
There are at least a couple of ways to do this:
A quick search turned up a tutorial to use remote debugging in eclipse with tomcat to connect eclipse to the java process running tomcat.
If you create your project as a Dynamic Web Project using eclipses Web Tools Platform plugin then you can deploy to and debug tomcat from within eclipse easily.
Just stop your server from normal start mode and click on debug mode. Soon, after the server shows debugging,synchronised, continue using the web apps as you do normally. But before that, you must provide breakpoints and you can see the results that you need.
Works for me.
I have had to do this a few times. Often it is not convenient to create a Dynamic web project to debug a web application in tomcat. This technique is fairly simple but requires some configuration in tomcat and then using Elcipse (or netbeans) to attach to tomcat when its running.
http://wiki.apache.org/tomcat/FAQ/Developing, in particular
How do I configure Tomcat to support remote debugging? and
How do I remotely debug Tomcat using Eclipse?
First get the Java EE edition of Eclipse
You then need to have the Eclipse project containing the WEB-INF folder be a Dynamic Web Project. Then the full tooling becomes available and allow you to work with your projects inside any server including Tomcat. The trick is to locate the Server view pane, and right click to add a new Tomcat server adapter.