-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Test amqp10 connection information in mangement ui
- Loading branch information
1 parent
3846e5e
commit d4d246d
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
TEST_CASES_PATH=/connections/amqp10 | ||
TEST_CONFIG_PATH=/basic-auth | ||
|
||
source $SCRIPT/../../bin/suite_template $@ | ||
run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { By, Key, until, Builder } = require('selenium-webdriver') | ||
require('chromedriver') | ||
const assert = require('assert') | ||
const { buildDriver, goToHome, captureScreensFor, teardown } = require('../../utils') | ||
|
||
const LoginPage = require('../../pageobjects/LoginPage') | ||
const OverviewPage = require('../../pageobjects/OverviewPage') | ||
const ConnectionsTab = require('../../pageobjects/ConnectionsTab') | ||
|
||
describe('Given an amqp10 connection is selected', function () { | ||
let homePage | ||
let captureScreen | ||
let connections | ||
|
||
before(async function () { | ||
driver = buildDriver() | ||
await goToHome(driver) | ||
login = new LoginPage(driver) | ||
overview = new OverviewPage(driver) | ||
connections = new ConnectionsTab(driver) | ||
captureScreen = captureScreensFor(driver, __filename) | ||
await login.login('management', 'guest') | ||
await overview.isLoaded() | ||
|
||
await overview.clickOnConnectionsTab() | ||
await connections.clickOnConnection() | ||
}) | ||
|
||
it('can list session information', async function () { | ||
// flow control state | ||
}) | ||
|
||
it('can list link information', async function () { | ||
// names | ||
// target and source information | ||
// unconfirmed messages | ||
// flow control | ||
}) | ||
|
||
after(async function () { | ||
await teardown(driver, this, captureScreen) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { By, Key, until, Builder } = require('selenium-webdriver') | ||
|
||
const BasePage = require('./BasePage') | ||
|
||
|
||
const PAGING_SECTION = By.css('div#connections-paging-section') | ||
const PAGING_SECTION_HEADER = By.css('div#connections-paging-section h2') | ||
|
||
const TABLE_SECTION = By.css('div#connections-table-section table') | ||
|
||
module.exports = class ConnectionsPage extends BasePage { | ||
async isLoaded () { | ||
return this.waitForDisplayed(PAGING_SECTION) | ||
} | ||
async getPagingSectionHeaderText() { | ||
return this.getText(PAGING_SECTION_HEADER) | ||
} | ||
async getConnectionsTable(firstNColumns) { | ||
return this.getTable(TABLE_SECTION, firstNColumns) | ||
} | ||
async clickOnConnection(index) { | ||
return this.click(By.css( | ||
"div#connections-table-section table tbody tr td a[href='#/exchanges/" + vhost + "/" + name + "']")) | ||
} | ||
} |