As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have to write an automated script in Java to do following
Login to an internal website with userid and password
Once login is complete click on a link which will open another web application and make sure the website is available
Send success / failure email to a specified group
The above job will have to run every day at a specified time to check the site availability. (I can use windows scheduler to schedule this as a job)
Due to network policy I cannot use any site availability websites to check this.
There are lot of Java based test frameworks available in market.
I would appreciate if anyone can point me to the right framework.
Thanks
Selenium Web-Driver Automation framework is the best. It supports multiple langugaes, along with Java. You can check the seleniumorg site http://seleniumhq.org/
For mailing, you can use Java Mail API.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am trying to create a java desktop application based on a database. But what i want is that the database that i use should be included with the installation files that are created after building the project so that the user does not have to install any database separately to use the application.
Can anyone please help me with this and also show how to go about it?
A good option is for your application to use an embedded database. Which is where the database process runs within the same process as the application using it. From a code-perspective, it still acts like any other database (accessed through connections/datasources, for example). So the code doesn't know it's an embedded database.
There are lots of database products that supported embedded databases...
http://en.wikipedia.org/wiki/Embedded_database
I've used H2 previously with good results, so I can recommend that product for use as an embedded database. You should look at what your needs are and see if there is a product which can be embedded which fits your requirements.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is the need of a reporting server?
What do I miss out by not using a reporting server and instead using a reporting library?
Reporting libraries like Jasper can easily generate a report and can be embedded anywhere, be that Servlet or a desktop application. Why then would one need a reporting server?
The most useful feature of a reporting server would be the ability to generate scheduled reports, the second most useful is the ability to view reports on the web, aside from that, you don't miss too much if you don't use it.
A reporting server usually generates reports offline or cached on demand. This means that report you need are more likely to be pregenerated and accessible immediately rather than waiting for the report to generate. It can also be used to generate reports which are emailed periodically.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am interested to build a mail service that allows you to incorporate custom logic in the your mail server.
For example, user A can reply to helloworld#mysite.com once and subsequent emails from user A to helloworld#mysite.com will not go through until certain actions are taken.
I am looking for something simple and customizable, preferably open-sourced. I am fluent in most modern languages.
What email servers do you guys recommend for this?
Almost every mail server has some form of extensibility where you can insert logic in the mail-flow process, it's how some spam filters were implemented before they were built directly in to the servers. Personally, I use Exchange server which has a variety of points and APIs to extend it, such as SMTP Sinks.
However, this question is off-topic and shouldn't be on StackOverflow.
I suggest you build your own server - implementing a server-side version of SMTP and IMAP can be done by a single person, or use an existing library, it shouldn't take you more than a year if you put in a couple of hours each day.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to create an email application which is depending upon the same function of our android mobile's default email application. How can I get that default email functions source code?
I think what you are looking for is K-9 mail. It looks like you're in luck. it's open source on github: https://github.com/k9mail/k-9
For sake of completeness, the source of the default Email application is available at
http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary.
EDIT: Palaniraja suggests the following alternate link, however it does not support the source browsing capability of the discontinued original repository.
https://android.googlesource.com/platform/packages/apps/Email/
However, it will (or at least used to) require a fair amount of adaptation before it can be built with the SDK, as it was originally designed to be built with the platform build system before decisions about APIs available under the SDK were finalized. Unless that has changed, you may be better off working with some other codebase that someone has already adapted for SDK use.
maybe this will help you: http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
i've used that for my own gmail client app.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it.
Sometimes it is not possible to disable such protection.
I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.
I am writing code in Java if it helps.
[EDIT: so some Java library for this would be great]
You could use VMware (or VirtualBox) with different test-setups.
Try node.js. Also have a look at a sample proxy implementation