Tuesday, June 29, 2021
Thursday, June 17, 2021
Business-Layer Page-Object Pattern for Functional / System / end-2-end Test Automation
- Tests should talk business language
- The test is deterministic, for a specific scenario. The test implementation is an orchestration of corresponding business operations
- Business layer is an abstraction layer between the test intent & page objects
- Implementation of business layer method is essentially an orchestration of other business operations, or for the granular business operation, an orchestration of page objects
- The business layer method does the assertions of expectations
- There should be no assertions in page objects
- Each operation (in business or page object) being successful means there are a defined number of methods / operations the product can now do (as you are driving the product under test to do your bidding)
- Hence, to #7, each operation can have one 1 valid page / business object as its return type
See the sample tests implemented in teswiz for an example of Business-Layer Page-Object pattern implementation.
Wednesday, June 2, 2021
If yes, then read my blog post on Automating Functional / End-2-End Tests Across Multiple Platforms which shares details on the thought process & criteria involved in creating a solution that includes how to write the tests, and run it across the multiple platforms without any code change.
Lastly, the open-sourced solution - teswiz also has examples on how to implement a test that orchestrates the simulation between multiple devices / browsers to simulate multiple users interacting with each other as part of the same test.
Friday, May 21, 2021
Having a proper setup is very important when working from home. Else it can mess up your posture, back, neck, ...
I recently upgraded my work-from-home setup. If anyone wants suggestions how and what I did, will be happy to share.
I had posted this on LinkedIn - https://www.linkedin.com/feed/update/urn:li:activity:6799935956540624896/
But before the solution, here are the problems I was facing:
- I was sitting for around 10-12 hours on my chair every work-day
- Though I try to maintain a good posture, I figured out I kept slouching automatically over time
- As a result, my back started paining
I had to change something quickly, because this weird time is just not ending.
So, this is what I did. I researched and spoke to lot of people, and figured that a standing desk will help me maintain a good posture and avoid back pain.
My work setup though had a fixed desk, which I could not change. So I did the following setup:
1. Adjustable desk - which I can change to use as a standing desk or sit-down desk