Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement functional testing Framework #173

Open
eholum opened this issue Oct 29, 2015 · 0 comments
Open

Implement functional testing Framework #173

eholum opened this issue Oct 29, 2015 · 0 comments

Comments

@eholum
Copy link
Member

eholum commented Oct 29, 2015

Hopefully on top of 167...

This is for GUI tests relative the actual Iris application. Includes fixing this:

Hi all,

Though I doubt we'd expect to run the integration tests with a SAMP hub already running, I figure I'd post this info anyhow.

BuilderMainViewIT fails when a SAMP hub is already running before the test is run.

$ mvn -U verify

.....

Running cfa.vo.gui.BuilderMainViewIT
Launching GUI...
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 62.592 sec <<< FAILURE! - in cfa.vo.gui.BuilderMainViewIT
testNewSegment(cfa.vo.gui.BuilderMainViewIT) Time elapsed: 62.588 sec <<< FAILURE!
java.lang.AssertionError: No window was shown (timeout expired)
at org.junit.Assert.fail(Assert.java:93)
at org.uispec4j.assertion.testlibrairies.JUnitLibrary.fail(JUnitLibrary.java:7)
at org.uispec4j.assertion.testlibrairies.AssertAdapter.fail(AssertAdapter.java:11)
at org.uispec4j.interception.handlers.ShownInterceptionDetectionHandler.waitWindow(ShownInterceptionDetectionHandler.java:39)
at org.uispec4j.interception.WindowInterceptor.run(WindowInterceptor.java:324)
at org.uispec4j.interception.WindowInterceptor.run(WindowInterceptor.java:290)
at cfa.vo.iris.test.SampUISpecAdapter.getMainWindow(SampUISpecAdapter.java:36)
at org.uispec4j.UISpecTestCase.getMainWindow(UISpecTestCase.java:84)
at cfa.vo.gui.BuilderMainViewIT.setUp(BuilderMainViewIT.java:48)

The source code around BuilderMainViewIT.java:48:

public void setUp() throws Exception {
    super.setUp();
    setAdapter(new SampUISpecAdapter(Iris.class));
    mainWindow = getMainWindow();                     // <--  fails here
    desktop = mainWindow.getDesktop();

Is this expected? I'll look into this, but I figure I'd ask if there's a quick answer first. Or if it's worth looking into :)

Iris is supposed to automatically connect to a SAMP hub if one is already running. Though I don't think it matters if this isn't expected too much, since the user would never run this test.

At least we'll know why this test might fail if we run the ITs locally.

Thanks,
Jamie

@eholum eholum modified the milestone: Sprint 12/03/15 Nov 13, 2015
@eholum eholum self-assigned this Nov 25, 2015
@eholum eholum changed the title Implement Integration testing Framework Implement functional testing Framework Dec 7, 2015
@eholum eholum removed the 2 - Working label Dec 7, 2015
@eholum eholum removed this from the Sprint 12/03/15 milestone Dec 7, 2015
@eholum eholum removed their assignment Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant