Fixed stress test db name generation
@@ -21,6 +21,7 @@ package com.orientechnologies.orient.test.database.auto;
import com.orientechnologies.orient.stresstest.OStressTester;
import com.orientechnologies.orient.stresstest.OStressTesterCommandLineParser;
+import org.junit.rules.TestName;
import org.testng.Assert;
import org.testng.annotations.Test;
@@ -34,7 +35,7 @@ public class StressTestWorkloadTest {
@Test
public void testCRUD() throws Exception {
final OStressTester stressTester = OStressTesterCommandLineParser
- .getStressTester(new String[] { "-m", "memory", "-c", "8", "-tx", "3", "-w", "crud:C10R10U10D10" });
+ .getStressTester(new String[] { "-m", "memory", "-db", "testCRUD", "-c", "8", "-tx", "3", "-w", "crud:C10R10U10D10" });
stressTester.execute();
}
@@ -42,28 +43,31 @@ public class StressTestWorkloadTest {
@Test
public void testGraphInsert() throws Exception {
final OStressTester stressTester = OStressTesterCommandLineParser
- .getStressTester(new String[] { "-m", "memory", "-c", "8", "-tx", "3", "-w", "GINSERT:V100F3" });
+ .getStressTester(new String[] { "-m", "memory", "-db", "testGraphInsert", "-c", "8", "-tx", "3", "-w", "GINSERT:V100F3" });
stressTester.execute();
}
@Test
public void testGraphInsertRandomStrategy() throws Exception {
- final OStressTester stressTester = OStressTesterCommandLineParser
- .getStressTester(new String[] { "-m", "memory", "-c", "8", "-tx", "3", "-w", "GINSERT:V100F3Srandom" });
+ final OStressTester stressTester = OStressTesterCommandLineParser.getStressTester(
+ new String[] { "-m", "memory", "-db", "testGraphInsertRandomStrategy", "-c", "8", "-tx", "3", "-w",
+ "GINSERT:V100F3Srandom" });
stressTester.execute();
}
@Test
public void testGraphInsertSuperNodeStrategy() throws Exception {
- final OStressTester stressTester = OStressTesterCommandLineParser
- .getStressTester(new String[] { "-m", "memory", "-c", "8", "-tx", "3", "-w", "GINSERT:V100F3Ssupernode" });
+ final OStressTester stressTester = OStressTesterCommandLineParser.getStressTester(
+ new String[] { "-m", "memory", "-db", "testGraphInsertSuperNodeStrategy", "-c", "8", "-tx", "3", "-w",
+ "GINSERT:V100F3Ssupernode" });
stressTester.execute();
}
@Test
public void testGraphShortestPath() throws Exception {
final OStressTester stressTester = OStressTesterCommandLineParser.getStressTester(
- new String[] { "-m", "memory", "-c", "8", "-tx", "3", "-lb", "ROUND_ROBIN_CONNECT", "-w", "GINSERT:V100F3,GSP:L3" });
+ new String[] { "-m", "memory", "-db", "testGraphShortestPath", "-c", "8", "-tx", "3", "-lb", "ROUND_ROBIN_CONNECT", "-w",
+ "GINSERT:V100F3,GSP:L3" });
stressTester.execute();
}
}
