Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
api_test
Commits
b759cb78
Commit
b759cb78
authored
Nov 11, 2024
by
李江源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构项目
parent
8e618cb3
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
21 deletions
+21
-21
ApiAutoTest/common/db.py
+2
-2
ApiAutoTest/common/read_basic_ini.py
+1
-1
ApiAutoTest/common/read_excel.py
+5
-5
ApiAutoTest/common/read_json.py
+1
-1
ApiAutoTest/common/read_user_ini.py
+1
-1
ApiAutoTest/requests_method/requests_method.py
+3
-3
ApiAutoTest/test_case/test_demo/conftest.py
+1
-1
ApiAutoTest/test_case/test_demo/test_bpm.py
+3
-3
ApiAutoTest/test_case/test_zs/conftest.py
+1
-1
ApiAutoTest/test_case/test_zs/test_bpm.py
+3
-3
No files found.
ApiAutoTest/common/db.py
View file @
b759cb78
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import
pymysql
import
pymysql
from
MyApiAutoTest_v3_3
import
logor
,
log
from
ApiAutoTest
import
logor
,
log
from
MyApiAutoTest_v3_3
.common.read_basic_ini
import
ReadBasicIni
from
ApiAutoTest
.common.read_basic_ini
import
ReadBasicIni
class
DB
:
class
DB
:
...
...
ApiAutoTest/common/read_basic_ini.py
View file @
b759cb78
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
configparser
import
configparser
import
os.path
import
os.path
from
MyApiAutoTest_v3_3
import
log
from
ApiAutoTest
import
log
class
ReadBasicIni
:
class
ReadBasicIni
:
...
...
ApiAutoTest/common/read_excel.py
View file @
b759cb78
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import
openpyxl
import
openpyxl
from
MyApiAutoTest_v3_3
import
log
from
ApiAutoTest
import
log
from
MyApiAutoTest_v3_3
.common.read_basic_ini
import
ReadBasicIni
from
ApiAutoTest
.common.read_basic_ini
import
ReadBasicIni
from
MyApiAutoTest_v3_3
.common.read_json
import
read_json
from
ApiAutoTest
.common.read_json
import
read_json
from
MyApiAutoTest_v3_3
.common.read_user_ini
import
ReadUserIni
from
ApiAutoTest
.common.read_user_ini
import
ReadUserIni
from
MyApiAutoTest_v3_3
.data_config.settings
import
*
from
ApiAutoTest
.data_config.settings
import
*
class
ReadExcel
:
class
ReadExcel
:
...
...
ApiAutoTest/common/read_json.py
View file @
b759cb78
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
json
import
json
import
os.path
import
os.path
from
MyApiAutoTest_v3_3
import
log
,
logor
from
ApiAutoTest
import
log
,
logor
@log
@log
...
...
ApiAutoTest/common/read_user_ini.py
View file @
b759cb78
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
configparser
import
configparser
import
os.path
import
os.path
from
MyApiAutoTest_v3_3
import
log
from
ApiAutoTest
import
log
class
ReadUserIni
:
class
ReadUserIni
:
...
...
ApiAutoTest/requests_method/requests_method.py
View file @
b759cb78
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import
requests.sessions
import
requests.sessions
from
MyApiAutoTest_v3_3
import
log
from
ApiAutoTest
import
log
from
MyApiAutoTest_v3_3
.common.db
import
DB
from
ApiAutoTest
.common.db
import
DB
from
MyApiAutoTest_v3_3
.common.read_basic_ini
import
ReadBasicIni
from
ApiAutoTest
.common.read_basic_ini
import
ReadBasicIni
class
RequestsMethod
:
class
RequestsMethod
:
...
...
ApiAutoTest/test_case/test_demo/conftest.py
View file @
b759cb78
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import
pytest
import
pytest
from
MyApiAutoTest_v3_3
.requests_method.requests_method
import
RequestsMethod
from
ApiAutoTest
.requests_method.requests_method
import
RequestsMethod
# 会话级别的,一个程序只执行一次
# 会话级别的,一个程序只执行一次
@pytest.fixture
(
scope
=
"session"
)
@pytest.fixture
(
scope
=
"session"
)
...
...
ApiAutoTest/test_case/test_demo/test_bpm.py
View file @
b759cb78
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
import
allure
import
allure
import
pytest
import
pytest
from
MyApiAutoTest_v3_3
import
logor
from
ApiAutoTest
import
logor
from
MyApiAutoTest_v3_3
.common.read_excel
import
ReadExcel
from
ApiAutoTest
.common.read_excel
import
ReadExcel
from
MyApiAutoTest_v3_3
.test_case.test_demo
import
USERNAME
from
ApiAutoTest
.test_case.test_demo
import
USERNAME
class
TestBPM
:
class
TestBPM
:
...
...
ApiAutoTest/test_case/test_zs/conftest.py
View file @
b759cb78
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
# ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
import
pytest
import
pytest
from
MyApiAutoTest_v3_3
.requests_method.requests_method
import
RequestsMethod
from
ApiAutoTest
.requests_method.requests_method
import
RequestsMethod
# 会话级别的,一个程序只执行一次
# 会话级别的,一个程序只执行一次
@pytest.fixture
(
scope
=
"session"
)
@pytest.fixture
(
scope
=
"session"
)
...
...
ApiAutoTest/test_case/test_zs/test_bpm.py
View file @
b759cb78
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
import
allure
import
allure
import
pytest
import
pytest
from
MyApiAutoTest_v3_3
import
logor
from
ApiAutoTest
import
logor
from
MyApiAutoTest_v3_3
.common.read_excel
import
ReadExcel
from
ApiAutoTest
.common.read_excel
import
ReadExcel
from
MyApiAutoTest_v3_3
.test_case.test_zs
import
USERNAME
from
ApiAutoTest
.test_case.test_zs
import
USERNAME
class
TestBPM
:
class
TestBPM
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment