cic-internal-integration/apps/cic-ussd/tests/integration/test_profile_management.tavern.yaml

853 lines
30 KiB
YAML
Raw Normal View History

2021-06-03 15:40:51 +02:00
test_name: Test editing account profile data.
marks:
- usefixtures:
- server_url
- token_symbol
- first_account_pin_number
- second_account_pin_number
- first_account_phone_number
- second_account_phone_number
- first_account_family_name
- second_account_family_name
- first_account_given_name
- second_account_given_name
- first_account_location
- second_account_location
- first_account_product
- second_account_product
- first_profile_management_session_id
- second_profile_management_session_id
- third
stages:
- name: Profile management start menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
text: ""
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '51'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
- name: Profile management start menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
text: ""
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '56'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Salio 42.00 {token_symbol}\n1. Tuma\n2. Akaunti yangu\n3. Usaidizi"
- name: Account management menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
text: "2"
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '105'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON My account\n1. My profile\n2. Change language\n3. Check balance\n4. Check statement\n5. Change PIN\n0. Back"
- name: Account management menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
text: "2"
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '148'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
- name: Profile management menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
text: "2*1"
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '115'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit age\n4. Edit location\n5. Edit products\n6. View my profile\n0. Back"
2021-06-03 15:40:51 +02:00
- name: Profile management menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
text: "2*1"
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '117'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wangu\n1. Weka jina\n2. Weka jinsia\n3. Weka umri\n4. Weka eneo\n5. Weka bidhaa\n6. Angalia wasifu wako\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Enter pin to view profile [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '33'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Please enter your PIN\n0. Back"
- name: Enter pin to view profile [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '36'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Tafadhali weka PIN yako\n0. Nyuma"
- name: Display profile [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Your details are:\n Name: Not provided\n Gender: Not provided\n Age: Not provided\n Location: Not provided\n You sell: Not provided\n0. Back"
2021-06-03 15:40:51 +02:00
- name: Display profile [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wako una maelezo yafuatayo:\n Jina: Haijawekwa\n Jinsia: Haijawekwa\n Umri: Haijawekwa\n Eneo: Haijawekwa\n Unauza: Haijawekwa\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Second profile management menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '115'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit age\n4. Edit location\n5. Edit products\n6. View my profile\n0. Back"
2021-06-03 15:40:51 +02:00
- name: Second profile management menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '117'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wangu\n1. Weka jina\n2. Weka jinsia\n3. Weka umri\n4. Weka eneo\n5. Weka bidhaa\n6. Angalia wasifu wako\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Edit name [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '28'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Enter first name\n0. Back"
- name: Edit name [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '37'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Weka jina lako la kwanza\n0. Nyuma"
- name: Enter given name [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '29'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Enter family name\n0. Back"
- name: Enter given name [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{second_profile_management_session_id}"
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '37'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Weka jina lako la mwisho\n0. Nyuma"
- name: Enter family name [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
sessionId: "{first_profile_management_session_id}"
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '51'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Enter gender\n1. Male\n2. Female\n3. Other\n0. Back"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Enter family name [second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '64'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Weka jinsia yako\n1. Mwanaume\n2. Mwanamke\n3. Nyngine\n0. Nyuma"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Select gender [Male - first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '31'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Enter year of birth\n0. Back"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Select gender [Female - second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '35'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Weka mwaka wa kuzaliwa\n0. Nyuma"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Enter age [1993 - first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '31'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Enter your location\n0. Back"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Enter age [1974 - second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '27'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Weka eneo lako\n0. Nyuma"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Enter location [first_account_location - first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '55'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Please enter a product or service you offer\n0. Back"
2021-06-30 16:27:56 +02:00
- name: Enter location [second_account_location - second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '42'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Weka bidhaa ama huduma unauza\n0. Nyuma"
2021-06-30 16:27:56 +02:00
- name: Enter product [first_account_product - first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '51'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
2021-06-30 16:27:56 +02:00
- name: Enter product [second_account_product - second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '56'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Salio 42.00 {token_symbol}\n1. Tuma\n2. Akaunti yangu\n3. Usaidizi"
2021-06-30 16:27:56 +02:00
- name: Second account management menu [first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '105'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON My account\n1. My profile\n2. Change language\n3. Check balance\n4. Check statement\n5. Change PIN\n0. Back"
2021-06-30 16:27:56 +02:00
- name: Second account management menu [second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '148'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
2021-06-30 16:27:56 +02:00
- name: Second profile management menu [first account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2*1"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '115'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit age\n4. Edit location\n5. Edit products\n6. View my profile\n0. Back"
2021-06-03 15:40:51 +02:00
2021-06-30 16:27:56 +02:00
- name: Second profile management menu [second account]
2021-06-03 15:40:51 +02:00
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2*1"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '117'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wangu\n1. Weka jina\n2. Weka jinsia\n3. Weka umri\n4. Weka eneo\n5. Weka bidhaa\n6. Angalia wasifu wako\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Second enter pin to view profile [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2*1*6"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '33'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Please enter your PIN\n0. Back"
- name: Second enter pin to view profile [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2*1*6"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '36'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Tafadhali weka PIN yako\n0. Nyuma"
- name: Second display profile [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2*1*6*{first_account_pin_number}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Your details are:\n Name: {first_account_given_name} {first_account_family_name}\n Gender: Male\n Age: 28\n Location: {first_account_location}\n You sell: {first_account_product}\n0. Back"
2021-06-03 15:40:51 +02:00
- name: Second display profile [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2*1*6*{second_account_pin_number}"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wako una maelezo yafuatayo:\n Jina: {second_account_given_name} {second_account_family_name}\n Jinsia: Mwanamke\n Umri: 47\n Eneo: {second_account_location}\n Unauza: {second_account_product}\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Return to profile management menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2*1*6*{first_account_pin_number}*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '115'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit age\n4. Edit location\n5. Edit products\n6. View my profile\n0. Back"
2021-06-03 15:40:51 +02:00
- name: Return to profile management menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2*1*6*{second_account_pin_number}*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
2021-06-30 16:27:56 +02:00
Content-Length: '117'
2021-06-03 15:40:51 +02:00
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
2021-06-30 16:27:56 +02:00
expected_response: "CON Wasifu wangu\n1. Weka jina\n2. Weka jinsia\n3. Weka umri\n4. Weka eneo\n5. Weka bidhaa\n6. Angalia wasifu wako\n0. Nyuma"
2021-06-03 15:40:51 +02:00
- name: Resume start menu [first account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{first_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{first_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{first_account_pin_number}*0*1*{first_account_given_name}*{first_account_family_name}*1*1993*{first_account_location}*{first_account_product}*2*1*6*{first_account_pin_number}*0*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '51'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
- name: Resume start menu [second account]
request:
url: "{server_url}"
data:
serviceCode: "*483*46#"
2021-06-30 16:27:56 +02:00
sessionId: "{second_profile_management_session_id}"
2021-06-03 15:40:51 +02:00
phoneNumber: "{second_account_phone_number}"
2021-06-30 16:27:56 +02:00
text: "2*1*6*{second_account_pin_number}*0*1*{second_account_given_name}*{second_account_family_name}*2*1974*{second_account_location}*{second_account_product}*2*1*6*{second_account_pin_number}*0*0"
2021-06-03 15:40:51 +02:00
headers:
content-type: "application/x-www-form-urlencoded"
method: POST
response:
status_code:
- 200
headers:
Content-Length: '56'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Salio 42.00 {token_symbol}\n1. Tuma\n2. Akaunti yangu\n3. Usaidizi"