Skip to content
Snippets Groups Projects
Commit 06a4cc05 authored by Matthias's avatar Matthias
Browse files

added TestCases in testproject

parent 502e4527
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 64 deletions
SELECT srv1.ResponseTime.DEFAULT
FOR SERVICE 'org.mybatis.jpetstore.web.actions.CatalogActionBean.getItem()' AS srv1
USING kieker@'D:\\Master\\GR\\workspace\\kieker4dql\\tools.descartes.dql.connector.kieker.examples\\JPetStore\\JPetStore.properties';
\ No newline at end of file
USING kieker@'D:\\Master\\GR\\workspace\\kieker4dql\\tools.descartes.dql.connector.kieker.examples\\JPetStore\\traceFiles';
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="src" path="fixtures/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
LIST ENTITIES
USING kieker@'dql.properties';
\ No newline at end of file
LIST ENTITIES
USING kieker@'/tools.descartes.dql.connector.kieker.tests/fixtures/Queries/kiekerDql.properties';
\ No newline at end of file
kieker.maxRunTimeInSeconds=60
kieker.monitoring.default.properties=META-INF\\kieker.monitoring.default.properties
kieker.kiekerJarFile=kieker-1.12-aspectj.jar
kieker.kiekerLocation=D:\\Master\\GR\\kieker-1.13-SNAPSHOT
kieker.applicationJarFile=test2.jar
kieker.log.directory=log\\test
\ No newline at end of file
LIST ENTITIES
USING kieker@'kiekerDql.properties';
\ No newline at end of file
SELECT res1.utilization.SAMPLE
FOR RESOURCE 'CPU_5' AS res1
USING kieker@'..\\..\\kiekerDqlTest.properties';
\ No newline at end of file
package tools.descartes.dql.connector.kieker.tests.list;
package tools.descartes.dql.connector.kieker.tests;
import static org.junit.Assert.assertEquals;
......@@ -8,20 +8,20 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import tools.descartes.dql.connector.kieker.tests.AbstractListQueryTest;
import tools.descartes.dql.connector.kieker.tests.util.AbstractListQueryTest;
import tools.descartes.dql.lang.DescartesQLInjectorProvider;
import tools.descartes.dql.lang.descartesQL.ListQuery;
@RunWith(XtextRunner.class)
@InjectWith(DescartesQLInjectorProvider.class)
public class ListEntitiesQuery extends AbstractListQueryTest {
public static final String MODEL_LOCATION = "kieker@/tools.descartes.dql.connector.kieker.tests/fixtures/Queries/kiekerDql.properties";
public class ConnectorTest extends AbstractListQueryTest {
public static final String MODEL_LOCATION = "queries/test.properties";
public static final String MODE = "ENTITIES";
@Override
@Before
public void initializeTest() throws Exception {
super.initialize(createFileName("fixtures/Queries", this.getClass().getSimpleName()));
super.initialize(createFileName("queries", this.getClass().getSimpleName()));
}
@Override
......
......@@ -29,7 +29,7 @@ public class KiekerManagerTest {
EntityMapping request = MappingFactory.eINSTANCE.createEntityMapping();
String pathToConfig = "dql.properties";
String pathToConfig = "testFiles";
......
/**
* ==============================================
* DQL Adapter for SimQPN
* ==============================================
*
* (c) Copyright 2014-2016, by Simon Eismann, Juergen Walter and other contributors.
*
* All rights reserved. This software is made available under the terms of the
* Eclipse Public License (EPL) v1.0 as published by the Eclipse Foundation
* http://www.eclipse.org/legal/epl-v10.html
*
* This software is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse Public License (EPL)
* for more details.
*
* You should have received a copy of the Eclipse Public License (EPL)
* along with this software; if not visit http://www.eclipse.org or write to
* Eclipse Foundation, Inc., 308 SW First Avenue, Suite 110, Portland, 97204 USA
* Email: license (at) eclipse.org
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*/
package tools.descartes.dql.connector.kieker.tests;
import org.junit.Test;
public class PerformanceMetricsQueryConnectorImplTest {
@Test
public void dummyTest() {
}
}
package tools.descartes.dql.connector.kieker.tests;
package tools.descartes.dql.connector.kieker.tests.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
......
package tools.descartes.dql.connector.kieker.tests;
package tools.descartes.dql.connector.kieker.tests.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
......
package tools.descartes.dql.connector.kieker.tests;
package tools.descartes.dql.connector.kieker.tests.util;
import org.eclipse.xtext.junit4.InjectWith;
import org.eclipse.xtext.junit4.XtextRunner;
......
package tools.descartes.dql.connector.kieker.tests;
package tools.descartes.dql.connector.kieker.tests.util;
import java.io.File;
......
......@@ -109,7 +109,7 @@ public class KiekerManager {
} else {
log("TraceFiles possibly found under "+modelLocation);
this.traceFileOutputPath = modelLocation;
this.traceFileHostName = KiekerHelper.getHostName();
this.traceFileHostName = "";
log("Try Analysis...");
startAnalysis();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment