Questions tagged [maven]
Maven is an open source build management tool that is part of the Apache project - https://maven.apache.org/.
70
questions
-1
votes
0
answers
27
views
Run module test project from Parent Project
I had a parent project with several modules project called module Bulitv3, NST, BHarian, and FMT. Each of them has their own test manager.
How to run from the parent project test manager called ...
-1
votes
0
answers
32
views
Consolidate Extent Report into single report with module project
I had several independent IDEA maven project which run perfectly fine. I need to combine them into one single parent project due to consolidate reporting issues.
The purposes of create such multi ...
0
votes
1
answer
30
views
Multiple verifications under one test - if one of the verification fails how to continue to verify the remaining
I'm working with selenium/Java /TestNG Maven project.
Main function calls multiple validation from java class. If any one of the verification fails, the remaining are skipped.
From the below code if,
...
0
votes
1
answer
2k
views
Java maven - IllegalArgumentException: Input must be set
I get the following errror when I use git bash command - however when I run the test in Intellij everything works fine and test starts. Could you help ?
mvn test -Dcucumber.filter.tags="@desktop&...
0
votes
0
answers
134
views
Not able to run selenoid tests with gitlab using dind for java maven tech stack
I am relatively new to gitlab and selenoid.
I have been trying to run my tests on selenoid with gitlab and below is what my gitlab-ci.yml file looks like:
image: maven:3.8-openjdk-11
variables:
...
0
votes
1
answer
40
views
How to include automation framework jar file dependency in my maven pom.xml?
I want to include one .jar file which has classes of my core automation framework. I created a "lib" folder in my selenium project and then gave its path in the pom.xml dependency. This Jar ...
1
vote
1
answer
796
views
Error while testing android device using appium and selenium
I get this error and cannot start the device:
java.lang.reflect.InvocationTargetException
Unable to create a new remote session. Please check the server log for more details.
Original error: An ...
0
votes
2
answers
3k
views
Run as testng is not found in eclipse
I have switched to a new branch and created new TestNG XML to run different test suite. But when I tried to run it as a TestNG suite eclipse only suggests run as configurations. I have set the suite ...
0
votes
3
answers
5k
views
I am not able to ctrl + click on feature file in Cucumber step definition, definition not found error
Help Me
I have installed Cucumber and Natural but my feature file is not getting highlighted after clicking ctrl + click.
Also, it has highlighted with yellow color
While running Test Runner, it says ...
-1
votes
1
answer
391
views
Custom Framework for Writing a Test that Reads a CSV File into a HashMap
I am trying to complete a lab where we are asked to write a unit test that can read a csv file into a hashmap.
So far I have this:
import java.io.BufferedReader;
import java.io.FileReader;
import java....
0
votes
0
answers
2k
views
Chrome Driver Maven Error "org.openqa.selenium.SessionNotCreatedException: Could not start a new session."
I am trying to run a selenium-based java test application on Intellij using maven. The problem is that if I run the test in IntelliJ the chrome driver starts and run successfully whereas if I Exeecute ...
1
vote
1
answer
706
views
Unable to run test on gitlab pipeline due to DevToolsActivePort file doesn't exist
I created a sample Selenium Webdriver test using java and maven and pushed it out to my gitlab repository. Then I created a new pipeline to run the automated tests. This is my first time running a ...
1
vote
1
answer
841
views
How to get the count of all the test cases in my Maven Selenium test project
At the moment I'm working on a legacy Maven Selenium test project.
It will take around 10 hours to run the entire test suite.
After 10 hours from the IntelliJ I can get the total number of test cases ...
0
votes
2
answers
54
views
GUI / report for Selenium / Maven test failures
I've got testers starting to work with Selenium / Maven / Java / IntelliJ Idea. Does anyone know if a way I can generate a GUI report of a test's results after it has been complete? Only need to ...
-1
votes
1
answer
58
views
Getting Nullpointer exception when using click method using Page object model
In Helpers class I have this below method
public void click(By locator){
driver.findElement(locator).click();
}
In one of the pages used that method to click on an element as follows
public class ...
2
votes
2
answers
3k
views
java.lang.UnsupportedClassVersionError -CucumberJvm4SMFormatter -Java runtime Version error
My testing framework is built with Cucumber, TestNG, Java 1.8 and Maven
I recently updated my IntelliJ IDE
Details: IDE : IntelliJ IDEA Ultimate 2020.3 - Runtime version : 11.0.9
Cucumber is ...
1
vote
1
answer
443
views
Automated testing of Google Pub/Sub
I'm new to test automation and Google Pub/Sub. I'm developing automation scripts for regression testing. My automation framework is built with Java, Maven, Cucumber and TestNG
My application is a ...
0
votes
1
answer
8k
views
Maven is not running any tests called using testng suitexml files in POM.xml
I am trying to run a test using Maven by providing the testng.xml file. It is not running any test, although the build is successful.
POM.xml
<project xmlns="http://maven.apache.org/POM/4.0.0&...
1
vote
4
answers
16k
views
TestNG- No tests found. Nothing was run
UTF-8
io.rest-assured
rest-assured
4.1.2
test
org.testng
testng
6.14.3
...
0
votes
1
answer
894
views
Null Pointer Exception Error at Selenium TestNG
I'm trying to automate the search box but I'm getting null pointer exception.
package LICT.Maven_ReCheck_Search;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import ...
1
vote
2
answers
4k
views
Jenkins doesn't execute tests
I have a Maven project and I'm using TestNG. My build completes in Jenkins, but the tests I want to run from my testng.xml file are not actually executed. I have my console output from Jenkins and ...
1
vote
1
answer
4k
views
Getting “testng.xml is not a valid file” error in Jenkins
I’m getting the following error when trying to run a Selenium/TestNg test from Jenkins.
[ERROR] Suite file /development/apps/config/jenkins/jobs/teste-automatizado/workspace/Abc/testng.xml is not a ...
0
votes
0
answers
53
views
read otp from seetest mobile application and paste to continue with login process in web application
I am using cucumber and configure appium and seetest to run web application on mobile browser, i want to check otp that is sent via my application to mobile number (on seetest device number which is i ...
3
votes
1
answer
2k
views
How to resolve NullPointerException error while implementing POM with cucumber framework
I am getting java.lang.NullPointerException while executing my test case, I am using Page Object Modle with cucumber framework in my maven project, following are the code snippets
BoxJunitScript.java
...
1
vote
3
answers
319
views
What is the use of Maven in Selenium WebDriver Automation Project?
Do we use Maven only to create dependencies in pom.xml file? Isn't there any other use of Maven in selenium project?
1
vote
2
answers
1k
views
Cannot initiate TestNG test
I'm learning to use selenium WebDriver with TestNG plugging for Eclipse and I ran into this issue where I can't execute the test case (it is unfinished but it has no compile errors nor warnings).
...
0
votes
1
answer
811
views
Unable to Run Tests on Edge browser in Jenkins
I am trying to run my Tests in the Jenkins using Microsoft Edge.
When I click on build now, I am getting the below error in the Console Output
------------------------------------------------------
...
-1
votes
1
answer
626
views
Not able to execute Selenium maven automation project using Eclipse Run as "Maven Test"
When i execute my selenium java project using maven test its not executing. its showing me error.
Its execute properly when i execute through TestNG.xml file. But its showing error when execute it ...
3
votes
0
answers
804
views
Using maven to create a standalone jar file that executes in any OS
I am trying to create a standalone selenium-TestNG tests Jar file that can be executed in any OS as part of CI/CD.
My POM.xml is as follows:
<project xmlns="http://maven.apache.org/POM/4.0.0&...
3
votes
1
answer
6k
views
Can I create an executable TestNG Selenium jar with my tests using maven
##### My POM file pom.xml
http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
company.myproj
myproj
0.0.1
jar
<properties>
<project.build.sourceEncoding>UTF-8</project....
2
votes
1
answer
10k
views
“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node
I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error:
org.openqa.selenium....
3
votes
2
answers
4k
views
Selenium UI Tests folder structure
I'm really new here and started writing some UI tests using selenium and testng and wanted to know how do you structure the folders, it is a maven project and using java. I'm putting all the test ...
0
votes
1
answer
6k
views
Maven dependencies are not getting updated after taking latest version of code
Maven dependencies are not getting updated automatically after taking the latest version from TFS.
The Project has a red color mark and pom.xml file shows (x) mark.
Please let me know how to resolve ...
1
vote
1
answer
79
views
Automation Test Gradle Project using Selenium, can we keep test scripts outside src/test/java folder and access and if yes, how can we implement it?
In a maven/gradle project, can we keep source code of automation testing outside src/test/java or src/main/java folders, keeping that code creating a new folder inside project root? If yes, how can we ...
0
votes
1
answer
571
views
Cucumber - Feature file with page object model approach
I am totally new to cucumber, I am using page object model approach.
Let's say I have 3 page and 3 test classes
Ex: login Page.java / loginTest.java
Registration Page.java/Registration Test.java
...
1
vote
1
answer
6k
views
Maven Dependencies Selenium
I have started learning Selenium recently, but i am stuck on the first step itself, in-spite of adding all the required webdriver dependencies, while initiating the webdriver instance in a function, ...
1
vote
3
answers
3k
views
Set up proxy for selenide?
Is there any possibility to set up proxy for selenide library?
I start autotests from command line with maven comman:
mvn clean test [some params] site
It was possible to change maven setting to ...
2
votes
2
answers
8k
views
testng.xml is not executing when we run pom.xml for maven project selenium
While executing my pom.xml file through maven test my BUILD is getting SUCCESSFUL but my testng.xml is not executing.
I tried with executing 13 classes and with single class for both the time it ...
1
vote
2
answers
7k
views
Jmeter + Maven: how to add a jar file to JMeter /lib/ext folder
I have a Jmeter-Maven project and I'd like to put a modified jar file in "/lib/ext" folder.
I've added it to “/src/test/jmeter/lib/ext”, but seems it doesn't work.
Do I need to add dependencies to ...
1
vote
2
answers
923
views
JMeter + Maven: how to send test result data to InfluxDB?
I use have JMeter tests run by jmeter-maven-plugin.
I’d like to send my test results data to InfluxDB (in order to visualize results in Grafana).
How can I do that? Do I need to set that in my POM ...
0
votes
1
answer
3k
views
Maven TestNG multiple suites in different folders
I'm working on a mobile automation task where I need to run test suites in parallel for 3 different iOS apps. Each test suite has its own testng.xml with a section configured to run on a device.
I ...
2
votes
2
answers
38k
views
Maven installation Error JAVA_HOME not defined correctly but it really is defined correctly
Operating System Windows 10
java version "1.8.0_161" - jre
C:\Users\admin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_91\;
Error (Command line)
C:\Users\admin>mvn -version
The JAVA_HOME ...
1
vote
1
answer
405
views
Clean pom.xml from all not used dependencies
Maybe this question was already posted here. If yes, please attach the link, I couldn't find out the same.
I would like to clean my old and not used dependencies from pom.xml, can someone advice me ...
0
votes
4
answers
8k
views
Cucumber test suite: how to pass username and password without hardcoding
I'm building a test suite with Cucumber on Java + Maven + jUnit and I need to pass a username and a password to the test suite so it can log in to the application under test.
I don't like the idea of ...
2
votes
3
answers
35k
views
Cucumber step definitions in .feature file not highlight
In my project, I create simple feature file in my maven project using cucumber syntax.
but IntelliJ IDEA, not highlight steps in feature file and also I cant use ALT+ENTER key to create step ...
1
vote
2
answers
575
views
Can we run Robotframework test cases through Maven Surefire Plugin to run them parallel
Hi I have created some test cases in Robot framework and now I wat to run them in parallel. I know there is Pabot to run test suites in parallel but my requirement is to run them through Maven ...
3
votes
1
answer
6k
views
Unable to run cucumber tests from command line
I know this is the most common question but sorry I am posting this again as I tried all the solutions but couldn't solve the issue,
Problem: I am unable to run my cucumber tests through maven and ...
1
vote
0
answers
547
views
Cobertura analysis reporting "[ERROR] SLF4J: Class path contains multiple SLF4J bindings."
Cobertura is reporting that there are multiple SLF4J bindings in the classpath, actually both related to different versions of the logback-classic artifact:
[ERROR] SLF4J: Class path contains ...
7
votes
2
answers
4k
views
How to run tests in parallel using Robot Framework Maven plugin?
I'm using the Robot Framework Maven plugin to execute my Robot Framework scripts. I'm using this plugin because some of my keywords are implemented in Java and packaged inside an external library.
I ...
2
votes
1
answer
2k
views
Jenkins: failing builds on warnings
I've been reading the book "Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Addison-Wesley Signature Series (Fowler))"
And these paragraphs ...