- Author: [[linkedin.com]]
- Full Title: Easy Test Automation of Email and MFA | LinkedIn
- Tags:: #[[Article/Mine/Using Test Data Services in a load test]]
- URL: https://www.linkedin.com/pulse/easy-test-automation-mail-mfa-paul-mclean/
- ### Highlights first synced by [[Readwise]] [[2020-09-16]]
- Simple API calls from [[Test Data Services]] greatly simplify the scripting process for such a scenario. They provide free access to 2.5 million manufactured (i.e. ‘fake’) identities and low cost email and MFA APIs, that can be subscribed for on a daily, weekly, monthly or annual basis. They are free for the remainder of 2019, so now is a great time to try them out.
- **Note**: Does faker.js do the same thing? But an API would probably be better due to less overhead.
Still doesn't remove the need for SQUID or Virtual Table Server
- A simple test script, for the above scenario, would need to include the following steps:
Visit Landing Page for Site
Click Signup Link
Fetch random identity from api.testdataservices.com.au
Make API call to api.testdataservices.com.au to ‘clear’ time for email
Complete and Submit Signup Form
Make API call to api.testdataservices.com.au to retrieve verification email (using a simple loop)
Record ‘response time’ for email verification (using data provided by email API)
Simulate Click on link embedded in email verification (using data provided by email API)
Complete Signup process including MFA activation (using password and other data provided by the API)
Save MFA Secret Key for the email address just activated
Fetch MFA Token, to complete MFA activation
Logout
Login
Run key application specific business processes, as required by the client
Logout
- The key calls in the script, are demonstrated in this VUGen script, that you can download from https://testdataservices.com.au/docs/SignupAndActivityDemo.zip
- Let’s imagine a more complex variation of the first example, detailed above, where the application under test is an Insurance Application, and the registration process relates to the owner of an Australian Small Business, rather than for an individual.
- Apart from asking the client to ‘White List’ transmission of all emails to the testdata.email domain, you also need to ask the client to point their ABN Validation end point from the Production end-point (abr.business.gov.au using GET /AbrXmlSearch.asmx/ABRSearchByABN?searchString=string&includeHistoricalDetails=string&authenticationGuid=string) to the testdataservices endpoint (api.testdataservices.com.au) using GET v0001F_CheckABN?ABN=abn.
- This allows a high volume test to be conducted, without use of production business names and ABNs. It also means that if multiple organizations use the same test data, then the data consistency allows for test cases to span organizations, without any risk that personally identifiable information will be exposed, because none of the data used is real.
- The end points validations, like the email and MFA automation APIs, are subscription based, but a subset of 25,000 identities can be validated with the end point APIs without a subscription, allowing free verification of Drivers Licence, Medicare Number, ABN MedicareProviderID and AHPRA Registration, so long as the records to be validated are from this set of 25,000 identities. https://testdataservices.com.au/docs/Person_v0001F_25K.csv
- Getting the current and next Google Authenticator MFA Token, via the above email address is as easy as accessing the following URL:
https://api.testdataservices.com.au/
[email protected]&SubscriptionKey=34feff14fd463d26a40a