tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.
http://docs.testvagrant.com
66 stars 23 forks source link

Building is failing #3

Closed sampadrout closed 7 years ago

sampadrout commented 7 years ago

Hi, First of all thanks for developing such a beautiful framework for mobile automation. Its always a challenge to put all sorts of technologies to make a stable mobile test automation solution. out of curiosity, i was trying this today and getting the following error. It will be great if you can suggest me the fix for this. Thanks. Sampad. Here i am running this for android. gradle runFragmentation -DtestFeed=HelloOptimusAndroid -Dtags=@helloOptimus

Task :compileTestJava Note: /Users/sampadrout/AMA_New/src/test/java/pages/BasePage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.

Task :runFragmentation Executing MongoMain

Task :fragmentationReport MongoClient:1681325373

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 6m 24s 7 actionable tasks: 7 executed

sampadrout commented 7 years ago

Please ignore above comments. I have fixed the monogodb connection issues. Its working great. Thanks

KrishnB commented 7 years ago

@sampadrout looks like MongoDB has failed to start within the expected time.

Please follow below steps for a resolution.

Step 1: Open a new terminal and run mongod command.

Step 2: Check if it throws any error related to this exception in initAndListen: 29 Data directory /data/db not found., terminating.

Step 3: If you find error as mentioned in step2, please follow this link to resolve it https://github.com/testvagrant/optimusTemplate/wiki/FAQ#faq6

Step 4: Once resolved, run mongod command again in terminal. A mongo instance should be up and running on 27017 port.

Step 5: Run the task gradle runFragmentation -DtestFeed=HelloOptimusAndroid -Dtags=@helloOptimus