-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1458 from SCADA-LTS/feature/#1447_logging_type_se…
…ttings Feature/#1447 logging type settings
- Loading branch information
Showing
16 changed files
with
495 additions
and
93 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
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,46 @@ | ||
export function createVirtualDataSource(name) { | ||
cy.visit('data_sources.shtm'); | ||
cy.get("#dataSourceTypes").select('Virtual Data Source').should('have.value', '1'); | ||
cy.get('img.ptr[src="images/icon_ds_add.png"]').first().click(); | ||
cy.get('.smallTitle').should('contain', 'Virtual data source properties') | ||
cy.get('#dataSourceName').type(name) | ||
cy.get('#updatePeriods').type("{backspace}1").should('have.value', '1'); | ||
cy.get('img.ptr[src="images/save.png"]').first().click(); | ||
cy.get('#dataSourceMessage').should('contain', 'Data source has been saved') | ||
// cy.debug('DataSource created!') | ||
} | ||
|
||
/** | ||
* | ||
* @param {*} name DataPoint name | ||
* @param {*} type [Multistate = 2| Numeric = 3] | ||
*/ | ||
export function addVirtualDataPoint(name, type) { | ||
cy.get('img.ptr[src="images/icon_comp_add.png"]').click(); | ||
cy.get('input#name').type(name) | ||
cy.get('input#settable').click() | ||
cy.get('select#dataTypeId').select(type) | ||
if (type === 'Numeric') { | ||
cy.wait(500) | ||
cy.get('select#changeTypeId').select('Random') | ||
cy.get('#divCH6').children().first().next().find('input').type("{backspace}20") | ||
cy.get('#divCH6').children().first().next().next().find('input').type("2") | ||
} else if (type === 'Multistate') { | ||
cy.get('select#changeTypeId').select('8') | ||
cy.get('input#randomMultistate').type("1") | ||
for (let x = 1; x <= 5; x = x + 1) { | ||
cy.get('img.ptr[src="images/add.png"]').click() | ||
} | ||
cy.get('select#randomMultistateChange.startValue').select('1') | ||
} | ||
cy.get('img.ptr#pointSaveImg').click() | ||
cy.get('#pointMessage').should('contain', 'Point details saved') | ||
// cy.debug(`DataPoint ${name} created!`) | ||
} | ||
|
||
export function login(username, password) { | ||
cy.visit('/login.htm') | ||
cy.get('input#username').type(username) | ||
cy.get('input#password').type(password) | ||
cy.get('.login-button > input').click() | ||
} |
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,19 @@ | ||
# Scada-LTS User Interface | ||
## Vue.js subproject for Views and Components | ||
|
||
## Description | ||
|
||
User Interface subproject to display ScadaLTS content. | ||
|
||
## Usage | ||
|
||
- To start a developmnent server type inside this directory: `npm run-script serve` | ||
- To run unit test type: `npm run-script test:unit` | ||
- To run E2E cypress tests type: `npm run-script test:e2e` | ||
- To run Cypress testing framework type: `npm run-script cypress` | ||
|
||
## Creators | ||
Developers from Scada-LTS project: | ||
- @grzesiekb | ||
- @radek2s | ||
|
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
Oops, something went wrong.