Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
willdesk_apiauto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
桦生 詹
willdesk_apiauto
Commits
37d3ea38
Commit
37d3ea38
authored
Apr 15, 2024
by
zhanhuasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
d83d8b04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
TestData/customer/customer_test_data.py
TestData/customer/customer_test_data.py
+2
-1
Utils/mockData_handler.py
Utils/mockData_handler.py
+11
-0
No files found.
TestData/customer/customer_test_data.py
View file @
37d3ea38
from
Utils.global_variate
import
Global
from
Utils.global_variate
import
Global
from
Utils.mockData_handler
import
data_handler
class
customerData
(
Global
):
class
customerData
(
Global
):
customer_test_name
=
'autotest_customer'
customer_test_name
=
'autotest_customer'
customer_test_email
=
'autotest_customer@gmail.com'
customer_test_email
=
'autotest_customer@gmail.com'
customer_test_phone
=
'13611122222'
customer_test_phone
=
data_handler
.
phone
()
customer_test_note
=
'autotest_note_msg'
customer_test_note
=
'autotest_note_msg'
Utils/mockData_handler.py
0 → 100644
View file @
37d3ea38
import
random
class
MockData
:
def
phone
(
self
):
number
=
'13'
+
str
(
random
.
randint
(
100000000
,
999999999
))
return
number
data_handler
=
MockData
()
\ No newline at end of file
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