Question
Write a test script to cover the following functionality. The programme has already been developed. Your task is to write the actual steps of a
Write a test script to cover the following functionality. The programme has already been developed. Your task is to write the actual steps of a test script. The first three steps have been written for you, but you do not have to use them in your assignment and are encouraged to write your own. Reasonable assumptions about programme behaviours can be made.
- Bitcoin payments: the system charges extra 1% trading margin as the processing fee
- Assume 1 bitcoin is worth A$50,000 fixed rate
- The system calculates how much is the processing fee in Australian dollars, deducts it from the conversion of crypto payments and displays the balance. Once the customer confirms the final amount, deposit the Australian dollar into the customers settlement account, and display the Australian dollar balance. Otherwise report the error.
Step | Action | Expected Result |
1 | Import test data into the test database connected to the programme, which contains the following information: Payment of 0.005 bitcoin by Ms A B, reference 8HS92T Payment of 2 ethereum by Mr C D, reference P8A27G Payment of 0.2 bitcoin by Dr E F, reference U92H2K | Test data successfully imported into the test database. |
2 | Execute the programme. | The programme can run without crash. It is displaying the UI and asking the customer to enter the reference number of the payment. |
3 | Enter an invalid payment reference number J39REQ. | System reports that the payment with reference J39REQ cannot be located. |
4 | Enter a valid payment reference number 8HS92T | System locates the reference number 8HS92T paid by Ms A B, and reports the currency type as bitcoin, and the amount to be 0.005 bitcoin. The UI displays that 0.005 bitcoin is worth A$250. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started