Any platform / Any Browser / Native Mobile Browser [ Zero Additional Cost Solution ]

Any platform / Any Browser / Native Mobile Browser [ Zero Additional Cost Solution ]

Playwright JavaScript TestAutomation Coding

8 years ago, when I started my first automation project POC; even the limited scope lead to demanding complex configuration of basic setup of test automation environment for example Web Application testing using Selenium WebDriver may it be the Java / C# as a scripting language.

The complex configurations in the past took more time as compare to creating actual test automation scripts. Like setup of IDEs w.r.t particular scripting language and the list of plugins required to make your tests work the way you want them to. Last but not the least, in order to view the end results you have to code the particular report template details just with the basic information of test results until and unless you end up relying on another plugin for reports itself.

Lately, the recent advancements have helped SDET's to break free from the boring and non-productive activities and even get rid of the initial costs like purchasing a particular license or a tool.

Breaking free from the shackles of platform dependency is something that comes at the cost of maintaining multiple test scripts for different platforms or different plugins which leads to extra cost in terms of time, money and resources.

What if you could do all of the that with a zero cost?

Yes! this is possible in case of modern web Applications. You can ensure end-to-end testing of modern web apps with the support of cross platform and multiple browser support. Furthermore, this will also cover the Mobile Native Web.

Microsoft Playwright, some key aspects to be considered:

Playwright enables fast, reliable end-to-end testing of web applications with following additional features:

  • Cross-browser: Playwright supports all modern rendering engines including Chromium, WebKit (Safari), and Firefox.
  • Cross-platform: Test on Windows, Linux, and macOS, locally or on CI, headless or headed.
  • Cross-language: Use the Playwright API in TypeScript, JavaScript, Python, .NET, Java.
  • Test Mobile Web: Native mobile emulation of Google Chrome for Android and Mobile Safari. The same rendering engine works on your Desktop and in the Cloud.
  • Execution Trace: Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.
  • Trusted events: Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.
  • Test frames, pierce Shadow DOM: Playwright selectors pierce shadow DOM and allow entering frames seamlessly.
  • Browser contexts: Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.
  • Log in once: Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.

Furthermore

  • Setup Environment (Installation & Configuration) in a matter of couple of minutes & Run your tests.
  • Create test script the way you want: POM, BDD, TDD etc.
  • View Comprehensive Test Report without having to write or code anything.
  • Create test scripts in no time and Records the actual Execution or Retry Event along with Complete Trace with just a yes/no configuration. No plugins required.
  • Run tests on Multiple browsers / Platforms without configuring each individual browser drivers.

All of this will be covered in the upcoming article …(A Quick Guide to Microsoft Playwright).

要查看或添加评论,请登录

Muhammad M.的更多文章

  • Digital Life & Security

    Digital Life & Security

    When you pray for rain; you got to deal with the mud too! Similarly, when it comes to digital lifestyle, while reaping…

  • Internet Activities Board (IAB)

    Internet Activities Board (IAB)

    Right around the dawn of the Internet, the Internet Activities Boards published a memo with the title "Ethics and the…

    1 条评论
  • Artificial Intelligence & Its Roots

    Artificial Intelligence & Its Roots

    Artificial Intelligence is the hot topic now a days but; What is AI? What it really means? Starting with the basics, AI…

  • Leadership Skills

    Leadership Skills

    Nothing is impossible with dedication and compassion. Consistency is the key here.

  • Golden Rule of Success

    Golden Rule of Success

    Every cycle has phases, similarly when it comes to your business / position / team; these phases have crucial…

  • Product Owner Essential Skills

    Product Owner Essential Skills

    Product owner is the bridge between clients and Development team. Responsible for transformation of client needs or…

  • 3 Artifacts of SCRUM

    3 Artifacts of SCRUM

    SCRUM is a way to stay organised and keep things documented. How? Record keeping and keeping track of progress is…

  • SCRUM Master

    SCRUM Master

    SCRUM master is the main facilitator of the SCRUM / Sprint, but that is not all, this role demands particular set of…

  • Golden Hour & 4 Ws of SCRUM

    Golden Hour & 4 Ws of SCRUM

    The digital revolution has transformed this world into a global village. In other words, the digital transformation has…

  • 4 C's of SCRUM

    4 C's of SCRUM

    In professional career, promotions are often deemed as milestones over time to achieve your personal goals. How about…