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,896 @@
|
|
|
1
|
+
[hotstaq](../README.md) / [Modules](../modules.md) / HotTesterMochaSelenium
|
|
2
|
+
|
|
3
|
+
# Class: HotTesterMochaSelenium
|
|
4
|
+
|
|
5
|
+
The tester that uses Mocha to executes all tests.
|
|
6
|
+
|
|
7
|
+
## Hierarchy
|
|
8
|
+
|
|
9
|
+
- [`HotTester`](HotTester.md)
|
|
10
|
+
|
|
11
|
+
↳ **`HotTesterMochaSelenium`**
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Constructors
|
|
16
|
+
|
|
17
|
+
- [constructor](HotTesterMochaSelenium.md#constructor)
|
|
18
|
+
|
|
19
|
+
### Properties
|
|
20
|
+
|
|
21
|
+
- [afterAll](HotTesterMochaSelenium.md#afterall)
|
|
22
|
+
- [baseUrl](HotTesterMochaSelenium.md#baseurl)
|
|
23
|
+
- [beforeAll](HotTesterMochaSelenium.md#beforeall)
|
|
24
|
+
- [driver](HotTesterMochaSelenium.md#driver)
|
|
25
|
+
- [finishedLoading](HotTesterMochaSelenium.md#finishedloading)
|
|
26
|
+
- [hasBeenDestroyed](HotTesterMochaSelenium.md#hasbeendestroyed)
|
|
27
|
+
- [hasBeenSetup](HotTesterMochaSelenium.md#hasbeensetup)
|
|
28
|
+
- [mocha](HotTesterMochaSelenium.md#mocha)
|
|
29
|
+
- [name](HotTesterMochaSelenium.md#name)
|
|
30
|
+
- [onSetup](HotTesterMochaSelenium.md#onsetup)
|
|
31
|
+
- [processor](HotTesterMochaSelenium.md#processor)
|
|
32
|
+
- [suite](HotTesterMochaSelenium.md#suite)
|
|
33
|
+
- [testMaps](HotTesterMochaSelenium.md#testmaps)
|
|
34
|
+
- [timeout](HotTesterMochaSelenium.md#timeout)
|
|
35
|
+
- [waitForTesterData](HotTesterMochaSelenium.md#waitfortesterdata)
|
|
36
|
+
|
|
37
|
+
### Methods
|
|
38
|
+
|
|
39
|
+
- [destroy](HotTesterMochaSelenium.md#destroy)
|
|
40
|
+
- [execute](HotTesterMochaSelenium.md#execute)
|
|
41
|
+
- [executeCommand](HotTesterMochaSelenium.md#executecommand)
|
|
42
|
+
- [executeTestAPIPath](HotTesterMochaSelenium.md#executetestapipath)
|
|
43
|
+
- [executeTestAPIPaths](HotTesterMochaSelenium.md#executetestapipaths)
|
|
44
|
+
- [executeTestPagePath](HotTesterMochaSelenium.md#executetestpagepath)
|
|
45
|
+
- [executeTestPagePaths](HotTesterMochaSelenium.md#executetestpagepaths)
|
|
46
|
+
- [getTestPage](HotTesterMochaSelenium.md#gettestpage)
|
|
47
|
+
- [getTestPath](HotTesterMochaSelenium.md#gettestpath)
|
|
48
|
+
- [onCommand](HotTesterMochaSelenium.md#oncommand)
|
|
49
|
+
- [onExecute](HotTesterMochaSelenium.md#onexecute)
|
|
50
|
+
- [onFinishedLoading](HotTesterMochaSelenium.md#onfinishedloading)
|
|
51
|
+
- [onTestAPIPathEnd](HotTesterMochaSelenium.md#ontestapipathend)
|
|
52
|
+
- [onTestAPIPathStart](HotTesterMochaSelenium.md#ontestapipathstart)
|
|
53
|
+
- [onTestEnd](HotTesterMochaSelenium.md#ontestend)
|
|
54
|
+
- [onTestPagePathEnd](HotTesterMochaSelenium.md#ontestpagepathend)
|
|
55
|
+
- [onTestPagePathStart](HotTesterMochaSelenium.md#ontestpagepathstart)
|
|
56
|
+
- [onTestStart](HotTesterMochaSelenium.md#onteststart)
|
|
57
|
+
- [setup](HotTesterMochaSelenium.md#setup)
|
|
58
|
+
- [waitForData](HotTesterMochaSelenium.md#waitfordata)
|
|
59
|
+
- [interpretDestination](HotTesterMochaSelenium.md#interpretdestination)
|
|
60
|
+
|
|
61
|
+
## Constructors
|
|
62
|
+
|
|
63
|
+
### constructor
|
|
64
|
+
|
|
65
|
+
• **new HotTesterMochaSelenium**(`processor`, `name`, `baseUrl`, `testMaps?`, `onSetup?`, `beforeAll?`, `afterAll?`)
|
|
66
|
+
|
|
67
|
+
#### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Default value |
|
|
70
|
+
| :------ | :------ | :------ |
|
|
71
|
+
| `processor` | [`HotStaq`](HotStaq.md) | `undefined` |
|
|
72
|
+
| `name` | `string` | `undefined` |
|
|
73
|
+
| `baseUrl` | `string` | `undefined` |
|
|
74
|
+
| `testMaps` | `Object` | `{}` |
|
|
75
|
+
| `onSetup` | (`driver`: `WebDriver`) => `Promise`<`boolean`\> | `null` |
|
|
76
|
+
| `beforeAll` | () => `Promise`<`void`\> | `null` |
|
|
77
|
+
| `afterAll` | () => `Promise`<`void`\> | `null` |
|
|
78
|
+
|
|
79
|
+
#### Overrides
|
|
80
|
+
|
|
81
|
+
[HotTester](HotTester.md).[constructor](HotTester.md#constructor)
|
|
82
|
+
|
|
83
|
+
#### Defined in
|
|
84
|
+
|
|
85
|
+
[HotTesterMochaSelenium.ts:52](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L52)
|
|
86
|
+
|
|
87
|
+
## Properties
|
|
88
|
+
|
|
89
|
+
### afterAll
|
|
90
|
+
|
|
91
|
+
• **afterAll**: () => `Promise`<`void`\>
|
|
92
|
+
|
|
93
|
+
#### Type declaration
|
|
94
|
+
|
|
95
|
+
▸ (): `Promise`<`void`\>
|
|
96
|
+
|
|
97
|
+
The Mocha afterAll event to call before any tests are executed.
|
|
98
|
+
|
|
99
|
+
##### Returns
|
|
100
|
+
|
|
101
|
+
`Promise`<`void`\>
|
|
102
|
+
|
|
103
|
+
#### Defined in
|
|
104
|
+
|
|
105
|
+
[HotTesterMochaSelenium.ts:39](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L39)
|
|
106
|
+
|
|
107
|
+
___
|
|
108
|
+
|
|
109
|
+
### baseUrl
|
|
110
|
+
|
|
111
|
+
• **baseUrl**: `string`
|
|
112
|
+
|
|
113
|
+
The base url that will construct future urls.
|
|
114
|
+
|
|
115
|
+
#### Inherited from
|
|
116
|
+
|
|
117
|
+
[HotTester](HotTester.md).[baseUrl](HotTester.md#baseurl)
|
|
118
|
+
|
|
119
|
+
#### Defined in
|
|
120
|
+
|
|
121
|
+
[HotTester.ts:74](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L74)
|
|
122
|
+
|
|
123
|
+
___
|
|
124
|
+
|
|
125
|
+
### beforeAll
|
|
126
|
+
|
|
127
|
+
• **beforeAll**: () => `Promise`<`void`\>
|
|
128
|
+
|
|
129
|
+
#### Type declaration
|
|
130
|
+
|
|
131
|
+
▸ (): `Promise`<`void`\>
|
|
132
|
+
|
|
133
|
+
The Mocha beforeAll event to call before any tests are executed.
|
|
134
|
+
|
|
135
|
+
##### Returns
|
|
136
|
+
|
|
137
|
+
`Promise`<`void`\>
|
|
138
|
+
|
|
139
|
+
#### Defined in
|
|
140
|
+
|
|
141
|
+
[HotTesterMochaSelenium.ts:35](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L35)
|
|
142
|
+
|
|
143
|
+
___
|
|
144
|
+
|
|
145
|
+
### driver
|
|
146
|
+
|
|
147
|
+
• **driver**: [`HotTestSeleniumDriver`](HotTestSeleniumDriver.md)
|
|
148
|
+
|
|
149
|
+
The driver to use when running tests.
|
|
150
|
+
|
|
151
|
+
#### Overrides
|
|
152
|
+
|
|
153
|
+
[HotTester](HotTester.md).[driver](HotTester.md#driver)
|
|
154
|
+
|
|
155
|
+
#### Defined in
|
|
156
|
+
|
|
157
|
+
[HotTesterMochaSelenium.ts:19](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L19)
|
|
158
|
+
|
|
159
|
+
___
|
|
160
|
+
|
|
161
|
+
### finishedLoading
|
|
162
|
+
|
|
163
|
+
• **finishedLoading**: `boolean`
|
|
164
|
+
|
|
165
|
+
Has this tester finished loading?
|
|
166
|
+
|
|
167
|
+
#### Inherited from
|
|
168
|
+
|
|
169
|
+
[HotTester](HotTester.md).[finishedLoading](HotTester.md#finishedloading)
|
|
170
|
+
|
|
171
|
+
#### Defined in
|
|
172
|
+
|
|
173
|
+
[HotTester.ts:90](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L90)
|
|
174
|
+
|
|
175
|
+
___
|
|
176
|
+
|
|
177
|
+
### hasBeenDestroyed
|
|
178
|
+
|
|
179
|
+
• **hasBeenDestroyed**: `boolean`
|
|
180
|
+
|
|
181
|
+
Has this tester finished setting up?
|
|
182
|
+
|
|
183
|
+
#### Inherited from
|
|
184
|
+
|
|
185
|
+
[HotTester](HotTester.md).[hasBeenDestroyed](HotTester.md#hasbeendestroyed)
|
|
186
|
+
|
|
187
|
+
#### Defined in
|
|
188
|
+
|
|
189
|
+
[HotTester.ts:98](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L98)
|
|
190
|
+
|
|
191
|
+
___
|
|
192
|
+
|
|
193
|
+
### hasBeenSetup
|
|
194
|
+
|
|
195
|
+
• **hasBeenSetup**: `boolean`
|
|
196
|
+
|
|
197
|
+
Has this tester finished setting up?
|
|
198
|
+
|
|
199
|
+
#### Inherited from
|
|
200
|
+
|
|
201
|
+
[HotTester](HotTester.md).[hasBeenSetup](HotTester.md#hasbeensetup)
|
|
202
|
+
|
|
203
|
+
#### Defined in
|
|
204
|
+
|
|
205
|
+
[HotTester.ts:94](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L94)
|
|
206
|
+
|
|
207
|
+
___
|
|
208
|
+
|
|
209
|
+
### mocha
|
|
210
|
+
|
|
211
|
+
• **mocha**: `Mocha`
|
|
212
|
+
|
|
213
|
+
The mocha instance to run.
|
|
214
|
+
|
|
215
|
+
#### Defined in
|
|
216
|
+
|
|
217
|
+
[HotTesterMochaSelenium.ts:23](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L23)
|
|
218
|
+
|
|
219
|
+
___
|
|
220
|
+
|
|
221
|
+
### name
|
|
222
|
+
|
|
223
|
+
• **name**: `string`
|
|
224
|
+
|
|
225
|
+
The tester name.
|
|
226
|
+
|
|
227
|
+
#### Inherited from
|
|
228
|
+
|
|
229
|
+
[HotTester](HotTester.md).[name](HotTester.md#name)
|
|
230
|
+
|
|
231
|
+
#### Defined in
|
|
232
|
+
|
|
233
|
+
[HotTester.ts:70](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L70)
|
|
234
|
+
|
|
235
|
+
___
|
|
236
|
+
|
|
237
|
+
### onSetup
|
|
238
|
+
|
|
239
|
+
• **onSetup**: (`driver`: `WebDriver`, `url`: `string`) => `Promise`<`boolean`\>
|
|
240
|
+
|
|
241
|
+
#### Type declaration
|
|
242
|
+
|
|
243
|
+
▸ (`driver`, `url`): `Promise`<`boolean`\>
|
|
244
|
+
|
|
245
|
+
This event is executed after the Selenium driver and url have
|
|
246
|
+
been loaded. If this returns true, Selenium will load the url.
|
|
247
|
+
|
|
248
|
+
##### Parameters
|
|
249
|
+
|
|
250
|
+
| Name | Type |
|
|
251
|
+
| :------ | :------ |
|
|
252
|
+
| `driver` | `WebDriver` |
|
|
253
|
+
| `url` | `string` |
|
|
254
|
+
|
|
255
|
+
##### Returns
|
|
256
|
+
|
|
257
|
+
`Promise`<`boolean`\>
|
|
258
|
+
|
|
259
|
+
#### Defined in
|
|
260
|
+
|
|
261
|
+
[HotTesterMochaSelenium.ts:44](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L44)
|
|
262
|
+
|
|
263
|
+
___
|
|
264
|
+
|
|
265
|
+
### processor
|
|
266
|
+
|
|
267
|
+
• **processor**: [`HotStaq`](HotStaq.md)
|
|
268
|
+
|
|
269
|
+
The associated processor.
|
|
270
|
+
|
|
271
|
+
#### Inherited from
|
|
272
|
+
|
|
273
|
+
[HotTester](HotTester.md).[processor](HotTester.md#processor)
|
|
274
|
+
|
|
275
|
+
#### Defined in
|
|
276
|
+
|
|
277
|
+
[HotTester.ts:78](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L78)
|
|
278
|
+
|
|
279
|
+
___
|
|
280
|
+
|
|
281
|
+
### suite
|
|
282
|
+
|
|
283
|
+
• **suite**: `Suite`
|
|
284
|
+
|
|
285
|
+
The suite to execute.
|
|
286
|
+
|
|
287
|
+
#### Defined in
|
|
288
|
+
|
|
289
|
+
[HotTesterMochaSelenium.ts:31](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L31)
|
|
290
|
+
|
|
291
|
+
___
|
|
292
|
+
|
|
293
|
+
### testMaps
|
|
294
|
+
|
|
295
|
+
• **testMaps**: `Object`
|
|
296
|
+
|
|
297
|
+
The test maps to test.
|
|
298
|
+
|
|
299
|
+
#### Index signature
|
|
300
|
+
|
|
301
|
+
▪ [name: `string`]: [`HotTestMap`](HotTestMap.md)
|
|
302
|
+
|
|
303
|
+
#### Inherited from
|
|
304
|
+
|
|
305
|
+
[HotTester](HotTester.md).[testMaps](HotTester.md#testmaps)
|
|
306
|
+
|
|
307
|
+
#### Defined in
|
|
308
|
+
|
|
309
|
+
[HotTester.ts:82](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L82)
|
|
310
|
+
|
|
311
|
+
___
|
|
312
|
+
|
|
313
|
+
### timeout
|
|
314
|
+
|
|
315
|
+
• **timeout**: `number`
|
|
316
|
+
|
|
317
|
+
The timeout for each test.
|
|
318
|
+
|
|
319
|
+
#### Defined in
|
|
320
|
+
|
|
321
|
+
[HotTesterMochaSelenium.ts:27](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L27)
|
|
322
|
+
|
|
323
|
+
___
|
|
324
|
+
|
|
325
|
+
### waitForTesterData
|
|
326
|
+
|
|
327
|
+
• **waitForTesterData**: `boolean`
|
|
328
|
+
|
|
329
|
+
If set to true, this will wait for the tester API data. If
|
|
330
|
+
onSetup is used, it will have to return true in order to
|
|
331
|
+
wait for the tester data.
|
|
332
|
+
|
|
333
|
+
#### Defined in
|
|
334
|
+
|
|
335
|
+
[HotTesterMochaSelenium.ts:50](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L50)
|
|
336
|
+
|
|
337
|
+
## Methods
|
|
338
|
+
|
|
339
|
+
### destroy
|
|
340
|
+
|
|
341
|
+
▸ **destroy**(): `Promise`<`void`\>
|
|
342
|
+
|
|
343
|
+
Executed when destroying this tester.
|
|
344
|
+
|
|
345
|
+
#### Returns
|
|
346
|
+
|
|
347
|
+
`Promise`<`void`\>
|
|
348
|
+
|
|
349
|
+
#### Overrides
|
|
350
|
+
|
|
351
|
+
[HotTester](HotTester.md).[destroy](HotTester.md#destroy)
|
|
352
|
+
|
|
353
|
+
#### Defined in
|
|
354
|
+
|
|
355
|
+
[HotTesterMochaSelenium.ts:112](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L112)
|
|
356
|
+
|
|
357
|
+
___
|
|
358
|
+
|
|
359
|
+
### execute
|
|
360
|
+
|
|
361
|
+
▸ **execute**(`mapName`): `Promise`<`void`\>
|
|
362
|
+
|
|
363
|
+
Execute the tests.
|
|
364
|
+
|
|
365
|
+
#### Parameters
|
|
366
|
+
|
|
367
|
+
| Name | Type |
|
|
368
|
+
| :------ | :------ |
|
|
369
|
+
| `mapName` | `string` |
|
|
370
|
+
|
|
371
|
+
#### Returns
|
|
372
|
+
|
|
373
|
+
`Promise`<`void`\>
|
|
374
|
+
|
|
375
|
+
#### Inherited from
|
|
376
|
+
|
|
377
|
+
[HotTester](HotTester.md).[execute](HotTester.md#execute)
|
|
378
|
+
|
|
379
|
+
#### Defined in
|
|
380
|
+
|
|
381
|
+
[HotTester.ts:562](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L562)
|
|
382
|
+
|
|
383
|
+
___
|
|
384
|
+
|
|
385
|
+
### executeCommand
|
|
386
|
+
|
|
387
|
+
▸ **executeCommand**(`destination`, `page`, `stop`, `cmd`): `Promise`<`void`\>
|
|
388
|
+
|
|
389
|
+
Execute a command.
|
|
390
|
+
|
|
391
|
+
#### Parameters
|
|
392
|
+
|
|
393
|
+
| Name | Type |
|
|
394
|
+
| :------ | :------ |
|
|
395
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
396
|
+
| `page` | [`HotTestPage`](../interfaces/HotTestPage.md) |
|
|
397
|
+
| `stop` | [`HotTestStop`](../interfaces/HotTestStop.md) |
|
|
398
|
+
| `cmd` | `string` |
|
|
399
|
+
|
|
400
|
+
#### Returns
|
|
401
|
+
|
|
402
|
+
`Promise`<`void`\>
|
|
403
|
+
|
|
404
|
+
#### Inherited from
|
|
405
|
+
|
|
406
|
+
[HotTester](HotTester.md).[executeCommand](HotTester.md#executecommand)
|
|
407
|
+
|
|
408
|
+
#### Defined in
|
|
409
|
+
|
|
410
|
+
[HotTester.ts:381](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L381)
|
|
411
|
+
|
|
412
|
+
___
|
|
413
|
+
|
|
414
|
+
### executeTestAPIPath
|
|
415
|
+
|
|
416
|
+
▸ **executeTestAPIPath**(`destination`, `method`, `testName`, `skipEventCalls?`, `continueWhenTestIsComplete?`): `Promise`<`any`\>
|
|
417
|
+
|
|
418
|
+
Execute an API's test path.
|
|
419
|
+
|
|
420
|
+
#### Parameters
|
|
421
|
+
|
|
422
|
+
| Name | Type | Default value |
|
|
423
|
+
| :------ | :------ | :------ |
|
|
424
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) | `undefined` |
|
|
425
|
+
| `method` | [`HotRouteMethod`](HotRouteMethod.md) | `undefined` |
|
|
426
|
+
| `testName` | `string` | `undefined` |
|
|
427
|
+
| `skipEventCalls` | `boolean` | `false` |
|
|
428
|
+
| `continueWhenTestIsComplete` | `boolean` | `false` |
|
|
429
|
+
|
|
430
|
+
#### Returns
|
|
431
|
+
|
|
432
|
+
`Promise`<`any`\>
|
|
433
|
+
|
|
434
|
+
#### Inherited from
|
|
435
|
+
|
|
436
|
+
[HotTester](HotTester.md).[executeTestAPIPath](HotTester.md#executetestapipath)
|
|
437
|
+
|
|
438
|
+
#### Defined in
|
|
439
|
+
|
|
440
|
+
[HotTester.ts:256](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L256)
|
|
441
|
+
|
|
442
|
+
___
|
|
443
|
+
|
|
444
|
+
### executeTestAPIPaths
|
|
445
|
+
|
|
446
|
+
▸ **executeTestAPIPaths**(`destination`): `Promise`<`any`[]\>
|
|
447
|
+
|
|
448
|
+
Execute all test paths in an API route.
|
|
449
|
+
|
|
450
|
+
**`fixme`** This needs a better implementation...
|
|
451
|
+
|
|
452
|
+
#### Parameters
|
|
453
|
+
|
|
454
|
+
| Name | Type |
|
|
455
|
+
| :------ | :------ |
|
|
456
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
457
|
+
|
|
458
|
+
#### Returns
|
|
459
|
+
|
|
460
|
+
`Promise`<`any`[]\>
|
|
461
|
+
|
|
462
|
+
#### Inherited from
|
|
463
|
+
|
|
464
|
+
[HotTester](HotTester.md).[executeTestAPIPaths](HotTester.md#executetestapipaths)
|
|
465
|
+
|
|
466
|
+
#### Defined in
|
|
467
|
+
|
|
468
|
+
[HotTester.ts:294](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L294)
|
|
469
|
+
|
|
470
|
+
___
|
|
471
|
+
|
|
472
|
+
### executeTestPagePath
|
|
473
|
+
|
|
474
|
+
▸ **executeTestPagePath**(`destination`, `stop`, `skipEventCalls?`, `continueWhenTestIsComplete?`): `Promise`<`any`\>
|
|
475
|
+
|
|
476
|
+
Execute a test page path.
|
|
477
|
+
|
|
478
|
+
#### Parameters
|
|
479
|
+
|
|
480
|
+
| Name | Type | Default value |
|
|
481
|
+
| :------ | :------ | :------ |
|
|
482
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) | `undefined` |
|
|
483
|
+
| `stop` | [`HotTestStop`](../interfaces/HotTestStop.md) | `undefined` |
|
|
484
|
+
| `skipEventCalls` | `boolean` | `false` |
|
|
485
|
+
| `continueWhenTestIsComplete` | `boolean` | `false` |
|
|
486
|
+
|
|
487
|
+
#### Returns
|
|
488
|
+
|
|
489
|
+
`Promise`<`any`\>
|
|
490
|
+
|
|
491
|
+
#### Inherited from
|
|
492
|
+
|
|
493
|
+
[HotTester](HotTester.md).[executeTestPagePath](HotTester.md#executetestpagepath)
|
|
494
|
+
|
|
495
|
+
#### Defined in
|
|
496
|
+
|
|
497
|
+
[HotTester.ts:329](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L329)
|
|
498
|
+
|
|
499
|
+
___
|
|
500
|
+
|
|
501
|
+
### executeTestPagePaths
|
|
502
|
+
|
|
503
|
+
▸ **executeTestPagePaths**(`destination`, `continueWhenTestIsComplete?`): `Promise`<`any`[]\>
|
|
504
|
+
|
|
505
|
+
Execute all test paths in a page.
|
|
506
|
+
|
|
507
|
+
#### Parameters
|
|
508
|
+
|
|
509
|
+
| Name | Type | Default value |
|
|
510
|
+
| :------ | :------ | :------ |
|
|
511
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) | `undefined` |
|
|
512
|
+
| `continueWhenTestIsComplete` | `boolean` | `false` |
|
|
513
|
+
|
|
514
|
+
#### Returns
|
|
515
|
+
|
|
516
|
+
`Promise`<`any`[]\>
|
|
517
|
+
|
|
518
|
+
#### Inherited from
|
|
519
|
+
|
|
520
|
+
[HotTester](HotTester.md).[executeTestPagePaths](HotTester.md#executetestpagepaths)
|
|
521
|
+
|
|
522
|
+
#### Defined in
|
|
523
|
+
|
|
524
|
+
[HotTester.ts:516](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L516)
|
|
525
|
+
|
|
526
|
+
___
|
|
527
|
+
|
|
528
|
+
### getTestPage
|
|
529
|
+
|
|
530
|
+
▸ **getTestPage**(`destination`): [`HotTestPage`](../interfaces/HotTestPage.md)
|
|
531
|
+
|
|
532
|
+
Get a test page.
|
|
533
|
+
|
|
534
|
+
#### Parameters
|
|
535
|
+
|
|
536
|
+
| Name | Type |
|
|
537
|
+
| :------ | :------ |
|
|
538
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
539
|
+
|
|
540
|
+
#### Returns
|
|
541
|
+
|
|
542
|
+
[`HotTestPage`](../interfaces/HotTestPage.md)
|
|
543
|
+
|
|
544
|
+
#### Inherited from
|
|
545
|
+
|
|
546
|
+
[HotTester](HotTester.md).[getTestPage](HotTester.md#gettestpage)
|
|
547
|
+
|
|
548
|
+
#### Defined in
|
|
549
|
+
|
|
550
|
+
[HotTester.ts:181](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L181)
|
|
551
|
+
|
|
552
|
+
___
|
|
553
|
+
|
|
554
|
+
### getTestPath
|
|
555
|
+
|
|
556
|
+
▸ **getTestPath**(`destination`, `pathName`): [`HotTestPath`](../modules.md#hottestpath)
|
|
557
|
+
|
|
558
|
+
Get a test path.
|
|
559
|
+
|
|
560
|
+
#### Parameters
|
|
561
|
+
|
|
562
|
+
| Name | Type |
|
|
563
|
+
| :------ | :------ |
|
|
564
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
565
|
+
| `pathName` | `string` |
|
|
566
|
+
|
|
567
|
+
#### Returns
|
|
568
|
+
|
|
569
|
+
[`HotTestPath`](../modules.md#hottestpath)
|
|
570
|
+
|
|
571
|
+
#### Inherited from
|
|
572
|
+
|
|
573
|
+
[HotTester](HotTester.md).[getTestPath](HotTester.md#gettestpath)
|
|
574
|
+
|
|
575
|
+
#### Defined in
|
|
576
|
+
|
|
577
|
+
[HotTester.ts:191](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L191)
|
|
578
|
+
|
|
579
|
+
___
|
|
580
|
+
|
|
581
|
+
### onCommand
|
|
582
|
+
|
|
583
|
+
▸ **onCommand**(`destination`, `page`, `stop`, `cmd`, `args`, `cmdFunc`): `Promise`<`void`\>
|
|
584
|
+
|
|
585
|
+
Executed when a command is executed.
|
|
586
|
+
|
|
587
|
+
#### Parameters
|
|
588
|
+
|
|
589
|
+
| Name | Type |
|
|
590
|
+
| :------ | :------ |
|
|
591
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
592
|
+
| `page` | [`HotTestPage`](../interfaces/HotTestPage.md) |
|
|
593
|
+
| `stop` | [`HotTestStop`](../interfaces/HotTestStop.md) |
|
|
594
|
+
| `cmd` | `string` |
|
|
595
|
+
| `args` | `string`[] |
|
|
596
|
+
| `cmdFunc` | (`cmdArgs`: `string`[]) => `Promise`<`void`\> |
|
|
597
|
+
|
|
598
|
+
#### Returns
|
|
599
|
+
|
|
600
|
+
`Promise`<`void`\>
|
|
601
|
+
|
|
602
|
+
#### Overrides
|
|
603
|
+
|
|
604
|
+
[HotTester](HotTester.md).[onCommand](HotTester.md#oncommand)
|
|
605
|
+
|
|
606
|
+
#### Defined in
|
|
607
|
+
|
|
608
|
+
[HotTesterMochaSelenium.ts:167](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L167)
|
|
609
|
+
|
|
610
|
+
___
|
|
611
|
+
|
|
612
|
+
### onExecute
|
|
613
|
+
|
|
614
|
+
▸ `Optional` **onExecute**(): `Promise`<`void`\>
|
|
615
|
+
|
|
616
|
+
Executed when this tester has been executed from the API.
|
|
617
|
+
|
|
618
|
+
#### Returns
|
|
619
|
+
|
|
620
|
+
`Promise`<`void`\>
|
|
621
|
+
|
|
622
|
+
#### Inherited from
|
|
623
|
+
|
|
624
|
+
[HotTester](HotTester.md).[onExecute](HotTester.md#onexecute)
|
|
625
|
+
|
|
626
|
+
#### Defined in
|
|
627
|
+
|
|
628
|
+
[HotTester.ts:163](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L163)
|
|
629
|
+
|
|
630
|
+
___
|
|
631
|
+
|
|
632
|
+
### onFinishedLoading
|
|
633
|
+
|
|
634
|
+
▸ `Optional` **onFinishedLoading**(): `Promise`<`void`\>
|
|
635
|
+
|
|
636
|
+
Executed when this tester has finished loading all data from the API.
|
|
637
|
+
|
|
638
|
+
#### Returns
|
|
639
|
+
|
|
640
|
+
`Promise`<`void`\>
|
|
641
|
+
|
|
642
|
+
#### Inherited from
|
|
643
|
+
|
|
644
|
+
[HotTester](HotTester.md).[onFinishedLoading](HotTester.md#onfinishedloading)
|
|
645
|
+
|
|
646
|
+
#### Defined in
|
|
647
|
+
|
|
648
|
+
[HotTester.ts:167](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L167)
|
|
649
|
+
|
|
650
|
+
___
|
|
651
|
+
|
|
652
|
+
### onTestAPIPathEnd
|
|
653
|
+
|
|
654
|
+
▸ `Optional` **onTestAPIPathEnd**(`destination`, `method`, `testName`, `result`, `continueWhenTestIsComplete?`): `Promise`<`void`\>
|
|
655
|
+
|
|
656
|
+
Executed when an API test path has ended.
|
|
657
|
+
|
|
658
|
+
#### Parameters
|
|
659
|
+
|
|
660
|
+
| Name | Type |
|
|
661
|
+
| :------ | :------ |
|
|
662
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
663
|
+
| `method` | [`HotRouteMethod`](HotRouteMethod.md) |
|
|
664
|
+
| `testName` | `string` |
|
|
665
|
+
| `result` | `any` |
|
|
666
|
+
| `continueWhenTestIsComplete?` | `boolean` |
|
|
667
|
+
|
|
668
|
+
#### Returns
|
|
669
|
+
|
|
670
|
+
`Promise`<`void`\>
|
|
671
|
+
|
|
672
|
+
#### Inherited from
|
|
673
|
+
|
|
674
|
+
[HotTester](HotTester.md).[onTestAPIPathEnd](HotTester.md#ontestapipathend)
|
|
675
|
+
|
|
676
|
+
#### Defined in
|
|
677
|
+
|
|
678
|
+
[HotTester.ts:137](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L137)
|
|
679
|
+
|
|
680
|
+
___
|
|
681
|
+
|
|
682
|
+
### onTestAPIPathStart
|
|
683
|
+
|
|
684
|
+
▸ `Optional` **onTestAPIPathStart**(`destination`, `method`, `testName`, `continueWhenTestIsComplete?`): `Promise`<`boolean`\>
|
|
685
|
+
|
|
686
|
+
Executed when an API test path has started. If this returns false,
|
|
687
|
+
the testPath will not be immediately executed afterwards.
|
|
688
|
+
|
|
689
|
+
#### Parameters
|
|
690
|
+
|
|
691
|
+
| Name | Type |
|
|
692
|
+
| :------ | :------ |
|
|
693
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
694
|
+
| `method` | [`HotRouteMethod`](HotRouteMethod.md) |
|
|
695
|
+
| `testName` | `string` |
|
|
696
|
+
| `continueWhenTestIsComplete?` | `boolean` |
|
|
697
|
+
|
|
698
|
+
#### Returns
|
|
699
|
+
|
|
700
|
+
`Promise`<`boolean`\>
|
|
701
|
+
|
|
702
|
+
#### Inherited from
|
|
703
|
+
|
|
704
|
+
[HotTester](HotTester.md).[onTestAPIPathStart](HotTester.md#ontestapipathstart)
|
|
705
|
+
|
|
706
|
+
#### Defined in
|
|
707
|
+
|
|
708
|
+
[HotTester.ts:132](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L132)
|
|
709
|
+
|
|
710
|
+
___
|
|
711
|
+
|
|
712
|
+
### onTestEnd
|
|
713
|
+
|
|
714
|
+
▸ **onTestEnd**(`destination`): `Promise`<`void`\>
|
|
715
|
+
|
|
716
|
+
Executed when tests are finished.
|
|
717
|
+
|
|
718
|
+
#### Parameters
|
|
719
|
+
|
|
720
|
+
| Name | Type |
|
|
721
|
+
| :------ | :------ |
|
|
722
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
723
|
+
|
|
724
|
+
#### Returns
|
|
725
|
+
|
|
726
|
+
`Promise`<`void`\>
|
|
727
|
+
|
|
728
|
+
#### Overrides
|
|
729
|
+
|
|
730
|
+
[HotTester](HotTester.md).[onTestEnd](HotTester.md#ontestend)
|
|
731
|
+
|
|
732
|
+
#### Defined in
|
|
733
|
+
|
|
734
|
+
[HotTesterMochaSelenium.ts:176](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L176)
|
|
735
|
+
|
|
736
|
+
___
|
|
737
|
+
|
|
738
|
+
### onTestPagePathEnd
|
|
739
|
+
|
|
740
|
+
▸ `Optional` **onTestPagePathEnd**(`destination`, `testPath`, `result`, `continueWhenTestIsComplete?`): `Promise`<`void`\>
|
|
741
|
+
|
|
742
|
+
Executed when a page test has ended.
|
|
743
|
+
|
|
744
|
+
#### Parameters
|
|
745
|
+
|
|
746
|
+
| Name | Type |
|
|
747
|
+
| :------ | :------ |
|
|
748
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) |
|
|
749
|
+
| `testPath` | [`HotTestPath`](../modules.md#hottestpath) |
|
|
750
|
+
| `result` | `any` |
|
|
751
|
+
| `continueWhenTestIsComplete?` | `boolean` |
|
|
752
|
+
|
|
753
|
+
#### Returns
|
|
754
|
+
|
|
755
|
+
`Promise`<`void`\>
|
|
756
|
+
|
|
757
|
+
#### Inherited from
|
|
758
|
+
|
|
759
|
+
[HotTester](HotTester.md).[onTestPagePathEnd](HotTester.md#ontestpagepathend)
|
|
760
|
+
|
|
761
|
+
#### Defined in
|
|
762
|
+
|
|
763
|
+
[HotTester.ts:148](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L148)
|
|
764
|
+
|
|
765
|
+
___
|
|
766
|
+
|
|
767
|
+
### onTestPagePathStart
|
|
768
|
+
|
|
769
|
+
▸ **onTestPagePathStart**(`destination`, `page`, `stop`, `continueWhenTestIsComplete?`): `Promise`<`boolean`\>
|
|
770
|
+
|
|
771
|
+
Executed when page tests are started. If this returns false, the testPath will not be
|
|
772
|
+
immediately executed afterwards.
|
|
773
|
+
|
|
774
|
+
#### Parameters
|
|
775
|
+
|
|
776
|
+
| Name | Type | Default value |
|
|
777
|
+
| :------ | :------ | :------ |
|
|
778
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) | `undefined` |
|
|
779
|
+
| `page` | [`HotTestPage`](../interfaces/HotTestPage.md) | `undefined` |
|
|
780
|
+
| `stop` | [`HotTestStop`](../interfaces/HotTestStop.md) | `undefined` |
|
|
781
|
+
| `continueWhenTestIsComplete` | `boolean` | `false` |
|
|
782
|
+
|
|
783
|
+
#### Returns
|
|
784
|
+
|
|
785
|
+
`Promise`<`boolean`\>
|
|
786
|
+
|
|
787
|
+
#### Overrides
|
|
788
|
+
|
|
789
|
+
[HotTester](HotTester.md).[onTestPagePathStart](HotTester.md#ontestpagepathstart)
|
|
790
|
+
|
|
791
|
+
#### Defined in
|
|
792
|
+
|
|
793
|
+
[HotTesterMochaSelenium.ts:138](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L138)
|
|
794
|
+
|
|
795
|
+
___
|
|
796
|
+
|
|
797
|
+
### onTestStart
|
|
798
|
+
|
|
799
|
+
▸ **onTestStart**(`destination`, `url`, `destinationKey?`): `Promise`<`boolean`\>
|
|
800
|
+
|
|
801
|
+
Executed when tests are started.
|
|
802
|
+
|
|
803
|
+
#### Parameters
|
|
804
|
+
|
|
805
|
+
| Name | Type | Default value |
|
|
806
|
+
| :------ | :------ | :------ |
|
|
807
|
+
| `destination` | [`HotDestination`](../interfaces/HotDestination.md) | `undefined` |
|
|
808
|
+
| `url` | `string` | `undefined` |
|
|
809
|
+
| `destinationKey` | `string` | `""` |
|
|
810
|
+
|
|
811
|
+
#### Returns
|
|
812
|
+
|
|
813
|
+
`Promise`<`boolean`\>
|
|
814
|
+
|
|
815
|
+
#### Overrides
|
|
816
|
+
|
|
817
|
+
[HotTester](HotTester.md).[onTestStart](HotTester.md#onteststart)
|
|
818
|
+
|
|
819
|
+
#### Defined in
|
|
820
|
+
|
|
821
|
+
[HotTesterMochaSelenium.ts:121](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L121)
|
|
822
|
+
|
|
823
|
+
___
|
|
824
|
+
|
|
825
|
+
### setup
|
|
826
|
+
|
|
827
|
+
▸ **setup**(`isWebRoute`, `url?`, `destinationKey?`): `Promise`<`void`\>
|
|
828
|
+
|
|
829
|
+
Setup the Mocha/Selenium frameworks.
|
|
830
|
+
|
|
831
|
+
#### Parameters
|
|
832
|
+
|
|
833
|
+
| Name | Type | Default value | Description |
|
|
834
|
+
| :------ | :------ | :------ | :------ |
|
|
835
|
+
| `isWebRoute` | `boolean` | `undefined` | - |
|
|
836
|
+
| `url` | `string` | `""` | If this is set, this url will be used instead of the url associated with this tester. |
|
|
837
|
+
| `destinationKey` | `string` | `""` | - |
|
|
838
|
+
|
|
839
|
+
#### Returns
|
|
840
|
+
|
|
841
|
+
`Promise`<`void`\>
|
|
842
|
+
|
|
843
|
+
#### Overrides
|
|
844
|
+
|
|
845
|
+
[HotTester](HotTester.md).[setup](HotTester.md#setup)
|
|
846
|
+
|
|
847
|
+
#### Defined in
|
|
848
|
+
|
|
849
|
+
[HotTesterMochaSelenium.ts:77](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTesterMochaSelenium.ts#L77)
|
|
850
|
+
|
|
851
|
+
___
|
|
852
|
+
|
|
853
|
+
### waitForData
|
|
854
|
+
|
|
855
|
+
▸ **waitForData**(): `Promise`<`void`\>
|
|
856
|
+
|
|
857
|
+
Waits for the API to finish loading all data.
|
|
858
|
+
|
|
859
|
+
#### Returns
|
|
860
|
+
|
|
861
|
+
`Promise`<`void`\>
|
|
862
|
+
|
|
863
|
+
#### Inherited from
|
|
864
|
+
|
|
865
|
+
[HotTester](HotTester.md).[waitForData](HotTester.md#waitfordata)
|
|
866
|
+
|
|
867
|
+
#### Defined in
|
|
868
|
+
|
|
869
|
+
[HotTester.ts:172](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L172)
|
|
870
|
+
|
|
871
|
+
___
|
|
872
|
+
|
|
873
|
+
### interpretDestination
|
|
874
|
+
|
|
875
|
+
▸ `Static` **interpretDestination**(`mapName`, `testDest`): [`HotDestination`](../interfaces/HotDestination.md)
|
|
876
|
+
|
|
877
|
+
Get a destination JSON object to use.
|
|
878
|
+
|
|
879
|
+
#### Parameters
|
|
880
|
+
|
|
881
|
+
| Name | Type |
|
|
882
|
+
| :------ | :------ |
|
|
883
|
+
| `mapName` | `string` |
|
|
884
|
+
| `testDest` | [`HotTestDestination`](HotTestDestination.md) |
|
|
885
|
+
|
|
886
|
+
#### Returns
|
|
887
|
+
|
|
888
|
+
[`HotDestination`](../interfaces/HotDestination.md)
|
|
889
|
+
|
|
890
|
+
#### Inherited from
|
|
891
|
+
|
|
892
|
+
[HotTester](HotTester.md).[interpretDestination](HotTester.md#interpretdestination)
|
|
893
|
+
|
|
894
|
+
#### Defined in
|
|
895
|
+
|
|
896
|
+
[HotTester.ts:201](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotTester.ts#L201)
|