Environment and preconditions
Development Tools: pycharm
Operating System: win10
Development Language: python3.6
Use library: pytest4.0, pytest-allure-adaptor
Be careful not to install allure-pytest the library, or option names { 'alluredir'} already added error occurs
1, the installation PowerShell (win10 comes with, other systems installable)
2, open PowerShell, enter the command:
set-executionpolicy remotesigned -s cu
Then enter
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Enter scoop scoop help to see a list of commands
Appear as text instructions scoop successful installation.
3, the input command window PowerShell scoop install allure
4, into the storage with directory files py embodiment, performed
py.test --alluredir=reports
Stored in a directory will be one more example of the reports folder, there is a variety of txt files and json
Then perform
allure generate reports
Storage use case catalog will be one more allure-reports folder, update allure-reports using the contents of a folder
1
|
allure generate reports
-
-
clean
|
Note, open the index.html file with Firefox, do not use chrome, ie the browser open, open the effects shots are as follows: