Questions tagged [maven]

Maven is an open source build management tool that is part of the Apache project - https://maven.apache.org/.

Filter by
Sorted by
Tagged with
1
vote
3answers
57 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
2answers
99 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
0answers
15 views

PackageRelationshipCollection issue in selenium

Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log(ILjava/lang/Object;)V from class org.apache.poi.openxml4j.opc....
0
votes
1answer
43 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
1answer
22 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 ...
0
votes
0answers
93 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" ...
1
vote
1answer
453 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....
0
votes
0answers
38 views

Using the JUnitFlakyTestDataPublisher throws an AbstractMethodError “you must override contributeTestData”

Not sure if it's allowed to duplicate stackoverflow questions. I thought I might have a better audience here... I try to use the rerunFailingTestsCount option to deal with flaky tests. In order to ...
1
vote
1answer
2k 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....
0
votes
0answers
46 views

How to pass parameters from groovy script in pom.xml to .properties file?

I have this groovy plugin to replace my project.basedir with \\ to /. This work fine in my console. <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>...
1
vote
2answers
799 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
1answer
47 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
1answer
39 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
1answer
485 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
1answer
5k 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, ...
0
votes
2answers
797 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
2answers
4k 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
2answers
2k 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
2answers
531 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
1answer
2k 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 ...
0
votes
1answer
9k 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
1answer
45 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
4answers
4k 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 ...
1
vote
2answers
8k 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
2answers
386 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 ...
1
vote
1answer
3k 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
0answers
399 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 ...
4
votes
1answer
2k 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
1answer
996 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 drew my ...
1
vote
0answers
432 views

How to extend Selenium2Library by creating new RobotFramework keywords using Selenium WebDriver in Java?

I'm trying to extend the Selenium2Library python library (1.8.0) by implementing new Robot Framework keywords using Selenium WebDriver in Java. In order to do that, I need to be able to retrieve the ...
1
vote
2answers
7k views

Allure reports do not generate results when calling mvn test with arguments

If i run inside eclipse -> Run As -> Maven test, I have an allure-results directory created no problem in /target - Great! If I call mvn from the command line and pass in some arguments.... I have no ...
1
vote
1answer
141 views

Junit Setup & Teardown when using parallel cucumberJVM with auto generated test runner files

Scenario: I am using a cucumberJVM setup using a parallel cucumberJVM plugin which creates separate runner files for every feature file. I want to handle my setup & teardown independently, since ...
1
vote
2answers
2k views

Use enviornment variables in selenium properties file

I have a test package which is based on Selenium and the configuration is in a test.properties file. Now all the config values are hard coded there. I would like to hide some config values to hide ...
2
votes
2answers
69 views

Possibility of using maven surfire plugin for SOAP webservice tests

I have a challenge of using maven surfire plugin for SOAP webservices testing. What I need to check is whether this plugin can be used while running webservices tests in CI environment. I will ...
1
vote
0answers
70 views

Robot framework: how to point to libraries folder other than default?

I've set up a Maven project that uses Selenium (as a dependency) and would like to add Robot. The thing is, according to http://robotframework.org/MavenPlugin/: Third party libraries (e.g. Selenium ...
1
vote
0answers
348 views

Couldn't able to run the testng script in Maven using cucumber

Below is the TestRunner class: import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import cucumber.api.testng.AbstractTestNGCucumberTests; //@...
0
votes
2answers
1k views

java.sql.SQLException: No suitable driver found for jdbc:db2://URL/Database - pom.xml

In my Soapui project I am connecting Db2 for validation Groovy step. This seems to be working. When I run pop.xml with required dependency, its giving the following error: java.sql.SQLException: No ...
0
votes
1answer
1k views

Run unix commands using Jsch maven

Execute Unix commands using Jsch maven I'm trying use this code for performing the following steps, but it's not working. String command1 = "ls -ltr" String command2 = "cd /test/user/" String ...
0
votes
2answers
3k views

Execute SoapUI project with Maven and Jenkins

I am new to Maven and Jenkins. I have automated my web service project with SoapUI (the free version). I need to include my project with DEV builds for continuous integration build. I searched in ...
2
votes
1answer
1k views

Cucumber: Type Mismatch cannot covert from Class <Step Definition> to Class<?extends Runner> in eclipse

I have been playing around with Selenium Cucumber and came across this error message: Type mismatch: Cannot convert from Class StepDefinition to Class?extends Runner and here is my code: package ...
0
votes
2answers
1k views

Not able to install maven on windows [closed]

Getting error while trying to install maven on windows. What I have tried is, I have set the Environment variables as follows: System variable:: MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3....
2
votes
2answers
162 views

CI for Selenium Project

I am not fully sure how to fully build Continuous Integration for Selenium project, so I would like to ask the following: Is it true that the only difference between a Maven project and a Java ...
0
votes
2answers
546 views

Windows task scheduler is invoking headless firefox driver instead of normal friefox driver

My below present simple batch file, on double clicking triggers the simple execution of my maven testng selenium webdriver script with NO issues cd C:\Users\xxxxxxx\Documents\SelTestsWorkspace\...
1
vote
0answers
925 views

Specifying and running multiple goals in Maven

I have created a testing framework using Cucumber, Selenium and Maven. I am using the cucumber-jvm-parallel plugin to run my tests in parallel. Below is how my pom.xml looks: <?xml version="1.0" ...
2
votes
1answer
889 views

Version Control for Selenium Itself

My question is about best practice. We are moving to Selenium and will be using Selenium, Maven, TestNG and GitHub, with a Windows environment. We will have about ten users, with more in the future. ...
1
vote
3answers
3k views

ExpectedConditions cannot be resolved to a variable

I am waiting for WebElement is clickable using below code: WebDriverWait wait = new WebDriverWait(driver,9); WebElement element = wait.until(ExpectedConditions.visibilityOf(CancelListingButton)); ...
1
vote
3answers
2k views

Cucumber and Maven setup

I am trying to integrate my Cucumber project and Maven, while adding cucumber-junit dependency in POM, I'm getting the below error : Failed to read artifact descriptor for info.cukes:cucumber-...
0
votes
2answers
512 views

Plugin of Maven - Automated test

I need to run automated test on Bamboo (Atlassian) but I don't know what plugin of maven use. The automated test are written in Selenium and Java.
5
votes
1answer
4k views

Error in Maven project build-“Could not initialize class org.apache.maven.index.ArtifactInfo”

Hi All when I am trying to build or clean the Maven project I got below error can any help me ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'POM-...