Skip to content

Commit 3169057

Browse files
committed
Merge remote-tracking branch 'origin/newRegressionTests' into dev
2 parents a8f8a90 + b21973d commit 3169057

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

test-complete/myHelp.txt

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
Step 1:
2-
Build dev source code by doing the following on your dev branch
1+
Step 1: Build dev source code by doing the following on your dev branch
2+
~/java-client-api$
3+
mvn clean
4+
mvn compile
5+
mvn �Dmaven.test.skip=true install
36

4-
Mvn clean
5-
Mvn �Dmaven.test.skip=true install
7+
you can avoid the above steps by updating build.gradle to use appropriate client dependencies from maven central.
68

7-
Step2:
8-
Go to the directory where you ../test-complete/
9+
Step2: Go to the test complete directory
910

10-
Gradlew clean
11+
~/java-client-api/test-complete$
12+
gradlew clean
13+
gradlew test => to run all the functional tests, which will take about couple of hours
14+
gradlew -Dtest.single=TestBulkWriteMetadata1 test => to run individual tests
1115

12-
Gradlew test => to run all the functional tests, which will take about couple of hours
16+
Step3: Each test is independent and you can find the results under
17+
~/java-client-api/test-complete/build/test-results
1318

14-
gradlew -Dtest.single=TestBulkWriteMetadata1 test => to run individual tests
15-
16-
each test is independent and you can find the results under Java-client-api-qa\build\test-results
17-
18-
and if you run all the functional tests then you can find a report under Java-client-api-qa\build\reports\tests\index.html
19+
and if you run all the functional tests then you can find a report under
20+
~/java-client-api/test-complete/build/reports/tests/index.html

test-complete/src/test/java/com/marklogic/client/functionaltest/ConnectedRESTQA.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public static void setupJavaRESTServer(String dbName, String fName, String restS
338338
Date d = cal.getTime();
339339
long beforeSetup =cal.getTimeInMillis();
340340
long before =cal.getTimeInMillis();
341-
logger.info("### Starting TESTCASE SETUP. ### "+d);
341+
logger.info("### Starting TESTCASE SETUP."+ dbName+"### "+d);
342342

343343
createDB(dbName);
344344
logTestMessages("CREATE-DB",before);
@@ -360,8 +360,8 @@ public static void setupJavaRESTServer(String dbName, String fName, String restS
360360
long after =cal.getTimeInMillis();
361361
long diff = after - beforeSetup;
362362

363-
String msg = "### Ending TESTCASE SETUP ###: "+diff/1000+" seconds";
364-
logger.info(msg);
363+
// String msg = "### Ending TESTCASE SETUP ###: "+diff/1000+" seconds";
364+
// logger.info(msg);
365365

366366
}
367367
public static void setupJavaRESTServer(String dbName, String fName, String restServerName, int restPort,boolean attachRestContextDB)throws Exception{
@@ -820,11 +820,11 @@ else if(response.getStatusLine().getStatusCode() == 200){
820820

821821
public static void logTestMessages(String txt, long before)
822822
{
823-
Calendar cal = Calendar.getInstance();
824-
long after =cal.getTimeInMillis();
825-
long diff = after - before;
826-
String msg = "### "+txt+" ### "+diff/1000+" seconds";
827-
logger.info(msg);
823+
// Calendar cal = Calendar.getInstance();
824+
// long after =cal.getTimeInMillis();
825+
// long diff = after - before;
826+
// String msg = "### "+txt+" ### "+diff/1000+" seconds";
827+
// logger.info(msg);
828828
}
829829
/*
830830
* This function move rest server first to documents and deletes forests and databases in separate calls
@@ -833,7 +833,7 @@ public static void tearDownJavaRESTServer(String dbName, String [] fNames, Strin
833833
Calendar cal = Calendar.getInstance();
834834
Date d = cal.getTime();
835835
long beforeTeardown =cal.getTimeInMillis();
836-
logger.info("### StartingTestCase TEARDOWN ### "+d);
836+
logger.info("### StartingTestCase TEARDOWN "+dbName+" ### "+d);
837837

838838
long before =cal.getTimeInMillis();
839839
try{

0 commit comments

Comments
 (0)