GithubHelp home page GithubHelp logo

Comments (4)

shankybnl avatar shankybnl commented on May 29, 2024 1

@zpaya - If you are running in the PowerShell then try running as below:

mvn test -Dos=android -"Dsurefire.suiteXmlFiles=testng.xml"

Other alternatives are mentioned in this thread : https://stackoverflow.com/questions/31166828/how-to-handle-dots-in-powershell-commands

from mobileautomationframework.

zpaya avatar zpaya commented on May 29, 2024 1

yes able to run with below command
mvn test -Dos=android -DtestSuite="testng.xml" -e

from mobileautomationframework.

shankybnl avatar shankybnl commented on May 29, 2024

Hi @bijaylaxmi11 ,

These errors won't do any issues when you execute tests. Please run the tests from the command line and let me know if you face any issues:

install all dependencies and compile the project:
$ mvn clean install

For android tests
$ mvn test -Dos=android -Dsurefire.suiteXmlFiles=testng.xml

For ios tests:
mvn test -Dos=iOS -Dsurefire.suiteXmlFiles=testng.xml

Best,
Shanky

from mobileautomationframework.

zpaya avatar zpaya commented on May 29, 2024

I am getting the below error for android tests. Can you please help me with this? @shankybnl

[ERROR] Unknown lifecycle phase ".suiteXmlFiles=testng.xml". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available life
cycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources
, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [
Help 1]

from mobileautomationframework.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.