RyanSchlomer.com

Sr QA Consultant

Category: Automation

  • Selenium C# Component Class Creator GPT

    Selenium C# Component Class Creator GPT
    , ,

    I played with OpenAI’s custom GPT models and created the Mug Master GPT, which is something simple and entertaining to play with. Now, however, let’s look at creating something useful. How about a GPT that can create C# classes for Selenium automation based on an HTML element from a webpage? This is exactly what my… Read more

  • Automation Testing with Postman

    Automation Testing with Postman

    In an earlier post, I created a budgeting API that will be used as a reference. I created some tests in Postman in the previous post that were mostly manual tests. Today, I will show how Postman can be used to automate some of the testing. Postman’s Environment Variables Environment variables can be used to… Read more

  • Automation for Creating Test Cases in Azure

    Automation for Creating Test Cases in Azure
    ,

    I previously discussed how I used ChatGPT for test case creation. The test cases for Azure’s Create Item API were generated by ChatGPT and outputted into an XML structure. That’s where it ended. Although that could still be of benefit in some situations, there is still more automation that can be implemented for creating test… Read more

  • Using ChatGPT for Test Case Generation

    Using ChatGPT for Test Case Generation
    ,

    I am switching gears to discuss my least favorite testing activity: Writing test cases! Personally, I would rather test the application than write the test cases. I have used automation for UI testing, web service testing, and data generation. With the rise of artificial intelligence tools, why not utilize them for testing activities to be… Read more

  • Generic Wrapped Table Class

    Generic Wrapped Table Class
    ,

    From my experience, most web applications incorporate a table on one or more of their pages in order to organize and display data. Sometimes these tables only display data, but often there’s a button or link in each table row. When you’re testing a web application, you will need to interact with a table in… Read more

  • Adding SQLite to Selenium Tests

    Adding SQLite to Selenium Tests
    ,

    Adding SQLite database functionality to your Selenium tests is easy to set up. The TestManager class I wrote has various methods to write data to a SQLite database. I have been using the System.Data.SQLite NuGet package. You can use whichever one fits for your needs. I am not an expert on different packages for SQLite.… Read more

  • Selenium Automation–Starting a New Project in Visual Studio

    Selenium Automation–Starting a New Project in Visual Studio
    ,

    I’ve been adding some bits and pieces of automation to the first few posts, but now I’m going to take a step back and go through the steps to set up a new project for Selenium Automation. It’s not that hard to get a Visual Studio project up and running to start automating web pages… Read more

  • Wrapping HTML Elements for Better Tests

    Wrapping HTML Elements for Better Tests

    In automation testing, particularly for web applications, how you interact with HTML elements is crucial. Wrapping HTML elements—encapsulating them within custom classes or methods—offers several benefits that enhance your test suite’s effectiveness. Readability and Maintainability Wrapped elements simplify your code by replacing complex selectors with descriptive method names, making it easier to read and understand.… Read more

  • Why You Shouldn’t Use Sleeps in Your Automation Tests and How to Get Rid of Them

    Why You Shouldn’t Use Sleeps in Your Automation Tests and How to Get Rid of Them
    ,

    In the world of automation testing, time is of the essence. While it may be tempting to use Thread.Sleep() to pause the execution of your test for a specific amount of time, this approach is generally considered a bad practice. In this blog post, I’ll explore why using sleeps in your automation tests is problematic… Read more

  • The TestManager Class

    The TestManager Class

    My TestManager class serves as a centralized manager for handling test runs, test cases, and logging in an automated testing environment. Below are some key points that describe what I am doing and why a class like this would be beneficial: Singleton Pattern The Singleton pattern is used to ensure that only one instance of… Read more