Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jk_interface_test
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangqiang
jk_interface_test
Commits
96a48b36
Commit
96a48b36
authored
Apr 16, 2021
by
小刘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选课中心班级详情测试用例
parent
5a80c2c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
test_auth_choose_class.py
...iarch_app/test_xin_choose_class/test_auth_choose_class.py
+6
-4
test_auth_choose_class_details.py
...p/test_xin_choose_class/test_auth_choose_class_details.py
+0
-0
test_auth_update_choose_class.py
...pp/test_xin_choose_class/test_auth_update_choose_class.py
+1
-1
No files found.
script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class.py
View file @
96a48b36
...
@@ -360,7 +360,7 @@ class TestChooseClasses:
...
@@ -360,7 +360,7 @@ class TestChooseClasses:
time
.
sleep
(
2
)
time
.
sleep
(
2
)
choose_data
=
ChooseClasses
(
server
=
self
.
server
,
studentId
=
userId
,
schoolAreaId
=
self
.
schoolArea
)
.
choose_class
()
choose_data
=
ChooseClasses
(
server
=
self
.
server
,
studentId
=
userId
,
schoolAreaId
=
self
.
schoolArea
)
.
choose_class
()
with
assume
:
assert
choose_data
[
'code'
]
==
0
with
assume
:
assert
choose_data
[
'code'
]
==
0
with
assume
:
assert
'极趣班'
not
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'极趣班'
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'专题'
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'专题'
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'新生'
not
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'新生'
not
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'一对一定制班'
not
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
with
assume
:
assert
'一对一定制班'
not
in
jsonpath
.
jsonpath
(
choose_data
,
'$..classType'
)
...
@@ -438,7 +438,7 @@ class TestChooseClasses:
...
@@ -438,7 +438,7 @@ class TestChooseClasses:
def
test_choose_one_buy_class_two_show
(
self
):
def
test_choose_one_buy_class_two_show
(
self
):
userId_list
=
[]
userId_list
=
[]
for
student_count
in
range
(
2
):
for
student_count
in
range
(
2
):
studentPho
=
'1
783'
+
str
(
time
.
time
())
.
split
(
'.'
)[
1
]
studentPho
=
'1
67'
+
datetime
.
datetime
.
now
()
.
strftime
(
'
%
d
%
H
%
M
%
S'
)
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId_list
.
append
(
userId
)
userId_list
.
append
(
userId
)
...
@@ -479,10 +479,11 @@ class TestChooseClasses:
...
@@ -479,10 +479,11 @@ class TestChooseClasses:
def
test_choose_one_buy_now_class_two_not_show
(
self
):
def
test_choose_one_buy_now_class_two_not_show
(
self
):
userId_list
=
[]
userId_list
=
[]
for
student_count
in
range
(
2
):
for
student_count
in
range
(
2
):
studentPho
=
'17
82'
+
str
(
time
.
time
())
.
split
(
'.'
)[
1
]
studentPho
=
'17
7'
+
datetime
.
datetime
.
now
()
.
strftime
(
'
%
d
%
H
%
M
%
S'
)
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId_list
.
append
(
userId
)
userId_list
.
append
(
userId
)
time
.
sleep
(
0.5
)
course_id
=
CreateCourse
(
server
=
self
.
server
,
course_id
=
CreateCourse
(
server
=
self
.
server
,
productType
=
'主线课程'
,
productType
=
'主线课程'
,
classType
=
'新生'
,
classType
=
'新生'
,
...
@@ -518,10 +519,11 @@ class TestChooseClasses:
...
@@ -518,10 +519,11 @@ class TestChooseClasses:
def
test_choose_one_buy_groove_two_show
(
self
):
def
test_choose_one_buy_groove_two_show
(
self
):
userId_list
=
[]
userId_list
=
[]
for
student_count
in
range
(
2
):
for
student_count
in
range
(
2
):
studentPho
=
'1
731'
+
str
(
time
.
time
())
.
split
(
'.'
)[
1
]
studentPho
=
'1
88'
+
datetime
.
datetime
.
now
()
.
strftime
(
'
%
d
%
H
%
M
%
S'
)
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
students_data
=
CreateStudent
(
server
=
self
.
server
,
contactInfo
=
studentPho
)
.
create_student
()
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId
=
students_data
[
'data'
][
'list'
][
0
][
'studentId'
]
userId_list
.
append
(
userId
)
userId_list
.
append
(
userId
)
time
.
sleep
(
0.5
)
class_list
=
[]
class_list
=
[]
for
class_count
in
range
(
2
):
for
class_count
in
range
(
2
):
course_id
=
CreateCourse
(
server
=
self
.
server
,
course_id
=
CreateCourse
(
server
=
self
.
server
,
...
...
script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class_details.py
View file @
96a48b36
This diff is collapsed.
Click to expand it.
script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_update_choose_class.py
View file @
96a48b36
...
@@ -179,4 +179,4 @@ class TestAuthUpdateChooseClass:
...
@@ -179,4 +179,4 @@ class TestAuthUpdateChooseClass:
with
assume
:
assert
choose_data
.
get
(
'code'
)
==
0
with
assume
:
assert
choose_data
.
get
(
'code'
)
==
0
with
assume
:
assert
assert_data
.
get
(
'price'
)
==
100.0
with
assume
:
assert
assert_data
.
get
(
'price'
)
==
100.0
with
assume
:
assert
assert_data
.
get
(
'amount'
)
==
100.0
with
assume
:
assert
assert_data
.
get
(
'amount'
)
==
100.0
with
assume
:
assert
assert_data
.
get
(
'
1000
'
)
==
1000.0
with
assume
:
assert
assert_data
.
get
(
'
normalPrice
'
)
==
1000.0
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