Back to Courses
JAVA + AI IN TESTING — GEMINI · OLLAMA · MAKE.COM · PLAYWRIGHT MCP · ANTIGRAVITY

AI Testing with Java —
From Your First ML Model to Self-Healing Frameworks

Train your own Java ML model and serve it via a REST API, master Gemini + local Ollama LLMs, automate workflows with make.com and GitHub Actions, write Playwright Java tests via vibe coding + MCP, and ship AI-generated TestNG + Maven frameworks with Gemini-powered self-healing locators.

★★★★★ 4.9 · 14 Google reviews

15
Days of Training
9
Modules
60+
Topics Covered
AI
Powered

Who Is This Course For?

For QA engineers and automation testers who already work with Java + Selenium / Playwright and want to add real AI capabilities to their toolkit. Over 15 days you will use Smile (or Tribuo), google-cloud-vertexai, Ollama, Apache POI, JavaMail, make.com, GitHub Actions, GitHub Copilot in IntelliJ IDEA, Playwright MCP, and Antigravity — building practical tools, end-to-end workflows, and a TestNG + Maven AI-healing framework that you can deploy in your actual work, not just toy demos.

Automation Engineers Java + Selenium / Playwright Users QA Leads / SDETs AI-Curious Testers Framework Owners

Your AI Testing Journey

Build + Serve Your ML Model
Gemini + Ollama + RAG
make.com + GitHub Actions + AI for Manual QA
Vibe Coding + Antigravity + Self-Healing
MODULE 01

Build Your Own AI Model

Smile / Tribuo · Tablesaw · Java serialization · REST API · simple HTML UI

Before using anyone else's AI, you build your own — a small linear-regression model that predicts a real value (land price), save it to disk, expose it as a REST API, and give it a basic browser UI. By the end of this module the abstract phrase "AI model" stops being mysterious.

Core Topics
  • The 3 ingredients of every AI app: Algorithm + Data + Model
  • ML fundamentals with Smile (or Tribuo): prepare data, train a LinearRegression / OLS model, make predictions
  • Tabular data handling with Tablesaw — Java's answer to pandas
  • The "train once, use many" pattern — why training every run wastes hours
  • Save the trained model with Java's built-in serialization (ObjectOutputStream); load it back later in a single block
  • Expose the model as a REST APIGET /predict?squareFeet=8 returns the prediction
  • Build a simple HTML + JavaScript page that calls the API — no heavy framework needed
  • Train → save → API → UI: the standard ML deployment pipeline, fully in Java
WHY THIS MODULE

Most "AI Testing" courses jump straight to calling other people's APIs. We start by building a tiny model end-to-end so you understand what the LLM you'll consume later actually is — and why serialization, REST endpoints, and simple HTML are the building blocks every Java AI tool you'll meet in your career will use under the hood.

MODULE 02

Gemini API & Prompt Engineering

Google AI Studio · google-cloud-vertexai · 7-element prompt framework · stateful chatbot

Move from building a tiny model to commanding a state-of-the-art LLM. You get a free Gemini API key, learn the 7-element prompt structure that makes the difference between mediocre and great output, and build a chatbot that remembers context.

Core Topics
  • Sign up to Google AI Studio (aistudio.google.com), generate a Gemini API key
  • Add Google's Java SDK to your Maven pom.xml: com.google.cloud:google-cloud-vertexai
  • The 7-element prompt framework: role · task · context · tone · format · constraints · question
  • Single-turn requests: GenerativeModel.generateContent(prompt) → read response.getText()
  • Stateful chatbot: ChatSession chat = model.startChat() + chat.sendMessage() — preserves conversation context
  • System instructions: keep the model on-topic across a long session
  • Trade-offs of cloud LLMs: cost · security / data leakage · internet dependence · version drift
  • Why this matters: every other module in the course leans on prompts you write yourself
WHY THIS MODULE

The difference between a Gemini call that returns garbage and one that produces useable test scenarios is almost entirely in the prompt. Once you internalise the 7-element framework, you stop "talking to AI" and start commanding it. Every later module compounds on this skill.

MODULE 03

Local LLM with Ollama

Ollama platform · qwen2.5-coder · Java HttpClient · Jackson · Open WebUI

Cloud LLMs are great until cost, latency or data privacy stops you. Ollama lets you run a capable LLM entirely on your own laptop — no internet required, no tokens billed, no data leaving the machine. You'll use a 1.5 B model that's small enough to run anywhere.

Core Topics
  • Install Ollama; verify it's running at http://localhost:11434
  • Pull a model: ollama pull qwen2.5-coder:1.5b
  • List, run and chat: ollama list · ollama run qwen2.5-coder:1.5b
  • The 3 message roles every chat API uses: user · system · assistant
  • Call Ollama from Java using the built-in Java 11 HttpClient — no external dependency needed
  • Parse JSON responses with Jackson (or Gson) — the standard pattern you'll reuse for any LLM
  • Install Open WebUI for a ChatGPT-style local interface
  • When to choose local over cloud: data sensitivity, predictable latency, zero per-call cost
WHY THIS MODULE

The bank, healthcare, and government QA jobs that pay best won't let you ship test data to a US-hosted Gemini endpoint. Ollama is your answer: same chat-API shape, runs offline, your data never leaves the box. Once you've installed it once, you have an LLM at every customer site forever.

MODULE 04

RAG & Email Automation

RAG concept · DDG + qwen2 · SerpAPI + Gemini · JavaMail · Gmail App Password

An LLM only knows what it was trained on. RAG (Retrieval-Augmented Generation) plugs in live information so the model can answer today's questions, not last year's. You'll build two RAG pipelines — one with a free search engine, one with Google's — and then automate Gmail-sending from Java.

Core Topics
  • What RAG actually means: Retrieval (fetch fresh data) · Augmented (merge with prompt) · Generation (LLM answers with context)
  • Free pipeline: call DuckDuckGo from Java HttpClient, feed search results to local qwen2
  • Paid pipeline: SerpAPI Java client (com.serpapi:google-search-results-java) feeds Google results to Gemini
  • Sign up at serpapi.com, copy API key, hit the same Google index Google itself uses
  • Send Gmail from Java using JavaMail (jakarta.mail) — Java's classical email library
  • Enable 2-factor auth, generate an App Password at myaccount.google.com/apppasswords
  • SMTP send pattern via JavaMail — no third-party email service required
  • When to choose which: DDG/Ollama for cost · SerpAPI/Gemini for quality and structured results
WHY THIS MODULE

Almost every "useful" AI feature in real QA work is RAG: pull the latest requirements doc, the latest failed-test log, the latest Jira ticket — then ask the LLM. Once you've wired up RAG and email-from-Java, you have the two missing pieces to build the AI agents in the next module.

MODULE 05

AI Agents & make.com Workflows

Apache POI · Google Forms / Sheets · make.com scenarios · Make AI module

Two ways to build the same agent. First the Java version: read a question from Excel, ask AI, reply by email. Then the visual version on make.com: same agent in 15 minutes with zero custom code. You'll know when to reach for which.

Core Topics
  • Java AI Agent: read questions from Excel with Apache POI (org.apache.poi:poi-ooxml), compose AI reply, send email
  • Apache POI for .xlsx: Workbook · Sheet · Row · Cell — the standard Java Excel API
  • Google Forms → Google Sheets: collect responses without writing a backend
  • Publish a Sheet as a public CSV URL — instant data feed for any pipeline
  • make.com scenarios: visual node editor for workflow automation
  • "Watch new rows" Google Sheets trigger — fires automatically on new submissions
  • Make AI module: drop-in LLM step inside the scenario
  • Gmail action: send formatted reply email back to the user
  • Decision rule: Java when you need control and integration; make.com when you need speed and zero ops
WHY THIS MODULE

Stakeholders constantly ask "can we automate this small workflow?" Once you have make.com in your toolkit you can ship those requests in an afternoon — student-feedback summaries, daily test-result digests, weekly bug-report triage. It's the highest leverage skill in the whole course.

MODULE 06

GitHub Actions CI/CD with AI Reporting

GitHub Actions · Maven · TestNG XML · Allure → GH Pages · make.com webhook · AI QA-Lead reports

Connect everything from the previous modules into one self-running pipeline: push code → GitHub Actions runs the Maven build → Allure report deploys to GitHub Pages → an AI summarises results → email lands in your inbox. You leave this module with a workflow you can drop into any client repo on Monday.

Core Topics
  • Trigger on push: when code lands on master, GitHub Actions kicks off a Maven build
  • Ubuntu runner setup: install JDK (via actions/setup-java) · Maven · Allure CLI · Playwright + browsers
  • Run tests with mvn test — TestNG produces testng-results.xml and Maven Surefire produces TEST-*.xml
  • Generate Allure HTML report from results
  • Deploy report to GitHub Pages via peaceiris/actions-gh-pages
  • Parse Surefire / TestNG XML inline for total / passed / failed / skipped counts
  • POST JSON payload to a make.com webhook URL stored in MAKE_WEBHOOK_URL secret
  • make.com receives the payload, feeds it to "You are a Senior QA Automation Lead" prompt, sends email
  • Upload videos/ artifact so failures are debuggable later
WHY THIS MODULE

This is the module that makes managers love you. A Java test framework is good. A Java test framework that emails a professional, AI-written summary to the team every push is enterprise-grade. The whole chain is reproducible in any GitHub repo in under an hour.

MODULE 07

AI for Manual Testing

Temperature / top_p · pandoc CLI · scenarios / data / defects · Bias + Hallucination

Manual testing is not going away — but it is changing. This module shows the manual-tester end of the pipeline: feed a requirements doc to an LLM and generate scenarios, steps, data and defect reports. You also learn the two parameters (temperature, top_p) that decide whether AI sounds robotic or unpredictable, and how to spot when it's hallucinating.

Core Topics
  • Temperature (0 = robotic / 0.3 = controlled / 0.8 = creative / 1.0 = unpredictable)
  • top_p: word-probability cutoff — pairs with temperature to shape output
  • Why markdown beats .doc / .pdf / .xlsx as AI input
  • Convert .docx requirements to .md by calling pandoc as a CLI from Java using ProcessBuilder
  • Prompts to generate: test scenarios · test steps · test data · review comments · defect reports
  • Realistic vs scale-generated test data — when to write each by hand
  • AI Bias — Representation Bias from skewed training data
  • Hallucination — AI confidently producing data that doesn't exist
  • QA habits to catch bad output before it ships
WHY THIS MODULE

The QA who can hand a manager 500 test scenarios from a requirements PDF in 20 minutes is more valuable than one who can write 50 in two days. But the same QA also has to spot the hallucinated scenarios before they enter the test plan — and the same applies to AI-generated defect reports. This module makes you fast and safe.

MODULE 08

AI-Assisted Coding in IDE

Vibe coding · IntelliJ IDEA + GitHub Copilot · Continue + Ollama (local) · Playwright MCP · Agent mode

Where AI changes test-automation writing the most. You'll use GitHub Copilot for vibe coding inside IntelliJ IDEA, swap it for a free local LLM via the Continue plugin and Ollama, then connect Microsoft's Playwright MCP so an AI agent can drive a real browser as it generates the Java Playwright script.

Core Topics
  • Vibe coding: describe what you want in plain English, AI writes the Java code
  • IntelliJ IDEA setup: install GitHub Copilot plugin
  • The 6 daily uses: write · explain · refactor · debug · MTC → automation · code migration (Selenium ↔ Playwright)
  • Convert Selenium Java to Playwright Java (or the reverse) with one prompt
  • Use a local LLM inside the IDE — install Continue plugin, point it at localhost:11434
  • MCP — Model Context Protocol: standardised way AI tools talk to applications
  • Install Microsoft's Playwright MCP: requires Node.js → npm install @playwright/mcp@latest
  • Wire up mcp.json in IntelliJ; enable MCP Server in settings
  • Use Copilot in Agent mode + Playwright MCP: AI opens a real browser, finds locators, writes verified Java Playwright code
WHY THIS MODULE

Vibe coding isn't about replacing your skills — it's about multiplying them. The engineer who can describe a flow in plain English, have Playwright MCP drive a live browser to verify each step, and end up with a green Java test in 5 minutes will out-ship anyone still hand-writing locators. But you still need to know what good test code looks like — and this module teaches both sides.

MODULE 09

AI-Generated Frameworks & Self-Healing

Antigravity by Google · POM via prompts · TestNG + Maven · Gemini self-healing · locator_db.json caching

The final module is the headline result of the course. You install Antigravity (Google's agentic IDE), describe the framework you want in English, watch it generate a working Java + Playwright + TestNG + Maven + POM framework, then upgrade it with an AI-healing mechanism that auto-fixes broken locators — caching the fixes so you only pay the AI tax once per locator.

Core Topics
  • Agentic AI: AI manager → AI tools → real-world actions (the conceptual map)
  • Install Antigravity from antigravity.google/, sign in with Gmail
  • Generate a Java + Playwright + TestNG + Maven framework via prompt: pom.xml, BaseTest, page objects, sample test
  • Approve plan → Antigravity writes the files → run the sample test with mvn test → it just works
  • Standard layout: src/main/java/pages/, src/test/java/tests/, generic/BaseTest.java
  • TestNG conventions: @BeforeMethod setup, @AfterMethod teardown, testng.xml suite file
  • Convert an Excel manual test case (OSPOS) to a Page Object Model script via prompt
  • Configure config.properties + framework conventions so AI follows your structure
  • Add an AI-based self-healing locator mechanism using Gemini:
  • Try original locator → on failure, call Gemini for a new working locator → use it
  • Log both attempts; expose a single utility findElementWithHealing(Page page, String locator)
  • Cache healed locators in locator_db.json (read/write via Jackson or Gson) — try original → check DB → call AI only on cache miss
  • Result: the locator-breaking UI change that used to kill your suite is now a logged warning
WHY THIS MODULE

This is the headline you put on your CV. "Built a Java Playwright + TestNG framework with AI-healing locators backed by a local cache." Most Java automation engineers in India in 2026 cannot say that. The framework you walk out with is yours to take to your next interview and your next client.

Interview Preparation

What did you build with Smile / Tribuo?

A LinearRegression model that predicts land price from square-feet, trained once on a small dataset, saved via Java serialization, served via a REST endpoint as /predict?squareFeet=8, with a simple HTML page on top — the full ML deployment pipeline end-to-end in Java.

What is the 7-element prompt framework?

Role · Task · Context · Tone · Format · Constraints · Question. Hitting all seven turns a vague Gemini request into a reliable scenario-generator or defect-summariser. Most prompt failures in QA work happen because one of the seven is missing.

Why would you choose Ollama over Gemini?

Cost (zero per-call), security (data never leaves the box), latency (predictable), no internet dependence. For banking/healthcare/government QA where you cannot send test data to a US-hosted endpoint, Ollama is the only practical answer.

When would you use make.com over Java code?

Use make.com when connecting pre-built services (Sheets, Gmail, Slack, GitHub) with standard data flows — OAuth, retries and error workflows come free. Write Java when you need custom logic or tight integration with an existing TestNG / Playwright codebase.

How does your GitHub Actions pipeline report results?

Maven Surefire writes TestNG XML, Allure HTML deploys to GitHub Pages, totals POST to a make.com webhook. make.com prompts Gemini ("You are a Senior QA Automation Lead…") and emails a professional summary on every push.

What is MCP and what does Playwright MCP do?

Model Context Protocol is an open standard for connecting LLMs to external tools. Microsoft's Playwright MCP gives Copilot direct browser control — navigate, click, fill, screenshot, read DOM — turning vibe coding into verified vibe coding: the AI tests its own Java script before saving it.

How does your AI self-healing mechanism work?

A utility findElementWithHealing(Page page, String locator) tries the original first. On failure, it checks locator_db.json (read with Jackson); a hit means the locator was previously healed — reuse it. A miss calls Gemini for a new working locator, uses it, and writes it back to the JSON so the next run is cache-warm. Net effect: AI tax paid once per change.

How do you catch AI hallucination in tests?

Three habits: (1) every AI-generated locator runs in Playwright MCP before being saved, (2) every AI-generated defect report is read against the actual log, (3) low temperature (0.2–0.3) for scenario / data work so output stays grounded. Hallucinations sneak in when teams treat AI output as "done".