Skip to content

About

Show pabot thread usage trends

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

pabotscope

Show pabot thread usage trends

Usage

After you have run pabot, pabotscope reads the resulting output.xml and prints a graph showing how many processes are running in parallel. This can be identify if end of testrun has long tests that making test run longer than necessary.

pabot --processes 4  demo
<pabot output removed>

python src/pabotscope.py              # reads output.xml from current directory
python src/pabotscope.py path/to/output.xml

 ▓▓▓▓▓▓
 ▓▓▓▓▓▓
 ▓▓▓▓▓▓
 ▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓

Top Longest Running Tests:
--------------------------------------------------
Test Name                           Duration (s)
--------------------------------------------------
Demo.Test4                                 10.30
Demo.Test2                                  6.40
Demo.Test3                                  4.40
Demo.Test1                                  3.40
Demo.Test0                                  1.40
Demo.Test5                                  1.30
Demo.Test6                                  1.30
Demo.Test7                                  1.30
Demo.Test8                                  1.30
Demo.Test9                                  1.30
--------------------------------------------------

Pabot's console output can still be used instead of output.xml with the --text option:

pabot --processes 4  demo 2>&1 | tee pabot.log
python src/pabotscope.py --text pabot.log

About

Show pabot thread usage trends

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages