hotstaq 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +17 -0
- package/.eslintrc.js +11 -0
- package/.vscode/launch.json +199 -0
- package/.vscode/settings.json +2 -0
- package/.vscode/tasks.json +78 -0
- package/CONTRIBUTING.md +157 -0
- package/README.md +126 -0
- package/bin/hotstaq +3 -0
- package/bin/hotstaq.cmd +1 -0
- package/build/src/Hot.d.ts +167 -0
- package/build/src/Hot.d.ts.map +1 -0
- package/build/src/Hot.js +365 -0
- package/build/src/Hot.js.map +1 -0
- package/build/src/HotAPI.d.ts +130 -0
- package/build/src/HotAPI.d.ts.map +1 -0
- package/build/src/HotAPI.js +353 -0
- package/build/src/HotAPI.js.map +1 -0
- package/build/src/HotAgentAPI.d.ts +22 -0
- package/build/src/HotAgentAPI.d.ts.map +1 -0
- package/build/src/HotAgentAPI.js +85 -0
- package/build/src/HotAgentAPI.js.map +1 -0
- package/build/src/HotAgentRoute.d.ts +17 -0
- package/build/src/HotAgentRoute.d.ts.map +1 -0
- package/build/src/HotAgentRoute.js +109 -0
- package/build/src/HotAgentRoute.js.map +1 -0
- package/build/src/HotBuilder.d.ts +52 -0
- package/build/src/HotBuilder.d.ts.map +1 -0
- package/build/src/HotBuilder.js +239 -0
- package/build/src/HotBuilder.js.map +1 -0
- package/build/src/HotClient.d.ts +31 -0
- package/build/src/HotClient.d.ts.map +1 -0
- package/build/src/HotClient.js +19 -0
- package/build/src/HotClient.js.map +1 -0
- package/build/src/HotComponent.d.ts +118 -0
- package/build/src/HotComponent.d.ts.map +1 -0
- package/build/src/HotComponent.js +89 -0
- package/build/src/HotComponent.js.map +1 -0
- package/build/src/HotCreator.d.ts +92 -0
- package/build/src/HotCreator.d.ts.map +1 -0
- package/build/src/HotCreator.js +465 -0
- package/build/src/HotCreator.js.map +1 -0
- package/build/src/HotDB.d.ts +69 -0
- package/build/src/HotDB.d.ts.map +1 -0
- package/build/src/HotDB.js +29 -0
- package/build/src/HotDB.js.map +1 -0
- package/build/src/HotDBConnectionInterface.d.ts +40 -0
- package/build/src/HotDBConnectionInterface.d.ts.map +1 -0
- package/build/src/HotDBConnectionInterface.js +3 -0
- package/build/src/HotDBConnectionInterface.js.map +1 -0
- package/build/src/HotFile.d.ts +134 -0
- package/build/src/HotFile.d.ts.map +1 -0
- package/build/src/HotFile.js +454 -0
- package/build/src/HotFile.js.map +1 -0
- package/build/src/HotHTTPServer.d.ts +162 -0
- package/build/src/HotHTTPServer.d.ts.map +1 -0
- package/build/src/HotHTTPServer.js +863 -0
- package/build/src/HotHTTPServer.js.map +1 -0
- package/build/src/HotIO.d.ts +39 -0
- package/build/src/HotIO.d.ts.map +1 -0
- package/build/src/HotIO.js +195 -0
- package/build/src/HotIO.js.map +1 -0
- package/build/src/HotLog.d.ts +60 -0
- package/build/src/HotLog.d.ts.map +1 -0
- package/build/src/HotLog.js +126 -0
- package/build/src/HotLog.js.map +1 -0
- package/build/src/HotPage.d.ts +125 -0
- package/build/src/HotPage.d.ts.map +1 -0
- package/build/src/HotPage.js +178 -0
- package/build/src/HotPage.js.map +1 -0
- package/build/src/HotRoute.d.ts +82 -0
- package/build/src/HotRoute.d.ts.map +1 -0
- package/build/src/HotRoute.js +83 -0
- package/build/src/HotRoute.js.map +1 -0
- package/build/src/HotRouteMethod.d.ts +129 -0
- package/build/src/HotRouteMethod.d.ts.map +1 -0
- package/build/src/HotRouteMethod.js +84 -0
- package/build/src/HotRouteMethod.js.map +1 -0
- package/build/src/HotServer.d.ts +152 -0
- package/build/src/HotServer.d.ts.map +1 -0
- package/build/src/HotServer.js +109 -0
- package/build/src/HotServer.js.map +1 -0
- package/build/src/HotSetAsWeb.d.ts +2 -0
- package/build/src/HotSetAsWeb.d.ts.map +1 -0
- package/build/src/HotSetAsWeb.js +5 -0
- package/build/src/HotSetAsWeb.js.map +1 -0
- package/build/src/HotStaq.d.ts +601 -0
- package/build/src/HotStaq.d.ts.map +1 -0
- package/build/src/HotStaq.js +1258 -0
- package/build/src/HotStaq.js.map +1 -0
- package/build/src/HotStaqWeb.d.ts +18 -0
- package/build/src/HotStaqWeb.d.ts.map +1 -0
- package/build/src/HotStaqWeb.js +44 -0
- package/build/src/HotStaqWeb.js.map +1 -0
- package/build/src/HotTestDriver.d.ts +63 -0
- package/build/src/HotTestDriver.d.ts.map +1 -0
- package/build/src/HotTestDriver.js +187 -0
- package/build/src/HotTestDriver.js.map +1 -0
- package/build/src/HotTestElement.d.ts +71 -0
- package/build/src/HotTestElement.d.ts.map +1 -0
- package/build/src/HotTestElement.js +37 -0
- package/build/src/HotTestElement.js.map +1 -0
- package/build/src/HotTestMap.d.ts +83 -0
- package/build/src/HotTestMap.d.ts.map +1 -0
- package/build/src/HotTestMap.js +58 -0
- package/build/src/HotTestMap.js.map +1 -0
- package/build/src/HotTestSeleniumDriver.d.ts +82 -0
- package/build/src/HotTestSeleniumDriver.d.ts.map +1 -0
- package/build/src/HotTestSeleniumDriver.js +398 -0
- package/build/src/HotTestSeleniumDriver.js.map +1 -0
- package/build/src/HotTester.d.ts +188 -0
- package/build/src/HotTester.d.ts.map +1 -0
- package/build/src/HotTester.js +623 -0
- package/build/src/HotTester.js.map +1 -0
- package/build/src/HotTesterAPI.d.ts +15 -0
- package/build/src/HotTesterAPI.d.ts.map +1 -0
- package/build/src/HotTesterAPI.js +161 -0
- package/build/src/HotTesterAPI.js.map +1 -0
- package/build/src/HotTesterMocha.d.ts +50 -0
- package/build/src/HotTesterMocha.d.ts.map +1 -0
- package/build/src/HotTesterMocha.js +205 -0
- package/build/src/HotTesterMocha.js.map +1 -0
- package/build/src/HotTesterMochaSelenium.d.ts +70 -0
- package/build/src/HotTesterMochaSelenium.d.ts.map +1 -0
- package/build/src/HotTesterMochaSelenium.js +257 -0
- package/build/src/HotTesterMochaSelenium.js.map +1 -0
- package/build/src/HotTesterServer.d.ts +114 -0
- package/build/src/HotTesterServer.d.ts.map +1 -0
- package/build/src/HotTesterServer.js +575 -0
- package/build/src/HotTesterServer.js.map +1 -0
- package/build/src/api.d.ts +33 -0
- package/build/src/api.d.ts.map +1 -0
- package/build/src/api.js +78 -0
- package/build/src/api.js.map +1 -0
- package/build/src/cli.d.ts +2 -0
- package/build/src/cli.d.ts.map +1 -0
- package/build/src/cli.js +935 -0
- package/build/src/cli.js.map +1 -0
- package/build/src/schemas/HotDBInflux.d.ts +63 -0
- package/build/src/schemas/HotDBInflux.d.ts.map +1 -0
- package/build/src/schemas/HotDBInflux.js +239 -0
- package/build/src/schemas/HotDBInflux.js.map +1 -0
- package/build/src/schemas/HotDBMigration.d.ts +19 -0
- package/build/src/schemas/HotDBMigration.d.ts.map +1 -0
- package/build/src/schemas/HotDBMigration.js +15 -0
- package/build/src/schemas/HotDBMigration.js.map +1 -0
- package/build/src/schemas/HotDBMySQL.d.ts +65 -0
- package/build/src/schemas/HotDBMySQL.d.ts.map +1 -0
- package/build/src/schemas/HotDBMySQL.js +387 -0
- package/build/src/schemas/HotDBMySQL.js.map +1 -0
- package/build/src/schemas/HotDBSchema.d.ts +15 -0
- package/build/src/schemas/HotDBSchema.d.ts.map +1 -0
- package/build/src/schemas/HotDBSchema.js +19 -0
- package/build/src/schemas/HotDBSchema.js.map +1 -0
- package/build/src/schemas/influx/InfluxSchema.d.ts +14 -0
- package/build/src/schemas/influx/InfluxSchema.d.ts.map +1 -0
- package/build/src/schemas/influx/InfluxSchema.js +33 -0
- package/build/src/schemas/influx/InfluxSchema.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchema.d.ts +39 -0
- package/build/src/schemas/mysql/MySQLSchema.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchema.js +151 -0
- package/build/src/schemas/mysql/MySQLSchema.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaField.d.ts +168 -0
- package/build/src/schemas/mysql/MySQLSchemaField.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaField.js +260 -0
- package/build/src/schemas/mysql/MySQLSchemaField.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.d.ts +49 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.js +310 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.js.map +1 -0
- package/build-web/HotStaq.js +2 -0
- package/build-web/HotStaq.min.js +125 -0
- package/builder/docker/Dockerfile.linux.gen +42 -0
- package/builder/docker/README.md +36 -0
- package/builder/docker/app/start.sh +8 -0
- package/builder/docker/dockerignore +3 -0
- package/builder/docker/scripts/build.bat +11 -0
- package/builder/docker/scripts/build.sh +11 -0
- package/builder/docker/scripts/start-app.bat +7 -0
- package/builder/docker/scripts/start-app.sh +7 -0
- package/builder/docker/scripts/stop-app.bat +5 -0
- package/builder/docker/scripts/stop-app.sh +5 -0
- package/builder/docker-compose/docker-compose.gen.yaml +41 -0
- package/builder/docker-compose/env-skeleton +4 -0
- package/creator/project/.vscode/launch.json +59 -0
- package/creator/project/README.md +20 -0
- package/creator/project/gitignore +118 -0
- package/creator/project/npmignore +118 -0
- package/creator/public/api-test.hott +28 -0
- package/creator/public/index.hott +12 -0
- package/creator/ts/src/AppAPI.ts +30 -0
- package/creator/ts/src/HelloWorld.ts +39 -0
- package/creator/ts/src/WebExport.ts +7 -0
- package/creator/ts/tsconfig-web.json +73 -0
- package/creator/ts/tsconfig.json +73 -0
- package/creator/ts/webpack-api.config.js +57 -0
- package/dbstart.sh +19 -0
- package/dbstop.sh +4 -0
- package/docs/.nojekyll +1 -0
- package/docs/README.md +128 -0
- package/docs/classes/Hot.md +477 -0
- package/docs/classes/HotAPI.md +369 -0
- package/docs/classes/HotClient.md +95 -0
- package/docs/classes/HotComponent.md +279 -0
- package/docs/classes/HotDB.md +247 -0
- package/docs/classes/HotDBInflux.md +404 -0
- package/docs/classes/HotDBMigration.md +80 -0
- package/docs/classes/HotDBMySQL.md +310 -0
- package/docs/classes/HotDBSchema.md +51 -0
- package/docs/classes/HotFile.md +353 -0
- package/docs/classes/HotHTTPServer.md +700 -0
- package/docs/classes/HotLog.md +162 -0
- package/docs/classes/HotPage.md +357 -0
- package/docs/classes/HotRoute.md +312 -0
- package/docs/classes/HotRouteMethod.md +271 -0
- package/docs/classes/HotServer.md +311 -0
- package/docs/classes/HotStaq.md +1153 -0
- package/docs/classes/HotTestDestination.md +58 -0
- package/docs/classes/HotTestDriver.md +332 -0
- package/docs/classes/HotTestElement.md +88 -0
- package/docs/classes/HotTestElementOptions.md +71 -0
- package/docs/classes/HotTestMap.md +92 -0
- package/docs/classes/HotTestSeleniumDriver.md +529 -0
- package/docs/classes/HotTester.md +653 -0
- package/docs/classes/HotTesterAPI.md +493 -0
- package/docs/classes/HotTesterMocha.md +843 -0
- package/docs/classes/HotTesterMochaSelenium.md +896 -0
- package/docs/classes/HotTesterServer.md +633 -0
- package/docs/classes/InfluxSchema.md +74 -0
- package/docs/classes/MySQLSchema.md +199 -0
- package/docs/classes/MySQLSchemaField.md +330 -0
- package/docs/classes/MySQLSchemaTable.md +176 -0
- package/docs/enums/ConnectionStatus.md +43 -0
- package/docs/enums/DeveloperMode.md +38 -0
- package/docs/enums/EventExecutionType.md +43 -0
- package/docs/enums/HTTPMethod.md +32 -0
- package/docs/enums/HotDBGenerationType.md +30 -0
- package/docs/enums/HotLogLevel.md +88 -0
- package/docs/interfaces/HotDBConnectionInterface.md +116 -0
- package/docs/interfaces/HotDestination.md +62 -0
- package/docs/interfaces/HotSite.md +187 -0
- package/docs/interfaces/HotSiteMapPath.md +37 -0
- package/docs/interfaces/HotSiteRoute.md +79 -0
- package/docs/interfaces/HotStartOptions.md +115 -0
- package/docs/interfaces/HotTestPage.md +44 -0
- package/docs/interfaces/HotTestStop.md +62 -0
- package/docs/interfaces/IHotComponent.md +135 -0
- package/docs/interfaces/IHotStaq.md +118 -0
- package/docs/interfaces/IHotTestElement.md +54 -0
- package/docs/interfaces/IHotTestElementOptions.md +43 -0
- package/docs/interfaces/MySQLResults.md +43 -0
- package/docs/interfaces/MySQLSchemaFieldResult.md +75 -0
- package/docs/modules.md +162 -0
- package/package.json +65 -0
- package/selenium-start.sh +7 -0
- package/selenium-stop.sh +3 -0
- package/src/Hot.ts +319 -0
- package/src/HotAPI.ts +378 -0
- package/src/HotAgentAPI.ts +43 -0
- package/src/HotAgentRoute.ts +44 -0
- package/src/HotBuilder.ts +221 -0
- package/src/HotClient.ts +40 -0
- package/src/HotComponent.ts +158 -0
- package/src/HotCreator.ts +482 -0
- package/src/HotDB.ts +79 -0
- package/src/HotDBConnectionInterface.ts +40 -0
- package/src/HotFile.ts +617 -0
- package/src/HotHTTPServer.ts +954 -0
- package/src/HotIO.ts +128 -0
- package/src/HotLog.ts +158 -0
- package/src/HotPage.ts +206 -0
- package/src/HotRoute.ts +137 -0
- package/src/HotRouteMethod.ts +216 -0
- package/src/HotServer.ts +211 -0
- package/src/HotSetAsWeb.ts +3 -0
- package/src/HotStaq.ts +1877 -0
- package/src/HotStaqWeb.ts +59 -0
- package/src/HotTestDriver.ts +172 -0
- package/src/HotTestElement.ts +97 -0
- package/src/HotTestMap.ts +130 -0
- package/src/HotTestSeleniumDriver.ts +374 -0
- package/src/HotTester.ts +697 -0
- package/src/HotTesterAPI.ts +126 -0
- package/src/HotTesterMocha.ts +133 -0
- package/src/HotTesterMochaSelenium.ts +189 -0
- package/src/HotTesterServer.ts +551 -0
- package/src/api.ts +102 -0
- package/src/cli.ts +1147 -0
- package/src/schemas/HotDBInflux.ts +211 -0
- package/src/schemas/HotDBMigration.ts +24 -0
- package/src/schemas/HotDBMySQL.ts +312 -0
- package/src/schemas/HotDBSchema.ts +21 -0
- package/src/schemas/influx/InfluxSchema.ts +19 -0
- package/src/schemas/mysql/MySQLSchema.ts +90 -0
- package/src/schemas/mysql/MySQLSchemaField.ts +408 -0
- package/src/schemas/mysql/MySQLSchemaTable.ts +353 -0
- package/tsconfig-web.json +74 -0
- package/tsconfig.json +73 -0
- package/webpack.config.js +51 -0
- package/webpack.config.tests.js +56 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTestDestination
|
|
2
|
+
|
|
3
|
+
# Class: HotTestDestination
|
|
4
|
+
|
|
5
|
+
The destination to take in a map.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](HotTestDestination.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [autoStart](HotTestDestination.md#autostart)
|
|
16
|
+
- [destination](HotTestDestination.md#destination)
|
|
17
|
+
|
|
18
|
+
## Constructors
|
|
19
|
+
|
|
20
|
+
### constructor
|
|
21
|
+
|
|
22
|
+
• **new HotTestDestination**(`destination?`, `autoStart?`)
|
|
23
|
+
|
|
24
|
+
#### Parameters
|
|
25
|
+
|
|
26
|
+
| Name | Type | Default value |
|
|
27
|
+
| :------ | :------ | :------ |
|
|
28
|
+
| `destination` | `string` \| [`HotSiteMapPath`](../interfaces/HotSiteMapPath.md) \| [`HotTestDestination`](HotTestDestination.md) | `""` |
|
|
29
|
+
| `autoStart` | `boolean` | `true` |
|
|
30
|
+
|
|
31
|
+
#### Defined in
|
|
32
|
+
|
|
33
|
+
[HotTestMap.ts:25](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L25)
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
### autoStart
|
|
38
|
+
|
|
39
|
+
• **autoStart**: `boolean`
|
|
40
|
+
|
|
41
|
+
If set to true, this will automatically start executing it's
|
|
42
|
+
tests when it's time.
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[HotTestMap.ts:23](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L23)
|
|
47
|
+
|
|
48
|
+
___
|
|
49
|
+
|
|
50
|
+
### destination
|
|
51
|
+
|
|
52
|
+
• **destination**: `string`
|
|
53
|
+
|
|
54
|
+
The destination to take.
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[HotTestMap.ts:18](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L18)
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTestDriver
|
|
2
|
+
|
|
3
|
+
# Class: HotTestDriver
|
|
4
|
+
|
|
5
|
+
This actually executes the tests.
|
|
6
|
+
|
|
7
|
+
## Hierarchy
|
|
8
|
+
|
|
9
|
+
- **`HotTestDriver`**
|
|
10
|
+
|
|
11
|
+
↳ [`HotTestSeleniumDriver`](HotTestSeleniumDriver.md)
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Constructors
|
|
16
|
+
|
|
17
|
+
- [constructor](HotTestDriver.md#constructor)
|
|
18
|
+
|
|
19
|
+
### Properties
|
|
20
|
+
|
|
21
|
+
- [page](HotTestDriver.md#page)
|
|
22
|
+
|
|
23
|
+
### Methods
|
|
24
|
+
|
|
25
|
+
- [assert](HotTestDriver.md#assert)
|
|
26
|
+
- [assertElementValue](HotTestDriver.md#assertelementvalue)
|
|
27
|
+
- [destroy](HotTestDriver.md#destroy)
|
|
28
|
+
- [findTestElement](HotTestDriver.md#findtestelement)
|
|
29
|
+
- [navigateToUrl](HotTestDriver.md#navigatetourl)
|
|
30
|
+
- [parseTestObject](HotTestDriver.md#parsetestobject)
|
|
31
|
+
- [print](HotTestDriver.md#print)
|
|
32
|
+
- [println](HotTestDriver.md#println)
|
|
33
|
+
- [run](HotTestDriver.md#run)
|
|
34
|
+
- [runCommand](HotTestDriver.md#runcommand)
|
|
35
|
+
- [wait](HotTestDriver.md#wait)
|
|
36
|
+
- [waitForTestElement](HotTestDriver.md#waitfortestelement)
|
|
37
|
+
|
|
38
|
+
## Constructors
|
|
39
|
+
|
|
40
|
+
### constructor
|
|
41
|
+
|
|
42
|
+
• **new HotTestDriver**(`page?`)
|
|
43
|
+
|
|
44
|
+
#### Parameters
|
|
45
|
+
|
|
46
|
+
| Name | Type | Default value |
|
|
47
|
+
| :------ | :------ | :------ |
|
|
48
|
+
| `page` | [`HotTestPage`](../interfaces/HotTestPage.md) | `null` |
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[HotTestDriver.ts:15](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L15)
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
### page
|
|
57
|
+
|
|
58
|
+
• **page**: [`HotTestPage`](../interfaces/HotTestPage.md)
|
|
59
|
+
|
|
60
|
+
The current page.
|
|
61
|
+
|
|
62
|
+
#### Defined in
|
|
63
|
+
|
|
64
|
+
[HotTestDriver.ts:13](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L13)
|
|
65
|
+
|
|
66
|
+
## Methods
|
|
67
|
+
|
|
68
|
+
### assert
|
|
69
|
+
|
|
70
|
+
▸ **assert**(`value`, `errorMessage?`): `Promise`<`any`\>
|
|
71
|
+
|
|
72
|
+
An expression to test.
|
|
73
|
+
|
|
74
|
+
#### Parameters
|
|
75
|
+
|
|
76
|
+
| Name | Type | Default value |
|
|
77
|
+
| :------ | :------ | :------ |
|
|
78
|
+
| `value` | `any` | `undefined` |
|
|
79
|
+
| `errorMessage` | `string` | `""` |
|
|
80
|
+
|
|
81
|
+
#### Returns
|
|
82
|
+
|
|
83
|
+
`Promise`<`any`\>
|
|
84
|
+
|
|
85
|
+
#### Defined in
|
|
86
|
+
|
|
87
|
+
[HotTestDriver.ts:107](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L107)
|
|
88
|
+
|
|
89
|
+
___
|
|
90
|
+
|
|
91
|
+
### assertElementValue
|
|
92
|
+
|
|
93
|
+
▸ `Abstract` **assertElementValue**(`name`, `value`, `errorMessage?`, `options?`): `Promise`<`any`\>
|
|
94
|
+
|
|
95
|
+
An expression to test.
|
|
96
|
+
|
|
97
|
+
#### Parameters
|
|
98
|
+
|
|
99
|
+
| Name | Type |
|
|
100
|
+
| :------ | :------ |
|
|
101
|
+
| `name` | `string` \| [`HotTestElement`](HotTestElement.md) |
|
|
102
|
+
| `value` | `any` |
|
|
103
|
+
| `errorMessage?` | `string` |
|
|
104
|
+
| `options?` | [`HotTestElementOptions`](HotTestElementOptions.md) |
|
|
105
|
+
|
|
106
|
+
#### Returns
|
|
107
|
+
|
|
108
|
+
`Promise`<`any`\>
|
|
109
|
+
|
|
110
|
+
#### Defined in
|
|
111
|
+
|
|
112
|
+
[HotTestDriver.ts:102](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L102)
|
|
113
|
+
|
|
114
|
+
___
|
|
115
|
+
|
|
116
|
+
### destroy
|
|
117
|
+
|
|
118
|
+
▸ `Abstract` **destroy**(): `Promise`<`void`\>
|
|
119
|
+
|
|
120
|
+
Disconnect this server or destroy anything associated with this HotTestDriver.
|
|
121
|
+
|
|
122
|
+
#### Returns
|
|
123
|
+
|
|
124
|
+
`Promise`<`void`\>
|
|
125
|
+
|
|
126
|
+
#### Defined in
|
|
127
|
+
|
|
128
|
+
[HotTestDriver.ts:81](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L81)
|
|
129
|
+
|
|
130
|
+
___
|
|
131
|
+
|
|
132
|
+
### findTestElement
|
|
133
|
+
|
|
134
|
+
▸ `Abstract` **findTestElement**(`name`, `options?`): `Promise`<`any`\>
|
|
135
|
+
|
|
136
|
+
Find a HotTestElement to utilize.
|
|
137
|
+
|
|
138
|
+
#### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type |
|
|
141
|
+
| :------ | :------ |
|
|
142
|
+
| `name` | `string` \| [`HotTestElement`](HotTestElement.md) |
|
|
143
|
+
| `options?` | [`HotTestElementOptions`](HotTestElementOptions.md) |
|
|
144
|
+
|
|
145
|
+
#### Returns
|
|
146
|
+
|
|
147
|
+
`Promise`<`any`\>
|
|
148
|
+
|
|
149
|
+
#### Defined in
|
|
150
|
+
|
|
151
|
+
[HotTestDriver.ts:94](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L94)
|
|
152
|
+
|
|
153
|
+
___
|
|
154
|
+
|
|
155
|
+
### navigateToUrl
|
|
156
|
+
|
|
157
|
+
▸ `Abstract` **navigateToUrl**(`url`): `Promise`<`void`\>
|
|
158
|
+
|
|
159
|
+
Navigate to a url.
|
|
160
|
+
|
|
161
|
+
#### Parameters
|
|
162
|
+
|
|
163
|
+
| Name | Type |
|
|
164
|
+
| :------ | :------ |
|
|
165
|
+
| `url` | `string` |
|
|
166
|
+
|
|
167
|
+
#### Returns
|
|
168
|
+
|
|
169
|
+
`Promise`<`void`\>
|
|
170
|
+
|
|
171
|
+
#### Defined in
|
|
172
|
+
|
|
173
|
+
[HotTestDriver.ts:86](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L86)
|
|
174
|
+
|
|
175
|
+
___
|
|
176
|
+
|
|
177
|
+
### parseTestObject
|
|
178
|
+
|
|
179
|
+
▸ **parseTestObject**(`name`): `string`
|
|
180
|
+
|
|
181
|
+
Get a test object by it's name. If a * is used, it will be used as a
|
|
182
|
+
wildcard for the object's name. If a > is used, then the name will
|
|
183
|
+
be treated as a CSS selector.
|
|
184
|
+
|
|
185
|
+
#### Parameters
|
|
186
|
+
|
|
187
|
+
| Name | Type |
|
|
188
|
+
| :------ | :------ |
|
|
189
|
+
| `name` | `string` |
|
|
190
|
+
|
|
191
|
+
#### Returns
|
|
192
|
+
|
|
193
|
+
`string`
|
|
194
|
+
|
|
195
|
+
#### Defined in
|
|
196
|
+
|
|
197
|
+
[HotTestDriver.ts:25](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L25)
|
|
198
|
+
|
|
199
|
+
___
|
|
200
|
+
|
|
201
|
+
### print
|
|
202
|
+
|
|
203
|
+
▸ **print**(`message`): `Promise`<`void`\>
|
|
204
|
+
|
|
205
|
+
Print a message.
|
|
206
|
+
|
|
207
|
+
#### Parameters
|
|
208
|
+
|
|
209
|
+
| Name | Type |
|
|
210
|
+
| :------ | :------ |
|
|
211
|
+
| `message` | `string` |
|
|
212
|
+
|
|
213
|
+
#### Returns
|
|
214
|
+
|
|
215
|
+
`Promise`<`void`\>
|
|
216
|
+
|
|
217
|
+
#### Defined in
|
|
218
|
+
|
|
219
|
+
[HotTestDriver.ts:65](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L65)
|
|
220
|
+
|
|
221
|
+
___
|
|
222
|
+
|
|
223
|
+
### println
|
|
224
|
+
|
|
225
|
+
▸ **println**(`message`): `Promise`<`void`\>
|
|
226
|
+
|
|
227
|
+
Print a message line.
|
|
228
|
+
|
|
229
|
+
#### Parameters
|
|
230
|
+
|
|
231
|
+
| Name | Type |
|
|
232
|
+
| :------ | :------ |
|
|
233
|
+
| `message` | `string` |
|
|
234
|
+
|
|
235
|
+
#### Returns
|
|
236
|
+
|
|
237
|
+
`Promise`<`void`\>
|
|
238
|
+
|
|
239
|
+
#### Defined in
|
|
240
|
+
|
|
241
|
+
[HotTestDriver.ts:73](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L73)
|
|
242
|
+
|
|
243
|
+
___
|
|
244
|
+
|
|
245
|
+
### run
|
|
246
|
+
|
|
247
|
+
▸ **run**(`executions`): `Promise`<`any`[]\>
|
|
248
|
+
|
|
249
|
+
Run a series of test elements.
|
|
250
|
+
|
|
251
|
+
#### Parameters
|
|
252
|
+
|
|
253
|
+
| Name | Type |
|
|
254
|
+
| :------ | :------ |
|
|
255
|
+
| `executions` | `string`[] \| `string`[][] |
|
|
256
|
+
|
|
257
|
+
#### Returns
|
|
258
|
+
|
|
259
|
+
`Promise`<`any`[]\>
|
|
260
|
+
|
|
261
|
+
#### Defined in
|
|
262
|
+
|
|
263
|
+
[HotTestDriver.ts:116](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L116)
|
|
264
|
+
|
|
265
|
+
___
|
|
266
|
+
|
|
267
|
+
### runCommand
|
|
268
|
+
|
|
269
|
+
▸ `Abstract` **runCommand**(`testElm`, `funcName?`, `valueStr?`): `Promise`<`any`\>
|
|
270
|
+
|
|
271
|
+
Run a HotTestElement command.
|
|
272
|
+
|
|
273
|
+
#### Parameters
|
|
274
|
+
|
|
275
|
+
| Name | Type |
|
|
276
|
+
| :------ | :------ |
|
|
277
|
+
| `testElm` | `string` \| [`HotTestElement`](HotTestElement.md) |
|
|
278
|
+
| `funcName?` | `string` |
|
|
279
|
+
| `valueStr?` | `string` |
|
|
280
|
+
|
|
281
|
+
#### Returns
|
|
282
|
+
|
|
283
|
+
`Promise`<`any`\>
|
|
284
|
+
|
|
285
|
+
#### Defined in
|
|
286
|
+
|
|
287
|
+
[HotTestDriver.ts:98](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L98)
|
|
288
|
+
|
|
289
|
+
___
|
|
290
|
+
|
|
291
|
+
### wait
|
|
292
|
+
|
|
293
|
+
▸ **wait**(`numMilliseconds`): `Promise`<`void`\>
|
|
294
|
+
|
|
295
|
+
Wait for a number of milliseconds.
|
|
296
|
+
|
|
297
|
+
#### Parameters
|
|
298
|
+
|
|
299
|
+
| Name | Type |
|
|
300
|
+
| :------ | :------ |
|
|
301
|
+
| `numMilliseconds` | `number` |
|
|
302
|
+
|
|
303
|
+
#### Returns
|
|
304
|
+
|
|
305
|
+
`Promise`<`void`\>
|
|
306
|
+
|
|
307
|
+
#### Defined in
|
|
308
|
+
|
|
309
|
+
[HotTestDriver.ts:51](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L51)
|
|
310
|
+
|
|
311
|
+
___
|
|
312
|
+
|
|
313
|
+
### waitForTestElement
|
|
314
|
+
|
|
315
|
+
▸ `Abstract` **waitForTestElement**(`name`, `options?`): `Promise`<`any`\>
|
|
316
|
+
|
|
317
|
+
Wait for a HotTestElement to load.
|
|
318
|
+
|
|
319
|
+
#### Parameters
|
|
320
|
+
|
|
321
|
+
| Name | Type |
|
|
322
|
+
| :------ | :------ |
|
|
323
|
+
| `name` | `string` \| [`HotTestElement`](HotTestElement.md) |
|
|
324
|
+
| `options?` | [`HotTestElementOptions`](HotTestElementOptions.md) |
|
|
325
|
+
|
|
326
|
+
#### Returns
|
|
327
|
+
|
|
328
|
+
`Promise`<`any`\>
|
|
329
|
+
|
|
330
|
+
#### Defined in
|
|
331
|
+
|
|
332
|
+
[HotTestDriver.ts:90](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestDriver.ts#L90)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTestElement
|
|
2
|
+
|
|
3
|
+
# Class: HotTestElement
|
|
4
|
+
|
|
5
|
+
A test element.
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`IHotTestElement`](../interfaces/IHotTestElement.md)
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Constructors
|
|
14
|
+
|
|
15
|
+
- [constructor](HotTestElement.md#constructor)
|
|
16
|
+
|
|
17
|
+
### Properties
|
|
18
|
+
|
|
19
|
+
- [func](HotTestElement.md#func)
|
|
20
|
+
- [name](HotTestElement.md#name)
|
|
21
|
+
- [value](HotTestElement.md#value)
|
|
22
|
+
|
|
23
|
+
## Constructors
|
|
24
|
+
|
|
25
|
+
### constructor
|
|
26
|
+
|
|
27
|
+
• **new HotTestElement**(`name`, `func?`, `value?`)
|
|
28
|
+
|
|
29
|
+
#### Parameters
|
|
30
|
+
|
|
31
|
+
| Name | Type | Default value |
|
|
32
|
+
| :------ | :------ | :------ |
|
|
33
|
+
| `name` | `string` \| [`IHotTestElement`](../interfaces/IHotTestElement.md) | `undefined` |
|
|
34
|
+
| `func` | `string` | `""` |
|
|
35
|
+
| `value` | `any` | `null` |
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[HotTestElement.ts:82](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L82)
|
|
40
|
+
|
|
41
|
+
## Properties
|
|
42
|
+
|
|
43
|
+
### func
|
|
44
|
+
|
|
45
|
+
• **func**: `string`
|
|
46
|
+
|
|
47
|
+
The name of the function to execute
|
|
48
|
+
while executing the test.
|
|
49
|
+
|
|
50
|
+
#### Implementation of
|
|
51
|
+
|
|
52
|
+
[IHotTestElement](../interfaces/IHotTestElement.md).[func](../interfaces/IHotTestElement.md#func)
|
|
53
|
+
|
|
54
|
+
#### Defined in
|
|
55
|
+
|
|
56
|
+
[HotTestElement.ts:76](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L76)
|
|
57
|
+
|
|
58
|
+
___
|
|
59
|
+
|
|
60
|
+
### name
|
|
61
|
+
|
|
62
|
+
• **name**: `string`
|
|
63
|
+
|
|
64
|
+
The name of the element.
|
|
65
|
+
|
|
66
|
+
#### Implementation of
|
|
67
|
+
|
|
68
|
+
[IHotTestElement](../interfaces/IHotTestElement.md).[name](../interfaces/IHotTestElement.md#name)
|
|
69
|
+
|
|
70
|
+
#### Defined in
|
|
71
|
+
|
|
72
|
+
[HotTestElement.ts:71](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L71)
|
|
73
|
+
|
|
74
|
+
___
|
|
75
|
+
|
|
76
|
+
### value
|
|
77
|
+
|
|
78
|
+
• **value**: `any`
|
|
79
|
+
|
|
80
|
+
The value to use.
|
|
81
|
+
|
|
82
|
+
#### Implementation of
|
|
83
|
+
|
|
84
|
+
[IHotTestElement](../interfaces/IHotTestElement.md).[value](../interfaces/IHotTestElement.md#value)
|
|
85
|
+
|
|
86
|
+
#### Defined in
|
|
87
|
+
|
|
88
|
+
[HotTestElement.ts:80](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L80)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTestElementOptions
|
|
2
|
+
|
|
3
|
+
# Class: HotTestElementOptions
|
|
4
|
+
|
|
5
|
+
Hot test element options.
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`IHotTestElementOptions`](../interfaces/IHotTestElementOptions.md)
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Constructors
|
|
14
|
+
|
|
15
|
+
- [constructor](HotTestElementOptions.md#constructor)
|
|
16
|
+
|
|
17
|
+
### Properties
|
|
18
|
+
|
|
19
|
+
- [ignoreMissingElementError](HotTestElementOptions.md#ignoremissingelementerror)
|
|
20
|
+
- [mustBeVisible](HotTestElementOptions.md#mustbevisible)
|
|
21
|
+
|
|
22
|
+
## Constructors
|
|
23
|
+
|
|
24
|
+
### constructor
|
|
25
|
+
|
|
26
|
+
• **new HotTestElementOptions**(`copy?`)
|
|
27
|
+
|
|
28
|
+
#### Parameters
|
|
29
|
+
|
|
30
|
+
| Name | Type |
|
|
31
|
+
| :------ | :------ |
|
|
32
|
+
| `copy` | [`IHotTestElementOptions`](../interfaces/IHotTestElementOptions.md) |
|
|
33
|
+
|
|
34
|
+
#### Defined in
|
|
35
|
+
|
|
36
|
+
[HotTestElement.ts:36](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L36)
|
|
37
|
+
|
|
38
|
+
## Properties
|
|
39
|
+
|
|
40
|
+
### ignoreMissingElementError
|
|
41
|
+
|
|
42
|
+
• **ignoreMissingElementError**: `boolean`
|
|
43
|
+
|
|
44
|
+
If the test element is missing, ignore the error. This
|
|
45
|
+
will cause the rest of the function to return immediately
|
|
46
|
+
without any exceptions being thrown.
|
|
47
|
+
|
|
48
|
+
#### Implementation of
|
|
49
|
+
|
|
50
|
+
[IHotTestElementOptions](../interfaces/IHotTestElementOptions.md).[ignoreMissingElementError](../interfaces/IHotTestElementOptions.md#ignoremissingelementerror)
|
|
51
|
+
|
|
52
|
+
#### Defined in
|
|
53
|
+
|
|
54
|
+
[HotTestElement.ts:34](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L34)
|
|
55
|
+
|
|
56
|
+
___
|
|
57
|
+
|
|
58
|
+
### mustBeVisible
|
|
59
|
+
|
|
60
|
+
• **mustBeVisible**: `boolean`
|
|
61
|
+
|
|
62
|
+
Indicates that the test element must be visible in
|
|
63
|
+
order to select it.
|
|
64
|
+
|
|
65
|
+
#### Implementation of
|
|
66
|
+
|
|
67
|
+
[IHotTestElementOptions](../interfaces/IHotTestElementOptions.md).[mustBeVisible](../interfaces/IHotTestElementOptions.md#mustbevisible)
|
|
68
|
+
|
|
69
|
+
#### Defined in
|
|
70
|
+
|
|
71
|
+
[HotTestElement.ts:28](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestElement.ts#L28)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTestMap
|
|
2
|
+
|
|
3
|
+
# Class: HotTestMap
|
|
4
|
+
|
|
5
|
+
Maps the paths that are taken to complete a test.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](HotTestMap.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [destinationOrder](HotTestMap.md#destinationorder)
|
|
16
|
+
- [destinations](HotTestMap.md#destinations)
|
|
17
|
+
- [pages](HotTestMap.md#pages)
|
|
18
|
+
|
|
19
|
+
## Constructors
|
|
20
|
+
|
|
21
|
+
### constructor
|
|
22
|
+
|
|
23
|
+
• **new HotTestMap**(`destinations?`, `pages?`, `destinationOrder?`)
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
| Name | Type | Default value |
|
|
28
|
+
| :------ | :------ | :------ |
|
|
29
|
+
| `destinations` | `string`[] \| [`HotTestDestination`](HotTestDestination.md)[] \| { [name: string]: `string` \| [`HotTestDestination`](HotTestDestination.md); } | `[]` |
|
|
30
|
+
| `pages` | `Object` | `{}` |
|
|
31
|
+
| `destinationOrder` | `string`[] | `[]` |
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[HotTestMap.ts:100](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L100)
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
### destinationOrder
|
|
40
|
+
|
|
41
|
+
• **destinationOrder**: `string`[]
|
|
42
|
+
|
|
43
|
+
The order in which destinations are supposed to execute. This is
|
|
44
|
+
ignored if the destinations are an array.
|
|
45
|
+
|
|
46
|
+
#### Defined in
|
|
47
|
+
|
|
48
|
+
[HotTestMap.ts:92](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L92)
|
|
49
|
+
|
|
50
|
+
___
|
|
51
|
+
|
|
52
|
+
### destinations
|
|
53
|
+
|
|
54
|
+
• **destinations**: [`HotTestDestination`](HotTestDestination.md)[] \| { [name: string]: [`HotTestDestination`](HotTestDestination.md); }
|
|
55
|
+
|
|
56
|
+
The order in which paths are to be taken. Each destination is a string
|
|
57
|
+
in a type -> path order. The type could be either a page or api route.
|
|
58
|
+
For example:
|
|
59
|
+
```
|
|
60
|
+
[
|
|
61
|
+
"page:signin_page -> signin_path",
|
|
62
|
+
"page:account_page -> change_username_path",
|
|
63
|
+
"page:account_page -> change_password_path",
|
|
64
|
+
"page:account_page -> change_name_path -> change_address_path",
|
|
65
|
+
"page:account_page -> signout_path",
|
|
66
|
+
"api:account_api_route -> signout_route_method -> signout_test_path"
|
|
67
|
+
]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The first string to the left of the -> will always be the type, such as a
|
|
71
|
+
page or an api route. Any strings to the right of the -> will be a path, even
|
|
72
|
+
when chaining addtional ->'s.
|
|
73
|
+
|
|
74
|
+
#### Defined in
|
|
75
|
+
|
|
76
|
+
[HotTestMap.ts:87](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L87)
|
|
77
|
+
|
|
78
|
+
___
|
|
79
|
+
|
|
80
|
+
### pages
|
|
81
|
+
|
|
82
|
+
• **pages**: `Object`
|
|
83
|
+
|
|
84
|
+
The test pages to execute.
|
|
85
|
+
|
|
86
|
+
#### Index signature
|
|
87
|
+
|
|
88
|
+
▪ [name: `string`]: [`HotTestPage`](../interfaces/HotTestPage.md)
|
|
89
|
+
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[HotTestMap.ts:96](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTestMap.ts#L96)
|