Since I already shared experiences on an earlier day, I decided to use today to create a new experience. Thatâs a case study, right?
I went to search for code in python as test target, finding specifically this:
Pretty little rabbit, right? Reminds me of reading some code at work, just less intentional. And really do not have the time or energy to read that.
I could test it as black box, learning that given a parameter of a number, it gives me a number.:

If I didnât know what the rabbit implements or recognize the pattern in the output, I was thinking of just asking ChatGPT about it. However, I did not get that far.
Instead, I wrote def function(): on my IDE while GitHub copilot is on, thinking I would have wrapped the program into a function. It reformatted it to something a bit more readable.
Prompting some more in the context of code.
Comment line â#This functionâ proposes âis obfuscatedâ. Duh.
Comment line â#This function impâ proposes "lements the Fibonacci sequence using Binetâs formula.
At this point, I ask chatGPT how to test a function that implements the Fibonacci sequence using Binetâs formula. I get long text saying try values I already tried, but in code, and a hint to consider edge cases and performance. I try a few formats to ask for a value that would make a good performance benchmark, and lose patience.
I google for performance benchmark to learn that this Binetâs formula is much faster than the recursive algorithm, and find performance benchmarks comparing the two.
I conclude inserting the bunny code into chatGPT and asking âwhat algorithm does this useâ to get second language model generate likely answer as the Binetâs formula. Given the risk and importance of this testing at this time, I conclude itâs time to close my case.
There are so many uses to figure out what it is I am testing (while being aware of what I can share with tool vendors) and a simulation of you could ask about the pull request was the case I wanted to add to the world today.
Edit: Put this in my blog, cleaning up a few weird sentences. A Seasoned Tester's Crystal Ball: A Bunnycode Case Study for AI in Testing