-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE-666 Add steps how to run e2e test for GUI to README
Added README.md under client/test directory Relocated some files related to e2e test Change-Id: I48652606e900bcf3efd99b5f27be41e2ee3cc3e4 Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com>
- Loading branch information
Showing
7 changed files
with
95 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -351,6 +351,7 @@ | |
"timeago", | ||
"timeline", | ||
"tls", | ||
"tooltip", | ||
"txcount", | ||
"txid", | ||
"txhash", | ||
|
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,65 @@ | ||
|
||
<!-- (SPDX-License-Identifier: CC-BY-4.0) --> <!-- Ensure there is a newline before, and after, this line --> | ||
|
||
# How to run e2e test | ||
|
||
## Pull fabric images and tools | ||
|
||
``` | ||
$ cd /some/where/blockchain-explorer | ||
$ npm run e2e-test-setup-tool:ci | ||
``` | ||
|
||
## Build Explorer / Explorer-DB image | ||
|
||
``` | ||
$ cd /some/where/blockchain-explorer | ||
$ npm run e2e-test-setup-img | ||
``` | ||
|
||
## Setup environment | ||
|
||
Bring up the fabric network and start Explorer service on it | ||
|
||
``` | ||
$ cd /some/where/blockchain-explorer | ||
$ npm run e2e-gui-test-setup | ||
``` | ||
|
||
## Run test scenarios | ||
|
||
``` | ||
# cd /some/where/blockchain-explorer | ||
$ npm run e2e-gui-test-setup-env | ||
$ npm run e2e-gui-test-run | ||
``` | ||
|
||
# Tips | ||
|
||
# Project Structure | ||
|
||
Scenario files are intended to locate in `/client/test/specs` folder. | ||
Overall project structure is as follows: | ||
|
||
``` | ||
client/test/ | ||
+-- docker-compose.yaml // Definition for Selenium Hub/Browser container service | ||
+-- e2e-setup.sh // Bring up fabric network and explorer | ||
+-- wdio.conf.js // webdriverIO configuration | ||
+-- specs/ // Test scenarios | ||
+-- dashboard.js // dashboard rendering scenarios | ||
+-- ... | ||
``` | ||
|
||
Mainly we'll update `client/test/specs/*.js` to cover more scenarios. | ||
|
||
# Link | ||
|
||
* https://webdriver.io/docs/api.html | ||
* https://github.com/SeleniumHQ/docker-selenium |
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