diff --git a/TestData/customer/customer_test_data.py b/TestData/customer/customer_test_data.py index bc6bed36c46ab25cad54d9b1da7bff78c753698e..09d94b774e6f1f9f1349449523e0d7e733188c1b 100644 --- a/TestData/customer/customer_test_data.py +++ b/TestData/customer/customer_test_data.py @@ -1,7 +1,8 @@ from Utils.global_variate import Global +from Utils.mockData_handler import data_handler class customerData(Global): customer_test_name = 'autotest_customer' customer_test_email = 'autotest_customer@gmail.com' - customer_test_phone = '13611122222' + customer_test_phone = data_handler.phone() customer_test_note = 'autotest_note_msg' diff --git a/Utils/mockData_handler.py b/Utils/mockData_handler.py new file mode 100644 index 0000000000000000000000000000000000000000..688f3dd069f7ba7fa6ccf2167d23123baacbdb47 --- /dev/null +++ b/Utils/mockData_handler.py @@ -0,0 +1,11 @@ +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