Posts

Showing posts with the label IntelliJ

Configure IntelliJ for a full stack JavaScript Automation

Image
There are some crucial IntelliJ plugins to install: Base64 for IDEA and Storm BashSupport Bootstrap Bootstrap 3 ddescriber for Jasmine JS Toolbox NUnitJS Markdown Support As a peace offering to the mighty IntelliJ, use Java as project SDK: I prefer to configure four separate modules, to help separate back-end vs. front-end JavaScript dependencies : Add the  bower_components  library to the  client  module, and the  node_modules  library to the server  module: And be sure to enable JavaScript libraries in the editor. Per best practices, we  do not commit the local IntelliJ IDEA configuration folder ( /.idea/ ) to the repository , instead adding it to the  .gitignore  file like so: # IntelliJ IDEA local workspace . idea However, for some developers' convenience   (and others' dismay)  we  do  commit the four IntelliJ module  .iml  files to the repository: client . iml...

Failed while enforcing RequireUpperBoundDeps - Maven IntelliJ

Image
Problem:  If you are using Maven and you have the enforcer plugin , you might see the error "Failed while enforcing RequireUpperBoundDeps" Solution:  Since we almost always make changes in a backward-compatible manner, it looks like the best solution for us is to ensure that the latest versions of dependencies are used . The Maven Enforcer plugin with the "Require Upper Bound Dependencies" feature accomplishes this. From  http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html : This rule requires that the version for each dependency resolved during a build, is equal to or higher than all transitive dependency declarations. The version of each dependency resolved during the build will normally be the version specified in the POM or the version with the least transitive steps (the "nearest" definition). For more information about Maven dependency resolution, see the Maven site.

lambda expressions not supported at this language level - IntelliJ

Image
Problem: If you have just started using Java 1.8 then IntelliJ might prompt you with this message “lambda expressions not supported at this language level” Solution:  In IntelliJ IDEA: In  File Menu  →  Project Structure  →  Project , change  Project Language Level  to  8.0 - Lambdas, type annotations etc. Note : Also make sure that you configure language level for every module File Menu → Project Structure → Modules, but by default it should be the same as Project language level

IntelliJ - Convert the Java project into a Maven project/module

Image
IntelliJ - Convert the  Java project into a Maven project/module: Right-click on the module, select "Add framework support...", and check the "Maven" technology. (This also creates a pom.xml for you to modify.) Maven repositories you need: http://mvnrepository.com/ Maven Information If you're using Maven, you will find all Selenium Maven artifacts directly in the central Maven repository here:  http://repo1.maven.org/maven2/org/seleniumhq/selenium/ In order to start using  DefaultSelenium  or one of the new  WebDriver  implementations in your Maven project, just add the following dependency to your  pom.xml : org.seleniumhq.selenium selenium-java 2.48.2 Note : 2.48.2 : The version at the time the post was written Source: http://www.seleniumhq.org/download/maven.jsp

Intellij Musing - Test Automation framework with Selenium Cucumber TestNG Maven Jenkins and GIT

Image
Pull the project from the scm repository in my case Git In IntelliJ File -> New -> Project from existing sources and navigate to the root directory Choose Import from external mode - Maven/Eclipse as need be  Update the pom.xml Maven clean run / Generate source and Update Folders Options to run: Right click and run the individual feature file Right click and run the TestNG.xml file - To run tests in parallel Right click and run the individual cucumber runner file - To run tagged tests Reports: Cucumber pretty format - Index.html Cucumber JSON report Customized html report

Switching from Eclipse to IntelliJ

Image
Image Source:  http://www.nevndave.com/2005/11/ So I have done this thrice but never succeeded in switching for obvious reasons. This time I did and I must say I was missing out on a lot of cool stuff, if you are doing what I am here is something that might help: Switching from Eclipse to IntelliJ : https://www.jetbrains.com/idea/help/eclipse.html and of-course the shortcuts: https://www.jetbrains.com/idea/help/map-of-shortcuts.html Eclipse IntelliJ IDEA Action Shortcut Action Shortcut Code completion Ctrl+Space Basic completion Ctrl+Space Smart completion Ctrl+Shift+Space Statement completion Ctrl+Shift+Enter Quick access Ctrl+3 Search everywhere Shift x 2 Maximize active view or editor Ctrl+M Hide all tool windows Ctrl+Shift+F12 Open ty...