This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +45
-3
lines changed
Expand file tree Collapse file tree 4 files changed +45
-3
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ node_modules/
66# Exclude tsc generated files
77dist /
88
9- yarn.lock
9+ yarn.lock
10+
11+ example /test-report.xml
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ describe('Timeout example', () => {
55 // There are two global timers: waitforPageTimeout and waitforTimeout
66 // waitforTimeout is used by By2. When call any WebElement function of By2, it loops until the element is located
77 // waitforPageTimeout is used by PageObject. It defined the default timeout for waitForPageLoaded.
8-
8+ test ( "Timer testing" , ( ) => {
99 Config . setWaitForPageTimeout ( 100 ) ;
1010 expect ( Config . getWaitForPageTimeout ( ) ) . toBe ( 100 ) ;
1111
1212 Config . setWaitForTimeout ( 100 ) ;
1313 expect ( Config . getWaitForTimeout ( ) ) . toBe ( 100 ) ;
14+ } ) ;
1415} ) ;
Original file line number Diff line number Diff line change 1+ trigger :
2+ - master
3+
4+ pool :
5+ vmImage : ' windows-2019'
6+
7+ steps :
8+ - script : echo Hello, world!
9+ displayName : ' Run example'
10+
11+ - task : CmdLine@2
12+ displayName : yarn install
13+ inputs :
14+ script : yarn install
15+ workingDirectory : example
16+
17+ - task : Windows Application Driver@0
18+ inputs :
19+ OperationType : ' Start'
20+ WADArguments : ' 127.0.0.1 4723/wd/hub'
21+
22+ - task : CmdLine@2
23+ displayName : yarn run jest
24+ inputs :
25+ script : yarn run jest
26+ workingDirectory : example
27+
28+ - task : Windows Application Driver@0
29+ inputs :
30+ OperationType : ' Stop'
31+
32+ - task : PublishTestResults@2
33+ inputs :
34+ testResultsFormat : ' JUnit'
35+ testResultsFiles : ' **/TEST-*.xml'
Original file line number Diff line number Diff line change 2121 "selenium-appium" : " ^0.0.11" ,
2222 "selenium-webdriver" : " ^4.0.0-alpha.4" ,
2323 "typescript" : " ^3.5.3" ,
24- "appium" : " 1.14.2"
24+ "appium" : " 1.14.2" ,
25+ "jest-junit-reporter" : " 1.1.0"
26+ },
27+ "jest" : {
28+ "testResultsProcessor" : " ./node_modules/jest-junit-reporter"
2529 }
2630}
You can’t perform that action at this time.
0 commit comments