Skip to content

Instantly share code, notes, and snippets.

@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
void given()
@minisu
minisu / JavaGWT.java
Last active December 17, 2015 17:09
Java GWT
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test
@minisu
minisu / TableLogTest.feature
Last active December 17, 2015 17:09
Gherkin TableLogTest
Scenario: A new TableLog should not have any rows
Given an open project without any agents
And a Fixed Rate Generator is connected to a TableLog
Then the TableLog should not contain any rows
Scenario: A TableLog should get rows when getting input
Given an open project without any agents
And a Fixed Rate Generator is connected to a TableLog
When the test is run for 3 seconds
Then the TableLog should contain rows
@minisu
minisu / gist:5652141
Last active December 17, 2015 18:19
ScalaTest
class TableLogTest extends FunSpec with FxIntegrationTest {
startingState = ProjectLoadedWithoutAgentsState.STATE
"A TableLog" should "have no rows to begin with" in {
aFixedRateGenerator.connectedTo( aTableLog )
tableRows should be (empty)
}
@minisu
minisu / Java.java
Last active December 17, 2015 18:19
Java TableLogTest
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test
@minisu
minisu / ScalaSloppy.scala
Last active December 17, 2015 18:19
A non-standard way of implementing TableLogTest in Scala
class TableLogTest extends FunSpec with FxIntegrationTest {
startingState = ProjectLoadedWithoutAgentsState.STATE
"A TableLog" should "have no rows to begin with" in {
create a TableLog
tableRows should be (empty)
}
class TableLogTestScala extends FlatSpec with ShouldMatchers with ComponentControl {
"A TableLog" should "have no rows initially" in {
create aTableLog
tableRows should be (empty)
}
it should "display rows when getting input" in {
package com.eviware.loadui.ui.fx.util.test;
import com.eviware.loadui.util.test.TestUtils;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.stage.Window;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
@minisu
minisu / code.md
Last active December 31, 2015 05:39
Title3

Test runs are by default stored in directories in [user home]/.loadui/results. The directory name for a test run consists of the project name and the date of the test run, e.g. Project_1_2013-09-19_181414-802. To share a test run, simply copy this directory (along with the project file found in [user home]/.loadui).

Exception in thread "MainThread" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "__pyclasspath__/pythonCeleryWorker.py", line 7, in <module>
File "__pyclasspath__/celery/bin/__init__.py", line 3, in <module>
File "__pyclasspath__/celery/bin/base.py", line 82, in <module>
File "__pyclasspath__/celery/five.py", line 307, in __getattr__
File "__pyclasspath__/celery/app/__init__.py", line 14, in <module>
File "__pyclasspath__/celery/_state.py", line 20, in <module>
File "__pyclasspath__/celery/utils/__init__.py", line 24, in <module>
File "__pyclasspath__/celery/exceptions.py", line 13, in <module>