injinia
  • Welcome
  • Blog
  • contact
  • links
  • Hire Me!

Hooray for Coding Fun! A Big Thank You to Sarah and the Awesome Lyndhurst STEM Club for Girls!

19/6/2023

0 Comments

 
In today's super cool world of technology, coding and programming are like magical powers that can make awesome things happen. Coding is like a wild rollercoaster ride of fun and creativity! It's a superpower that lets you create awesome things using your imagination and technology. You won't believe the amazing feeling when you see your ideas come to life as cool games, websites, or even robots!

Let's give a high-five to Sarah from the Lyndhurst STEM Club for Girls! She's a rockstar who sent us a link to a Glossary of Coding and Programming Terms—a treasure chest of knowledge just for us coders! This magical glossary will help us understand all those fancy words that programmers use. Thanks a million, Sarah! You've made our coding journey even more awesome, and we're incredibly grateful for your generosity. Now we can all be coding wizards!

STEM Clubs are like secret hideouts for young geniuses like you! They're places where we can come together, make friends, and explore the wonders of science, technology, engineering, and mathematics. The Lyndhurst STEM Club for Girls is one of many such clubs inspiring kids and helping us unleash our coding superpowers. Let's give a big cheer for STEM Clubs!

Wishing Sarah and the Lyndhurst STEM Club for Girls a Super-Duper Coding Summer! As summer arrives, we hope it brings you endless coding adventures, creativity explosions, and mind-blowing projects. May your summer be filled with excitement and discoveries that make your coding dreams come true. You're all stars in our coding universe, and we can't wait to see the incredible things you'll create!
​
Learning to code is like stepping into a world of endless possibilities and unlimited fun. So, let's put on our coding capes, unleash our imaginations, and get ready for an amazing coding adventure this summer and beyond! You're all coding rockstars!
0 Comments

AI generated test example: PyAutoGUI

3/6/2023

0 Comments

 
After playing with the code for the last post a bit, a colleague asked how hard it would be to do the same with a random python library. A quick search turned up PyAutoGUI, which seems ok.

Popping open the last chat that was used to generate the code for the previous post, and simply asking it to "Ok, now generate a python script to use the gherkin test case. Use the pyautogui library."

This generates:
​
test_runner.py

    
Hmm, now I just need to build a test library that will test AI generated tests.....
0 Comments

Enhancing Traditional GUI Testing with AI

1/6/2023

0 Comments

 
In the fast-paced world of software development, functional GUI testing plays a critical role in ensuring seamless user experiences. While traditional GUI testing approaches have been effective, the emergence of Artificial Intelligence (AI) has brought a new wave of possibilities to enhance and optimize the testing process. How can AI elevate traditional GUI testing? What are the benefits of utilizing test cases generated by AI. I'll give an example prompt and demonstrate how an AI can generate test cases to streamline the testing process.

The Power of AI
Artificial Intelligence introduces a range of advancements that augment traditional GUI testing, enabling more efficient and effective processes. Rather than replacing traditional methods, AI serves as a valuable ally, complementing and enhancing existing practices. AI can leverage Natural Language Processing (NLP) algorithms to generate Gherkin-style test cases, further streamlining the testing process.

To demonstrate the power of AI, let's consider an example prompt:

"Write gherkin test cases to validate the login functionality."

The prompt produces structured test cases that describe the login functionality. Here's an example of test cases generated by the AI:
Login test case

    
AI-powered Execution and Analysis
With these test cases in hand, an existing test library like watir can be integrated seamlessly. With a few more prompts like, "Now generate the ruby code to run this test using the watir library. Use the page object pattern, and separate the code into the correct files. Use a test_params.yaml file to store the variables like urls, usernames, passwords, etc."

Here is what we get:
test_parameters.yaml

    
login_page.rb

    
login_steps.rb

    
test_runner.rb

    
It even generated some helpful instructions:
instructions.txt

    
Conclusion
While there is still some setup and configuration to do, we can see that AI brings a wealth of opportunities to enhance traditional GUI testing practices. By generating some of the basic test cases we can focus effort on doing the non-standard tests, poking around where we know the bugs hide. 

Integrating AI with existing GUI testing libraries allows for automated uses of the generated test cases. 
​
Embracing AI in GUI testing is a powerful tool in our QA bag of tricks. So, let's embrace the potential of AI and unlock a new era of GUI testing!
0 Comments

    Author

    Hi, my name is Clancey and I am a quality advocate, agile coach, scrum master, automator, and toolsmith.

    I help companies with agility and quality. To do this I end up automating a lot of things, functional testing and workflows being some of them.

    Clancey McNeal CTSM, CSM, A-CSM
    Getting started with ruby automation series
    1. Required Installs
    2. Tools
    3. Project Structure
    4. Page Objects

    Archives

    March 2024
    February 2024
    December 2023
    June 2023
    May 2023
    April 2023
    June 2021
    March 2020
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    February 2014
    December 2013

    Categories

    All
    AI
    API
    Cucumber
    Espanso
    Getting Started
    Insomnia
    Mouse Without Borders
    Page Objects
    Python
    Rspec
    Ruby
    Setup
    Slack
    Sublime
    Tools
    Web Test Automation

    RSS Feed

Copyright injinia, images copyright Adachi Photography