Questions tagged [maven]

Apache Maven is an incredible tool that aids in the automation of building and managing projects, specifically designed for Java projects. This particular tag is designated for inquiries that do not pertain to any specific version of Maven. If your question relates to Gradle, we kindly request that you utilize the gradle tag instead.

Trouble accessing the browser - Session Creation Exception occurred

Here is a problem with the testcase code that I can't seem to get it to execute properly. Is there a configuration issue related to Firefox? package testOperations; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.sel ...

Tips for accessing or adding source code in IntelliJ 12

After creating a new project in IntelliJ version 12, which is a Maven module, I made sure to select the autoscroll options from the IDE. However, when I hover over WebDriver using Ctrl Q, it keeps prompting me to download or attach the source code. Despite ...

Unable to generate production package

NPM version (npm --v): 5.4.2 Gulp version (gulp -v): [email protected], [email protected] JHipster version: 4.6.1 Node version: 6.11.3 I am facing difficulties in generating a production package for my application. The process of running ...

Selenium error: Unable to detect symbol

After following a tutorial on YouTube, I decided to copy and paste the code generated by Selenium IDE export function into my class file instead of typing my own. However, I encountered several errors with unknown symbols. I thought Maven was supposed to r ...

How can JHipster components be effectively shared with other projects for optimal usage?

Exploring JHipster, the Spring Boot + AngularJS application generator based on Yeoman has been an interesting and fun experience. Setting up a vanilla webapp was relatively easy. Now, the goal is to separate entities, repositories, and services from the o ...

Encountering a java.lang.ExceptionInInitializerError when attempting to execute the Tests class due to an issue with cucumber.deps.com.thoughtworks.xstream.XStream.setup

Check out this dropbox link for further investigation. Encountered an issue while trying to run a test scenario in IntelliJ, resulting in java.lang.ExceptionInInitializerError at the first step. The StepDefinition class is provided below: package automatio ...

The Transition from Cucumber 4.5.x to Version 5.0.0

I've been facing challenges while updating an old test framework from Cucumber 4.5.x to a newer version. The project uses Maven, IntelliJ, Java, Selenium, and Cucumber. It seems like Cucumber is either intentionally misleading me or their documentati ...

Issues were encountered in the Suite Class as it failed to trigger the methods annotated with @BeforeClass and

I have a collection of test cases that require the use of @BeforeClass and @AfterClass annotations in JUnit to set up and tear down resources before and after execution. While these methods work correctly when running the suite class through JUnit, they ...

Selenium GUI tests are not showing up when running in Jenkins on a Windows 7 machine

I am encountering an issue where when I run my Selenium test (mvn test) from Jenkins on a Windows system, I can only see the console output and not the actual browsers being opened. Is there a way to configure Jenkins so that I can view the browsers runn ...

Does Page Object Design Pattern in Selenium involve the creation of page classes and the instantiation of their constructors through object references?

After setting up a Java Maven test project with Selenium, I am looking to transform it into the Page Object Design Pattern. It seems like we need to create classes for each page and then call them using objects in the main class based on what I've read in ...

Multiple WAR files are nestled within an EAR file, facilitating the sharing of classes

Currently, my development setup involves Eclipse Neon and Maven. My projects consist of two main entities: Project 1 for all the Web services (SOAP and RESTful) and database access implementations, and Project 2 which houses the Angular implementation for ...

Encountering org.openqa.selenium.firefox.NotConnectedException while using Selenium Java 3.0.1 with Firefox version 51.0.1

Encountering org.openqa.selenium.firefox.NotConnectedException while using selenium java 3.0.1 with firefox version 51.0.1. Attempting to utilize the Gecko driver. This is my code public class Gecko { String driverPath = "/home/hema/Downloads/Softwa ...

Challenges encountered during the execution of the test script using Maven

During the execution of my test script using Maven Test, I encountered errors at runtime. Here is a summary of the errors: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [IN ...

The release of the Angular App within a webjar is causing problems relating to the baseHref

Currently, I am looking to package my Angular frontend in a webjar so that it can be easily imported via Maven into any Java backend. Successful in this task, I now have a Spring Boot backend with an application.properties file showing: server.servlet.cont ...

log4j: WARNING The property [conversationFormat] does not exist in org.apache.log4j.PatternLayout

After searching through other questions, I couldn't find a solution that worked for me. When running my program, log4j showed this warning message at the beginning: log4j:WARN No such property [conversationPattern] in org.apache.log4j.PatternLayout. Here ...

Add a Maven library dependency to the npm package.json file

When building a Kotlin multiplatform library using Gradle, I utilize the org.jetbrains.kotlin.multiplatform plugin. The library is built for mobile, Java, and JavaScript platforms. The problem arises when this plugin only publishes the output into a Maven ...

Avoid creating reports during Maven build execution

I'm encountering an issue with my Maven build process. I have multiple reporting plugins set up in the project, and every time I run Maven → clean, it clears the reports causing the Maven → build to fail with a FileNotFoundException error. Is ther ...

The allure report is failing to connect with the HTML report

My attempts to include a screenshot in my allure report have been unsuccessful. @Test (priority = 1, description="SS1 Verify the login section") @Description ("Verify that user mngr116116 can logon to the system") public void login() { page = new ...

Executing Serenity with Selenium tests has resulted in duplicate test runs

While running tests using Maven clean/verify with Serenity reporting, I noticed that my tests seem to be executed twice before the build is successful. Surprisingly, Serenity only shows one test (which is actually a good thing). I have tried removing post- ...

Issue with Google Calendar: Unable to locate com.google.api.client.json.JsonFactory.fromInputStream

Currently, I'm developing a Spring-MVC application and I'm facing an issue while trying to integrate Calendar functionality. The problem seems to be related to authentication due to a json error. I have been using Googles sample code but it appea ...

Unable to utilize IE and Chrome WebDrivers following the addition of pom.xml

Upon the Maven requirement, I incorporated pom.xml into the project and made the necessary adjustments to transition the existing project into a Maven-based one. Here is the error stack trace encountered while starting IE WebDriver, a similar issue occurs ...

From where does the require.js file originate?

Currently, I am learning Angular 2 from the tutorial available at https://github.com/pkaul/maven-typescript-example. Once I proceed with the 3rd step (mvn jetty:run), a runnable war folder is generated in the example-webapp/target directory. However, I ha ...

Assessing the level of code coverage for Selenium tests located in individual projects

I currently have two distinct Java Maven projects - one for my web application itself, and the other for Tellurium+Selenium automation tests for my web app. I decided to separate these test projects due to their code being unrelated to the web app project ...

Encountering difficulties in resolving the HTML view with Spring Boot

After creating a Spring Starter Project in Eclipse, I only selected the Web dependencies checkbox. Despite writing a simple html file and controller, I keep encountering the Whitelabel Error Page. I have made the decision not to use any template engines ri ...

Encountering a Maven error stating "The archetype catalog appears to be empty" when trying to set up a Maven project for WebDriver combined with Test

I am facing an issue with adding the Maven artifact "ru.stqa.selenium" in Eclipse. I tried to download the catalog file from: "https://github.com/barancev/webdriver-testng-archetype". Here are the steps I followed: Eclipse -> Window -> Preference -> Maven ...

What is the process for running selenium-based tests/scripts for an enterprise project or application?

One fundamental question that arises is how Selenium scripts are executed in an enterprise/project/application. These scripts are typically written in Java using locators and various tests are created. The tests are organized through TestNG and can be run ...

An issue with Maven, TestNG, and Surefire: the AfterClass method is not being executed

Could there be a reason why Maven is not executing my AfterClass method with alwaysRun=true? The BeforeClass method runs without any issues and the test passes according to the Surefire report. I am running the command in the terminal: mvn -Dtest=TestSuit ...

The Maven Surefire Report Plugin is unable to generate an HTML report

Attempting to create an HTML report from my JUnit Selenium test cases has been challenging. I've followed various online tutorials that recommended using the maven-surefire-report-plugin. However, when attempting to implement this in my own project, i ...

Issues with executing a Selenium project in Java using Maven - Troubles with the Surefire plugin

I encountered the following issue: While running my Selenium-Maven-Java project, I faced a Surefire plugin error. When building my project on Circle CI, I received this build error. I would appreciate any suggestions on how to rectify this. This is ...

Incorporating telepat-io into a Java Struts enterprise solution

Our J2EE enterprise application, built on Java Struts, has a static front end. Our team's architect has opted to enhance the user authentication by incorporating Ajax and JavaScript functionalities using telepat-io. The project is currently managed w ...

What steps can be taken to confirm that the library or package I am responsible for maintaining remains compatible with previous versions?

As the caretaker of a library or package distributed through various package managers like NuGet, Maven, or NPM, I have unfortunately encountered instances where updates to my package inadvertently disrupted backwards compatibility. For instance, there wa ...

Can you explain the significance of src/main/java and src/test/java directories within a maven project?

When setting up a maven project for selenium automation, understanding the purposes of src/main/java and src/test/java is crucial. Can you provide insight on what each should include? Additionally, should Junit test cases be stored in src/main/java or sr ...

The frontend-maven-plugin encounters issues during the npm install process

I encountered an issue while attempting to use the frontend-maven-plugin in my project. Although I can successfully run npm install and npm run build through the command line, running it with the plugin resulted in the following error: [INFO] ------------ ...

Issue Encountered: Unable to locate the class file for org.openqa.selenium.internal.Locatable

I am currently facing a build error in Eclipse while using Selenium and Maven to develop a project. The error message states: Cannot find the class file for org.openqa.selenium.internal.Locatable. Upon closer inspection, I realized that the version of Sel ...

Is there a way to execute Selenium RC JUnit tests with Maven outside of the regular lifecycle?

I am working on a Maven project that consists of Selenium 2 tests integrated with JUnit. These tests are located in the src/main/java source directory and are meant to test a web application external to the project, rather than testing the project itself. ...

Encountering issues with downloading necessary dependencies

I'm encountering issues downloading junit and Selenium dependencies in IntelliJ. I've installed IntelliJ on my work laptop, which requires a proxy connection to access the internet. I've entered all the proxy details in the IDE and can succe ...

Centralized platform for accessing node and npm installers that adhere to Nexus standards

I am searching for a nexus-compliant repository where I can find a node installer that aligns with Nexus guidelines (an alternative to http://nodejs.org/dist/). Situation : In our Java environment, Maven handles our builds. We recently integrated a JavaS ...

Maven profile not executing specified tests

Within my Maven pom file, I have set up a simple profile to execute some integration tests during the default test phase rather than the integration-test phase. The reason for this is that I want to avoid building and deploying the war file. These tests ar ...

Save the frontend maven plugin output to a designated file

In the super-pom, I have integrated a powerful frontend-maven-plugin to handle the building of npm artifacts. One of the steps involved in this process is generating a dependency tree for npm and saving the results to a file. After experimenting with some ...

Is it possible to run both TestNG (group) and Cucumber (tag) tests simultaneously using a single command in Maven?

I have encountered a challenging issue that has left me stumped despite numerous attempts to solve it. The current setup involves a testng framework for GUI testing, where tests are executed based on groups in a maven command. I have been tasked with creat ...

The @JsonIgnore annotation is failing to function as expected

It seems like the @JsonIgnore annotation is not functioning as expected in my project. I have come across some suggestions stating that this issue may arise due to the use of incompatible Jackson versions (org.codehaus vs. com.fasterxml). However, I am onl ...

Encountering a HttpMediaTypeNotAcceptableException while making a jQuery ajax request after upgrading to Spring 3.2.4版本

Whenever I attempt to execute a jQuery ajax call, I am facing the HttpMediaTypeNotAcceptableException. The current configuration that I have includes: Within the context (which is in the classpath), I have the following: <context:component-scan base- ...

Leveraging the SNAPSHOT feature in a personal NPM repository, resembling the functionality

I currently have a basic setup that is working smoothly: Library A Library B publishing 1.0.0-SNAPSHOT -> Private Repository -> npm install Note that A and B are located on separate machines (imagine ...

Is it possible to run a Cucumber Test with just one command, depending on the tags condition? For example, only execute the @Regression tag if the @sm

I am currently facing a need to develop a single run command or script file that can execute the @Smoke tag test first, and if it passes, continue on to execute the @Regression tag. If the Smoke test fails, then the execution should be aborted. We are wor ...

Issue: Failed to locate or load primary class in Maven converted project

After creating a new Java project and successfully running it, I decided to convert it into a Maven project. I made sure to resolve all errors in the POM.XML file as well. However, when I attempted to run the class file, I encountered the following error: ...

Leveraging static variables from src/test in src/main using Maven

I have encountered a challenge while migrating a simple login and logout selenium test, utilizing pagefactory with TestNG. The test runs smoothly when executed as a "TestNG" test, but after moving it to Maven, I faced difficulties in accessing variables ac ...

The attribute "parallel" set to "none" must be one of the following values: false, methods, tests, classes, or instances

I have set up a Maven project using Selenium WebDriver and integrated TestNG. However, when I validate my Maven project, an error message is displayed stating "Attribute "parallel" with value "none" must have a value from the list "false methods tests clas ...

How can I troubleshoot the RegistryBuilder problem encountered during Junit testing with Maven?

I recently created a test in Juni and added it to my Maven project. However, when I try to build the project, I encounter the following error: java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder at org.openqa.selenium.remote.int ...

What are the top strategies for storing npm artifacts effectively in Artifactory?

Greetings! We are relatively new to NPM and come from a background in maven, so please bear with us if our questions sound basic. Currently, we have NPM repositories set up in Artifactory where we produce packages in war format. However, we are unsure abo ...

Reattempting cucumber failed scenarios: Filters are not aligned: [@test1, @test, 23, 36]. Please use only one filter type [line, name, tag] at a time

Encountering an error message while attempting to re-execute failed Features in Cucumber using the rerun option, [Utils] [ERROR] [Error] java.lang.IllegalArgumentException: **Inconsistent filters: [@test1, @test, 23, 36]. Only one type [line,name,tag] can ...

Error encountered during Maven clean install process (issue accessing URL in browser)

After thoroughly searching the forum for an answer, I am still unable to find a solution to my issue. My problem arose when I attempted to perform a clean install after installing Maven. Below is the POM file : <project xmlns="http://maven.apache.org/ ...

Executing react scripts through the frontend-maven-plugin is ineffective

I have a main Maven project that includes a separate frontend project within it. When I navigate to the frontend folder using cmd and execute "npm run build", everything works correctly. However, when I run "mvn clean install -PautoInstallPackage" from t ...

Running Grunt task after saving in NetBeans 8.0 - A step-by-step guide

In my Maven Spring MVC project within NetBeans 8.0, I am utilizing AngularJS for front end development. With over 30 .js files and counting, I decided to streamline the process by using Grunt to merge and minify them. After installing Node.js, npm, and gr ...

Steps to resolve maven org.apache.maven.surefire.testset.TestSetFailedException:

As I work on setting up my project on the server, running my Maven project using mvn test is resulting in an error. I have ensured that everything is set up correctly, but I am still unable to determine where the mistake lies. org.apache.maven.surefire.t ...

Using the Selenium library with the Chrome browser for test automation, along with Maven and JUnit for project

I have a Maven test project that is both keyword driven and data driven using JUnit. After executing the quit keyword, chrome tabs are opening automatically. I am currently using the Chrome browser. I attempted to terminate the process in Eclipse, but th ...

Building a web application with Spring Boot while incorporating the use of Selenium WebDriver

As I delve into the realm of spring boot, I find myself facing a challenge in integrating selenium into my application. The goal is to create a basic web page with an input box and button. Users should be able to enter a URL in the input box, which will th ...

What steps should I follow to run tests with Maven while ensuring that the features are ordered correctly?

Currently, my integration tests with an e-commerce application are being run using the combo of Maven + Selenium + Jenkins. An issue arose where Maven does not adhere to the order of the .feature files: 1-test_case.feature 2-test_case.feature 3-test_ca ...

Setting up the TestNG classpath in a Maven project

I encountered a problem while executing my Testng Project Error: Unable to locate or load main class org.testng.remote.RemoteTestNG Here is the content of my POM.xml file <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org ...

Running tests using Selenium and Maven works fine on a local machine, but encounters an issue in Azure Pipeline with the error message "unable to access org.testng.Assert."

Running TestNG or Maven tests locally shows that all test cases are working correctly. However, when running the tests in a pipeline, an error is encountered stating "cannot access org.testng.Assert". Attached below are error screenshots of Azure Pipeline: ...

When comparing org.json.simple.JSONObject and org.json.JSONObject, the issue of JSONException not being able to be resolved as a

Could someone clarify the distinctions between org.json.simple.JSONObject and org.json.JSONObject? Also, I am encountering an issue with a code that uses org.json.JSONObject and org.json.JSONException. While editing the code in Eclipse (JUNO), it recogniz ...

How can I effectively communicate and share dependencies in a shared class?

After extending an abstract class and implementing a method specifically for use with Mule, I realized the need to add this functionality to a library that will be hosted on Maven Central. The catch is that this library relies on a JAR provided in the Mule ...

The correct way to reference images in the resources folder using a URL in CSS

After I generated a Maven dynamic web project using an archetype, I decided to organize the javascript, css, and image folders under the webapp folder. The structure now looks like this: myproject | main | | | java | | | resources | | ...

Allure Report Attachments: A Closer Look at

In my Selenium code, I've compiled a list of asserts. I'd like to include all the asserts and responses as attachments for the passing test cases. Additionally, is there a method to add server logs to the attachments for the failing test cases? Please ad ...

WebDriverManager unable to connect with PhantomJSDriver

I am facing an issue with using WebDriverManager. I want to use PhantomJSDriver without manually setting a system property like this: System.setProperty("phantomjs.binary.path", "E:/phantomjs-2.1.1-windows/bin/phantomjs.exe"); In my pom.xml, I have these ...

Combining a JavaScript NPM project with Spring Boot Integration

Recently, I built a frontend application in React.js using NPM and utilized IntelliJ IDEA as my IDE for development. Additionally, I have set up a backend system using Spring Boot, which was also developed in IntelliJ IDEA separately. My current goal is t ...

Generate a distinct report folder for every execution by utilizing Selenium-Cucumber Maven

I'm currently utilizing extent reporting in my selenium-cucumber project to generate report files. However, each time the program runs, it overwrites the previously generated report. Is there a way to create separate report folders with timestamps app ...

The Jetty server is unable to provide JSON responses

Whenever I use the command mvn jetty:run to initiate my server, it fails to return JSON formatted strings. Instead, it only returns raw strings or "null" for all objects. In the code snippet for my endpoint, you can observe that there is no variation in r ...

The Maven build encountered an error while trying to execute a goal, resulting in the inability to

I'm currently working on a Windows 7 computer and I've received some code that requires me to execute "mvn install" in order to build the application. However, when I try to run this command, I encounter the following error: Failed to execute goal org.c ...

Understanding the basics of Maven imports: troubleshooting class not found errors

After adding the following to my pom.xml: <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20170516</version> </dependency> The desired json classes, such as JSONArray, ...

Tips for effectively testing GWT and SmartGWT together in unit tests?

Currently, I am conducting unit testing on the client side of a GWT+SmartGWT application. Initially, I utilized GwtTestCase for testing, but found it to be too time-consuming for such a large application. Even when using GwtTestSuite, the execution time wa ...

Webjars dependency remains unresolved despite its apparent presence on Maven Central

Recently, I encountered an issue while trying to use the React Bootstrap library in my build.sbt file. Previously, I had included the following dependency: "org.webjars.npm" % "react-bootstrap" % "0.27.2" However, it seems that a version dependency has c ...

Encountering a java.lang.NoClassDefFoundError related to org/hamcrest/SelfDescribing while using Maven

I tried to execute the junit webdriver example from sauce labs, but encountered an error while running 'mvn test': java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing This is the complete pom.xml: <?xml version="1.0" encoding="UTF-8"?> &l ...

When IntelliJ starts Spring boot, resources folder assets are not served

I'm following a tutorial similar to this one. The setup involves a pom file that manages two modules, the frontend module and the backend module. Tools being used: IDE: Intellij, spring-boot, Vue.js I initialized the frontent module using vue init webpac ...

Running a script as a file in Java: A step-by-step guide

In my project, I have a Python script that relies on an accompanying XML file to function properly. To make this work, I am reading in both files as InputStreams and then creating temporary files for each of them: InputStream is = (this.getClass().getClas ...

Encountering an "inaccessible module" error when trying to install Selenium in Eclipse using Maven

Currently, I am facing an issue while attempting to integrate the Selenium 4 library into Eclipse using Maven in an existing modular project. Upon adding the selenium-java dependency, I encountered multiple errors including: The type org.openqa.selenium.B ...