HotPage
Class: HotPage
A page to preprocess.
Implements​
IHotPage
Table of contents​
Constructors​
Properties​
Methods​
Constructors​
constructor​
• new HotPage(copy
)
Parameters​
Name | Type |
---|---|
copy | HotStaq | IHotPage |
Defined in​
Properties​
files​
• files: HotFile
[]
The name of the page. File ordering matters here. Every file is processed incrementally.
Implementation of​
IHotPage.files
Defined in​
name​
• name: string
The name of the page.
Implementation of​
IHotPage.name
Defined in​
processor​
• processor: HotStaq
The processor to use.
Implementation of​
IHotPage.processor
Defined in​
route​
• route: string
The route used to get to this page.
Implementation of​
IHotPage.route
Defined in​
testElements​
• testElements: Object
The elements to test on this page.
Index signature​
â–ª [name: string
]: HotTestElement
Implementation of​
IHotPage.testElements
Defined in​
testPaths​
• testPaths: Object
The test paths to test on this page.
Index signature​
â–ª [name: string
]: HotTestPath
Implementation of​
IHotPage.testPaths
Defined in​
testerMap​
• testerMap: string
The associated tester map.
Implementation of​
IHotPage.testerMap
Defined in​
testerName​
• testerName: string
The associated tester name.
Implementation of​
IHotPage.testerName
Defined in​
Methods​
addFile​
â–¸ addFile(file
): Promise
<void
>
Add a file to process. It's recommend to load the file prior to adding it to a page if it's about to be used.
Parameters​
Name | Type |
---|---|
file | HotFile |
Returns​
Promise
<void
>
Defined in​
addTestElement​
â–¸ addTestElement(elm
): void
Add a test element.
Parameters​
Name | Type |
---|---|
elm | HotTestElement |
Returns​
void
Defined in​
createTestPath​
â–¸ createTestPath(pathName
, driverFunc
): void
Create a test path.
Parameters​
Name | Type |
---|---|
pathName | string |
driverFunc | HotTestPath |
Returns​
void
Defined in​
getAPI​
â–¸ getAPI(): HotAPI
Get the API associated with this page.
Returns​
Defined in​
getTestElement​
â–¸ getTestElement(name
): HotTestElement
Get a test element.
Parameters​
Name | Type |
---|---|
name | string |
Returns​
Defined in​
getTesterAPI​
â–¸ getTesterAPI(): HotAPI
Get the tester API associated with this page.
Returns​
Defined in​
load​
â–¸ load(file
): Promise
<void
>
Add all files in the page. Could decrease page loading performance. It's recommend to load the file prior to adding it to a page.
Parameters​
Name | Type |
---|---|
file | HotFile |
Returns​
Promise
<void
>
Defined in​
process​
â–¸ process(args?
): Promise
<string
>
Process a page and get the result.
Parameters​
Name | Type | Default value |
---|---|---|
args | any | null |
Returns​
Promise
<string
>