Skip to content

Commit c98df78

Browse files
author
Cleverson Sampaio
committed
feat(structural): basic framework for selenium library extension
0 parents  commit c98df78

File tree

7 files changed

+231
-0
lines changed

7 files changed

+231
-0
lines changed

.gitignore

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
test/results/
103+
.pypirc
104+
.idea/workspace.xml
105+
.idea/modules.xml
106+
.idea/misc.xml
107+
.idea/SeleniumLibraryExtension.iml
108+
109+
# Robot Framework
110+
results/
111+
112+
# NPM
113+
node_modules/
114+
package-lock.json

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Cléverson Sampaio
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SeleniumLibraryExtends
2+
3+
Selenium library keyword extension to support Behavior Driven Development

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "seleniumlibraryextends",
3+
"version": "0.0.0",
4+
"description": "Selenium library keyword extension to support Behavior Driven Development",
5+
"main": "index.js",
6+
"scripts": {
7+
"commit": "cz"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/dbspt/SeleniumLibraryExtends.git"
12+
},
13+
"keywords": ["Robot Framework, Selenium Library"],
14+
"author": {
15+
"name": "Cléverson Sampaio",
16+
"email": "cleverson@sampaio.dev.br"
17+
},
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com/dbspt/SeleniumLibraryExtends/issues"
21+
},
22+
"homepage": "https://github.com/dbspt/SeleniumLibraryExtends#readme",
23+
"devDependencies": {
24+
"commitizen": "^4.2.4",
25+
"cz-conventional-changelog": "^3.3.0"
26+
},
27+
"config": {
28+
"commitizen": {
29+
"path": "./node_modules/cz-conventional-changelog"
30+
}
31+
}
32+
}

setup.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright (c) 2022 Cléverson Sampaio <cleverson@sampaio.dev.br>
5+
6+
import re
7+
from os.path import abspath, dirname, join
8+
from setuptools import setup, find_packages
9+
10+
CURDIR = dirname(abspath(__file__))
11+
12+
with open(join(CURDIR, 'src', 'SeleniumLibraryExtends', 'version.py')) as f:
13+
VERSION = re.search("\nVERSION = '(.*)'", f.read()).group(1)
14+
15+
setup(
16+
# Inclui todos os outros arquivos que estão dentro da pasta do seu projeto
17+
include_package_data = True,
18+
# Nome do seu pacote
19+
name = 'SeleniumLibraryExtends',
20+
# Versão do projeto
21+
version = VERSION,
22+
# Descrição do seu pacote
23+
description = 'Selenium Library Extension for new keywords',
24+
# Site para seu projeto ou repositório do Github
25+
url = "https://github.com/dbspt/SeleniumLibraryExtends.git",
26+
# Nome do Criador
27+
author = 'Cléverson Sampaio',
28+
# Endereço de e-mail do criador
29+
author_email = 'cleverson@sampaio.dev.br',
30+
# Projetos que você deseja incluir em seu pacote
31+
packages = find_packages('src'),
32+
# Diretório do seu pacote
33+
package_dir = {'': 'src'},
34+
# Dependências/outros módulos necessários para o seu pacote funcionar
35+
install_requires = ['robotframework', 'robotframework-seleniumlibrary'],
36+
# Descrição detalhada do seu pacote
37+
long_description = 'Selenium library keyword extension to support Behavior Driven Development',
38+
# Formato da sua descrição detalhada
39+
long_description_content_type = "text/markdown",
40+
# Classificadores permitem que seu pacote seja categorizado com base na funcionalidade
41+
# Pode ser encontrado em https://pypi.org/classifiers
42+
classifiers = [
43+
"Development Status :: 1 - Planning",
44+
"Programming Language :: Python",
45+
"Programming Language :: Python :: 3",
46+
"Operating System :: OS Independent",
47+
"Topic :: Software Development :: Testing",
48+
"Framework :: Robot Framework",
49+
"Framework :: Robot Framework :: Library"
50+
]
51+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright (c) 2022 Cléverson Sampaio <cleverson@sampaio.dev.br>
5+
6+
from SeleniumLibraryExtends.version import VERSION
7+
8+
class SeleniumLibraryExtends():
9+
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
10+
ROBOT_LIBRARY_VERSION = VERSION
11+
12+
def __init__(self):
13+
pass
14+
15+
if __name__ == '__main__':
16+
lib = SeleniumLibraryExtends()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright (c) 2022 Cléverson Sampaio <cleverson@sampaio.dev.br>
5+
6+
VERSION = '0.0.0'

0 commit comments

Comments
 (0)