During this webinar, Anand Bagmar demonstrates how AI tools such as ChatGPT can be applied to various stages of the software development life cycle (SDLC) using an eCommerce application case study. Find the on-demand recording and more info at https://applitools.info/b59
Key takeaways:
• Learn how to use ChatGPT to add AI power to your testing and test automation
• Understand the limitations of the technology and where human expertise is crucial
• Gain insight into different AI-based tools
• Adopt AI-based tools to stay relevant and optimize work for developers and testers
* ChatGPT and OpenAI belong to OpenAI, L.L.C.
6. AGENDA
• What is ChatGPT?
• Using ChatGPT in Testing
• Using ChatGPT in Programming
• Limitations of ChatGPT
• Other AI Tools you can use
• Pitfalls of AI
• Summary
• Q&A
11. @BagmarAnand
ChatGPT – Interesting Stats
https://www.demandsage.com/chatgpt-statistics/
• ChatGPT was launched on 30th November 2022.
• The new and improved embedding model of ChatGPT was launched on
15th December 2022.
• ChatGPT has crossed one million users within a week of its launch.
• ChatGPT can only fetch data prior to the year 2021 as its training
stopped in the year 2021.
• Microsoft Azure supports OpenAI and provides them with the
computational power required for running ChatGPT.
23. @BagmarAnand
Testing – Strategy with Risk Mitigation
Next question:
What risks and their
mitigation strategies
should be included in
the above strategy?
24. @BagmarAnand
Testing – Strategy with Risk Mitigation
Next question:
What risks and their
mitigation strategies
should be included in
the above strategy?
25. @BagmarAnand
Testing – Strategy with Risk Mitigation
Next question:
What risks and their
mitigation strategies
should be included in
the above strategy?
26. @BagmarAnand
Testing – Test Design
• Getting started
• The 1st Test
• Design
patterns
• Reporting
• Metrics
• Test scenarios
• Test cases
• Test data
• Risk
• Coverage
• Metrics
Strategy Test Design
Automation
Test
execution
27. @BagmarAnand
Test Design – Test Scenarios
Next question:
What are the most
critical test scenarios I
should test for this
website?
28. @BagmarAnand
Test Design – Test Scenarios
Next question:
What are the most
critical test scenarios I
should test for this
website?
29. @BagmarAnand
Test Design – Test Scenarios
Next question:
What are the most
critical test scenarios I
should test for this
website?
Great set of regression
scenarios!
30. @BagmarAnand
Test Design – Test Cases
Next question:
List 10 test cases for
"Product Search and
Filtering" scenario in
order of priority
31. @BagmarAnand
Test Design – Test Cases
Next question:
List 10 test cases for
"Product Search and
Filtering" scenario in
order of priority
32. @BagmarAnand
Test Design – Test Cases
Next question:
List 10 test cases for
"Product Search and
Filtering" scenario in
order of priority
Isn’t this amazing?
33. @BagmarAnand
Test Design – Test Data
Next question:
What test data do I
need to be available
for performing the
above test cases?
34. @BagmarAnand
Test Design – Test Data
Next question:
What test data do I
need to be available
for performing the
above test cases?
35. @BagmarAnand
Test Design – Test Data
Next question:
What test data do I
need to be available
for performing the
above test cases?
Well – I was hoping for more
specific, but it’s a start!
36. @BagmarAnand
Testing - Automation
• Getting started
• The 1st
Test
• Design patterns
• Reporting
• Metrics
• Test scenarios
• Test cases
• Test data
• Risk
• Coverage
• Metrics
Strategy Test Design
Automation
Test
execution
41. @BagmarAnand
Automation – Getting Started
Next question:
I don't know Selenium.
How should I learn? This answer took some time
TestAutomationUniversity
(TAU) was missed!
57. @BagmarAnand
Testing – Test Execution
• Getting started
• The 1st Test
• Design
patterns
• Reporting
• Metrics
• Test scenarios
• Test cases
• Test data
• Risk
• Coverage
• Metrics
Strategy Test Design
Automation
Test
execution
101. @BagmarAnand
Limitations based on my observations
• ChatGPT does not know your context – use this as a starting point
• Will not work on internal sites
• Data privacy could become a huge issue
• Will not work for new features that are being developed
103. @BagmarAnand
Github Copilot
• Github Copilot is not new
• It is super helpful to write clean code, and rapidly!
• It is helpful to implement product code, as well as automation code
• Refer to these links for more information about it:
• https://applitools.com/blog/using-github-copilot-to-automate-tests/
• https://applitools.com/event/make-testing-easy-github-copilot/
• https://github.com/features/copilot
113. @BagmarAnand
Visual AI accelerates
cross browser/device testing
Capture the entire UI with
a single snapshot
DOM & CSS sent to
Applitools
Ultrafast Test Cloud
Applitools Eyes
Visual AI analysis
Ultrafast Grid
renders DOM
snapshots in parallel
Login to Eyes to
view test results
.
Firewall
18.2x faster than traditional cloud execution grids.
Applitools
Ultrafast Test Cloud
114. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
115. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
116. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
117. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
118. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
119. @BagmarAnand
Automation – With Applitools Visual AI
While this is not the
complete test, it
shows the correct
setup of Applitools
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
120. @BagmarAnand
Automation – With Applitools Visual AI
Next question:
Implement the 1st test
case "Verify that the
search results match the
keywords entered by the
user" using Selenium Java
with WebDriverManager,
Junit and Applitools
Ultrafast Grid
121. @BagmarAnand
Advantages of AI in Testing
• Reduce mundane tasks – let the machine handle it!
• Reduce the error prone nature of manual testing
• Easier Scaling
• Learn new tools & technologies
• Make work more interesting
123. @BagmarAnand
Potential pitfalls of AI
• Thinking AI will solve all problems!
• Results in superficial knowledge
• Data Privacy
https://twitter.com/ProtonPrivacy/status/1619007351750627342
127. Summary
• ChatGPT and many other tools in the AI-space are solving very
interesting challenges
• Understand how to use them in your context
• Ask the right question, to get a good answer!
• Tools have limitations – choose them wisely
• Human mind & experience is “still” the essential ingredient in
SDLC
128. Some tips for you
Use this opportunity to:
• Upskill yourself in new tools and technologies
• Evolve your thought process
• Be creative and use new information to come with
unique solutions
• Be innovative and learn how to use tools and
technologies for different purposes