Skip to content

Instantly share code, notes, and snippets.

@Test
public void shouldSendRequests() throws Exception
{
Multiset<String> expectedRequests = ImmutableMultiset.of(
"GET http://www.example.org/image1.png",
"GET http://www.example.org/style.css"
);
// WHEN
triggerAndWait();
Media:
* script: <http://www.loadui.org/media/system/js/mootools.js>
* script: <http://www.loadui.org/media/system/js/caption.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shCore.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushGroovy.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushJava.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushPlain.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushSql.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushXml.js>
* script: <http://www.loadui.org/modules/mod_rokajaxsearch/js/rokajaxsearch.js>
@minisu
minisu / gist:9208783
Created February 25, 2014 13:34
Jsoup extracting all links from loadui.org home page.
Fetching http://www.loadui.org...
Media: (82)
* script: <http://www.loadui.org/media/system/js/mootools.js>
* script: <http://www.loadui.org/media/system/js/caption.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shCore.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushGroovy.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushJava.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushPlain.js>
* script: <http://www.loadui.org/plugins/content/syntaxhighlighter/scripts/shBrushSql.js>
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>
@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).

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;
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 {
@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)
}
@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 / 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)
}