Selenium for IntelliJ IDEA - java

I am relatively new to Selenium.
Currently in my company we use Eclipse to create and run our testing automation (Maven/Cucumber/Selenium).
We also use IntelliJ IDEA for Java development.
My question would be if it is possible to use IntelliJ IDEA for testing automation similarly like we use Eclipse (Maven/Cucumber/Selenium)? I mean to build test automation scripts.
If yes, so you could you kindly recommend any tutorial where it is explained how build those projects for IntelliJ IDEA.
Thank you in advance

this question has a simple answer. Whatever your company does in Eclipse, you can do in InteliJ.
BOTH Eclipse and InteliJ are IDE's (An integrated development environment for building applications that combines common developer tools into a single graphical user interface). So basically, consider them both like "code editors". There is really no difference in using Eclipse or InteliJ (maybe some UI differences).
Personally, I prefer InteliJ based on cleaner UI. You pick yours.
Here is one useful tutorial. Good luck :)
https://www.youtube.com/watch?v=JPLk4Z0U0yQ

Related

Selenium Java + TestNG integration with TFS

I have my selenium code in Java with TestNg framework (used Eclipse as code editor), but now I need to integrate it in TFS. I am very new to TFS but I have seen many ppl told it is possible so if somebody can help me with exact steps from starting it would be really helpful. If some hidden tips and tricks also , any body can suggest for smooth integration please do so. Thanks in advance for your time!!
The first thing is setting up your environment, both local and build server. You'd better to make they are some as each other, which could significantly reduce build issue/error.
For your local develop environment, please use Visual Studio Team Explorer Everywhere for Eclipse (VSTS and TFS) which is a plug-in for Eclipse that enables you to work with Team Foundation Server (TFS) and Visual Studio Team Services (VSTS) using both Team Foundation Version Control (TFVC) and Git version control systems.
Since you are new to TFS, suggest you first go through the build and deploy pipeline of JAVA projects with TFS. -- Working with Visual Studio Team Services (VSTS) and Java
About Selenium and test, please take a look at below tutorials:
Testing Java applications with VSTS
Selenium Java Integration with Team Foundation Server
Get started with Selenium testing in a CD pipeline

Automated testing tool for java post development

I have an existing java application which is developed in Netbeans this is my first major development project so i didn't think about the use of log4j & junit in first place(A good lesson learnt). since now i am at the end of the project i miss these two . is there is any tool or jar which can create automated testing & logging with minimum effort ? I guess Adding log4j is easy but what about junit ?
There is nothing to say that you cannot use Junit after you have created a project. It means that you are not making use of test driven development, but there is no reason why that is an issue once you have already created your project.
I would recommend the netbeans tutorial on exactly how to do that:
https://netbeans.org/kb/docs/java/junit-intro.html

How to extend Eclipse framework?

I want to base a tool on eclipse in a way that I could change eclipse framework whenever required. So probably writing a plugin is not a good choice ?
I want to extend it in a way as in Rodin(http://www.event-b.org/install.html)
The Rodin Platform is an Eclipse-based IDE for Event-B that provides effective support for refinement and mathematical proof. The platform is open source, contributes to the Eclipse framework and is further extendable with plugins.
So far I decided to download Eclipse platform project as directed in (http://wiki.eclipse.org/CVS_Howto) and downloaded all projects in(
:pserver:anonymous#dev.eclipse.org:/cvsroot/eclipse).
Should I download all of them?
Some of them contain error.
Is it correct way to do what I am trying to do?
How should I remove those errors?
I want to base a tool on eclipse in a
way that I could change eclipse
framework whenever required. So
probably writing a plugin is not a
good choice ? I want to extend it in a
way as in
Rodin(http://www.event-b.org/install.html)
Well there can be two approaches to extend eclipse framework. First approach, as you already know, is writing eclipse plugins. This is the way other platform specific versions or flavors of eclipse do. For example, eclipse Eclipse WTP and Eclipse Modelling work in the same way. They have core eclipse base i.e. classic Java base and then on top of it they have their on set of plugins and features. To give it a more product like feel, they have their own perspectives, views, cheatsheets and splash screen. Also to make your tool extensible you can provide custom extension points. These links would be useful:
PDE Introduction
Plugin Tutorial
Hello world plugin
How to write a plugin for Eclipse?
Eclipse Extension Point
Alternate Approach
The second way is more like making your own product, which in turn is based on eclipse framework, commonly known as Rich Client Platform (RCP). There are tools like IBM Lotus Notes, IBM Sametime, Bittorrent client Vuze. Again if you want to have an extensible IDE then you have to provide some custom extension points or use the existing ones. To make your application moduler, you have to organize it in plugins. The main benefit against the previous approach is that you don't have to ship the plugins which you are not using, which in turn makes your product smaller. The problem with the approach is that you have to think out the look and feel of the IDE, have to implement or least hook into the existing functionality like plugin installation from remote sites, code refactor, Java IDE, run/debug configurations etc. These links would be useful:
RCP Tutorial 1
RCP Tutorial 2
RCP Tutorial 3
RCP Tutorial 4
So far I decided to download Eclipse
platform project as directed in
(http://wiki.eclipse.org/CVS_Howto)
and downloaded all projects in(
:pserver:anonymous#dev.eclipse.org:/cvsroot/eclipse).
Should I download all of them?
Well it depends what do you want to do with them. If you are going to modify some functionalities (add or remove) from them then YES download/checkout the ones which you want to modify. Otherwise, if your intention is to extend eclipse then you need not to checkout/download any of the plugin/sources. Most of them have well defined and documented extension points; just use them.
Some of them contain error. How should
I remove those errors?
Its hard to say how to remove the errors without the stacktrace :). Still you might not need the source as I have mentioned above.
Is it correct way to do what I am
trying to do?
I will suggest you to go in a step wise manner. For me the logical step would be:
Learn about SWT widgets
Play with JFace
Read the releavent eclipse corner articles
Sit back and think what all features you need, out of that what can be reused from eclipse and what extra you need to develop.
Extending eclipse is a very well defined process. You won't face any problem :).
Good luck.
To base a tool on eclipse, you contribute plugins. You don't need to get the ones that are in CVS. Simply go to the eclipse download page, http://download.eclipse.org/eclipse/downloads/ and get the Eclipse SDK. That contains PDE, the Plug-in Development Environment, and source and schema for all of the API you would use.
Then check out the Official FAQ as a getting started reference. There's even a section on how to contribute your own language: http://wiki.eclipse.org/The_Official_Eclipse_FAQs
There's some "Getting Started" stuff on the Eclipse Wiki (includes a lot of the links that Favonius and Paul mentioned).
http://wiki.eclipse.org/Learn_About_Eclipse

Is it sane to start a Blackberry Java project without using the recommended IDE i.e. Eclipse?

Considering that I'll be using Vim as my text editor of choice, what tools do I have to consider to manage and build a project of this magnitude?
I'm told that Apache Ant is similar to GNU Make so that part is covered so far. But what about UI design, is there a stand alone UI designer, I mean, something that doesn't need Eclipse installed.
Update: Is there any how-to floating around for Blackberry development, like these ones for Android?
Android's development without Eclipse
Android's development guide for Non-Eclipse IDEs
Well. you'll need the simulator at a bare minimum, which you can download from the blackberry website. You will also need to download the SDK for the minimum OS you want to support. You will also need BB-Ant-tools.jar to be able to do ant builds properly.
Is it sane? Honestly No, it isnt. You´ll get lots of headaches.
With blackberry sometimes even the Recommended way of doing things fail, and trying to avoid using the tools that work best for the task is gonna get it even harder.
Writing Java without a Java aware IDE is torture. But if you're already comfortable writing Java code in vim, then you should be fine. There is no designer for BlackBerry -- we're all in the same boat on that aspect.
You may or may not find this relevant
Tips for using Vim as a Java IDE?

Best Blackberry Dev environment

What development environments do most BB devs use out there? I haven't programmed much Java in 6-7 years and typically used NetBeans or JCreator for projects as I found Eclipse cumbersome. RIM has the plugin for Eclipse, but I've also read some posts where people are using whatever editor they want and then using ANT for builds and testing.
I'm coming from .NET so obviously I'm a heavy VS.NET user.
Your supported options are JDE (simply not very capable compared to any modern IDE), and Eclipse. For widget development, the VIsual Studio plugin supports VS 2005 and 2008 (I don't think 2010 is yet, but I expect it won't be far behind.)
I've gone through great pains trying to stick with Netbeans (Eclipse makes me itch), but eventually had to give up and switch to Eclipse. The support simply isn't there; I was able to get the basic debugging to work with Netbeans, but that was just about it. Simple things like "break on uncaught exception"; or localization handling (if using string resources) were either not possible, or very inefficient.
The JDE is adequate for debugging, if only barely. However in my experience (especially in the very latest versions) there's no difference at all between the JDE and Eclipse debugging features.
The other option you have is to use the IDE of your choice; and ant-based build scripts. That would let you use . You will still have some pain points (mostly localization handling), but it would do the job. The Blackberry Ant Tools project can be found here: http://bb-ant-tools.sourceforge.net/docs. In this case you would still want to use JDE/Eclipse for ease of debugging, but would be able to do most of your development in the IDE of your choice.
I would recommend using both RIM tools. Eclipse plugin is good for development and now even supports hot-swap debugging on the Simulator.
But if you need on device debugging and logging - for me, only JDE worked correctly, so I keep both these tools in my toolbelt :)
If you want to try the ANT route, it's possible, for example look at Wordpress BB application, it shows a good way of working with BB project and ANT. IntelliJ handles it pretty well.
There are a number of specific free development environments provided by RIM, and which you can download, including an Eclipse plugin.

Categories

Resources