8000 Add extra links to readme file · utestpy/python-page-object@d668631 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit d668631

Browse files
committed
Add extra links to readme file
1 parent c9c10e5 commit d668631

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
[![Build Status](https://travis-ci.org/vyahello/python-page-object.svg?branch=master)](https://travis-ci.org/vyahello/python-page-object)
22
[![Coverage Status](https://coveralls.io/repos/github/vyahello/python-page-object/badge.svg?branch=master)](https://coveralls.io/github/vyahello/python-page-object?branch=master)
3+
[![GitHub version](https://badge.fury.io/gh/vyahello%2Fpython-page-object.svg)](https://github.com/vyahello/python-page-object/releases)
34
[![GitHub watchers](https://img.shields.io/github/watchers/vyahello/python-page-object.svg)](https://GitHub.com/vyahello/python-page-object/graphs/watchers/)
45
[![Forks](https://img.shields.io/github/forks/vyahello/python-page-object)](https://github.com/vyahello/python-page-object/network/members)
56
[![Stars](https://img.shields.io/github/stars/vyahello/python-page-object)](https://github.com/vyahello/python-page-object/stargazers)
67
[![GitHub contributors](https://img.shields.io/github/contributors/vyahello/python-page-object.svg)](https://GitHub.com/vyahello/python-page-object/graphs/contributors/)
7-
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](LICENSE.md)
88

9-
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
9+
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](LICENSE.md)
1010
[![Hits-of-Code](https://hitsofcode.com/github/vyahello/python-page-object)](https://hitsofcode.com/view/github/vyahello/python-page-object)
11+
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
12+
1113

1214
# Python page object model
1315 10000
> Represent most popular OOD pattern for Web UI automation using python programming language.
1416
>
15-
> Automated tests are demonstrated on http://newtours.demoaut.com/mercurywelcome.php web app. Enjoy it!
17+
> Automated tests are demonstrated on http://newtours.demoaut.com/mercurywelcome.php web app.
18+
> Enjoy it!
1619
1720
**Tools**
18-
> - `python 3.6+`
19-
> - `selenium` and `pom`
20-
> - `pytest`
21-
> - `allure` reporting
22-
> - `travis CI`
21+
- python 3.6+
22+
- [selenium](https://selenium.dev/) and [pom](https://www.guru99.com/page-object-model-pom-page-factory-in-selenium-ultimate-guide.html)
23+
- [pytest](https://pypi.org/project/pytest/)
24+
- [allure](https://docs.qameta.io/allure/) reporting
25+
- [travis CI](https://travis-ci.org/)
2326

24-
In addition code is `fully type annotated` and covered with static code analysis tools (`black`, `flake8` and `mypy`).
27+
In addition code is **fully** [type annotated](https://docs.python.org/3/library/typing.html) and covered with static code analysis tools ([black](https://pypi.org/project/black/), [flake8](https://pypi.org/project/flake8/) and [mypy](https://pypi.org/project/mypy/)).
2528

2629
## Usage
2730
From the root directory of your shell run following commands:
@@ -49,15 +52,15 @@ Run a bunch of tests (e.g smoke) via following command:
4952

5053
After please open `test-report.html` file to see detailed testing report:
5154

52-
![Screenshot](image/report.png)
55+
![Screenshot](demoauto/image/report.png)
5356

5457
### Generate allure report
5558
Please follow next instruction to generate allure report (mac OS example):
5659
1. Update java via `brew cask install adoptopenjdk`
5760
2. Install allure via `brew install allure`
5861
3. Generate allure project via `allure serve report`
5962

60-
![Screenshot](image/allure.png)
63+
![Screenshot](demoauto/image/allure.png)
6164

6265
## Development notes
6366

File renamed without changes.
File renamed without changes.

run-tests.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ YELLOW_OUT="\033[1;33m"
55
NONE_OUT="\033[0m"
66

77

8-
function box {
9-
echo "----------------------------------"
10-
echo "----- Running $1 tests -----------"
11-
echo "----------------------------------"
8+
function pretty-output {
9+
t="$@xxxx"
10+
c=${replace:--}
11+
echo -e ${t//?/$c}
12+
echo -e "$c $@ $c"
13+
echo -e ${t//?/$c}
1214
}
1315

1416

@@ -56,9 +58,9 @@ function all {
5658
function run-tests {
5759
local arg=$1
5860
if [[ ${arg} == "smoke" ]] || [[ ${arg} == "unittest" ]];
59-
then box "${arg}" && pytest -m "${arg}"; clear-trash
61+
then pretty-output "Running ${arg} suite" && pytest -m "${arg}"; clear-trash
6062
elif [[ ${arg} == "all" ]]
61-
then box "${arg}" && pytest; clear-trash
63+
then pretty-output "Running ${arg} suite" && pytest; clear-trash
6264
elif [[ $# -eq 0 ]] || [[ ${arg} == "--help" ]] || [[ ${arg} == "-h" ]]
6365
then helper
6466
else raise-error-message "${arg}"

0 commit comments

Comments
 (0)
0