<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Popova Tatiana O on Medium]]></title>
        <description><![CDATA[Stories by Popova Tatiana O on Medium]]></description>
        <link>https://medium.com/@popova.tatiana.o?source=rss-c3da4aa8073c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*d4ebU2K6XuHDY9Jg.jpg</url>
            <title>Stories by Popova Tatiana O on Medium</title>
            <link>https://medium.com/@popova.tatiana.o?source=rss-c3da4aa8073c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:16:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@popova.tatiana.o/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[REST Assured, JSON Schema, or Pact?]]></title>
            <link>https://medium.com/@popova.tatiana.o/rest-assured-json-schema-or-pact-85b338103f17?source=rss-c3da4aa8073c------2</link>
            <guid isPermaLink="false">https://medium.com/p/85b338103f17</guid>
            <category><![CDATA[pact]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[restassured]]></category>
            <category><![CDATA[api-testing]]></category>
            <category><![CDATA[contract-testing]]></category>
            <dc:creator><![CDATA[Popova Tatiana O]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 18:50:42 GMT</pubDate>
            <atom:updated>2026-09-19T19:42:32.585Z</atom:updated>
            <content:encoded><![CDATA[<p>This article started with a simple question: what should I test with REST Assured, what is better left to JSON Schema, and when does Pact actually add value?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7kN4FRWgqCZnVfQ7M5R8ZQ@2x.jpeg" /></figure><p>Instead of comparing them in theory, I’ll start with one REST Assured test and gradually refactor it. Let’s see what changes – and what each approach catches.</p><p><strong>Starting with Everything in REST Assured</strong></p><p>Consider a simple Customer API:</p><pre>GET /customers/123</pre><p>The response contains an id, name, email, status, and createdAt.</p><p>Let’s start by testing everything with REST Assured:</p><pre>given()<br>    .when()<br>    .get(&quot;/customers/123&quot;)<br>    .then()<br>    .statusCode(200)<br>    .body(&quot;id&quot;, equalTo(123))<br>    .body(&quot;name&quot;, notNullValue())<br>    .body(&quot;email&quot;, notNullValue())<br>    .body(&quot;email.length()&quot;, lessThanOrEqualTo(100))<br>    .body(&quot;status&quot;, anyOf(<br>        equalTo(&quot;ACTIVE&quot;),<br>        equalTo(&quot;INACTIVE&quot;)))<br>    .body(&quot;createdAt&quot;, notNullValue());</pre><p>There is nothing wrong with this test. But it mixes two kinds of checks: the behavior of this particular request and the structure of a valid Customer response. Let’s separate them.</p><p><strong>Moving Structural Validation to JSON Schema</strong></p><p>Some assertions describe the API response rather than the behavior of this particular scenario. We are not removing those checks; we are moving them into a JSON Schema.</p><pre>given()<br>    .when()<br>    .get(&quot;/customers/123&quot;)<br>    .then()<br>    .statusCode(200)<br>    .body(&quot;id&quot;, equalTo(123))<br>-   .body(&quot;name&quot;, notNullValue())<br>-   .body(&quot;email&quot;, notNullValue())<br>-   .body(&quot;email.length()&quot;, lessThanOrEqualTo(100))<br>-   .body(&quot;status&quot;, anyOf(<br>-       equalTo(&quot;ACTIVE&quot;),<br>-       equalTo(&quot;INACTIVE&quot;)))<br>-   .body(&quot;createdAt&quot;, notNullValue());</pre><p>We are not removing these checks. We are moving them into a JSON Schema:</p><pre>{<br>  &quot;$schema&quot;: &quot;https://json-schema.org/draft/2020-12/schema&quot;,<br>  &quot;type&quot;: &quot;object&quot;,<br>  &quot;required&quot;: [<br>    &quot;id&quot;,<br>    &quot;name&quot;,<br>    &quot;email&quot;,<br>    &quot;status&quot;,<br>    &quot;createdAt&quot;<br>  ],<br>  &quot;properties&quot;: {<br>    &quot;id&quot;: {<br>      &quot;type&quot;: &quot;integer&quot;<br>    },<br>    &quot;name&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;maxLength&quot;: 100<br>    },<br>    &quot;email&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;format&quot;: &quot;email&quot;,<br>      &quot;maxLength&quot;: 100<br>    },<br>    &quot;status&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;enum&quot;: [&quot;ACTIVE&quot;, &quot;INACTIVE&quot;]<br>    },<br>    &quot;createdAt&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;format&quot;: &quot;date-time&quot;<br>    }<br>  }<br>}</pre><p>Our REST Assured test now becomes:</p><pre>given()<br>    .when()<br>    .get(&quot;/customers/123&quot;)<br>    .then()<br>    .statusCode(200)<br>    .body(&quot;id&quot;, equalTo(123))<br>    .body(matchesJsonSchemaInClasspath(<br>        &quot;customer-schema.json&quot;<br>    ));</pre><p>We haven’t reduced coverage – we’ve moved structural validation into the schema. <a href="https://pactflow.io/blog/contract-testing-using-json-schemas-and-open-api-part-1/">Pactflow</a> makes a useful distinction here: a schema can describe valid API messages, but that is not necessarily the same thing as describing what an individual consumer relies on.</p><p><strong>Adding Pact: Valid Does Not Mean Compatible</strong></p><p>Our JSON Schema allows email to contain up to 100 characters. Suppose notification-service can handle only 20 characters. The API therefore permits something that one of its consumers cannot handle.</p><p>The <a href="https://docs.pact.io/">Pact documentation</a> describes contracts around the interactions consumers actually use, while the <a href="https://docs.pact.io/faq">Pact FAQ</a> explains why an API schema is not a replacement for consumer expectations.</p><p>This separation is also reflected in <a href="https://www.manning.com/books/contract-testing-in-action">Contract Testing in Action</a> by Marie Cruz and Lewis Prescott, which positions contract testing alongside other testing techniques rather than as their replacement. The book emphasizes that the real value comes from the complete consumer – provider flow: defining the contract on the consumer side and verifying it against the provider.</p><pre>@Pact(consumer = &quot;notification-service&quot;)<br>public V4Pact customerPact(PactDslWithProvider builder) {<br><br>    return builder<br>        .given(&quot;customer 123 exists&quot;)<br>        .uponReceiving(&quot;a request for customer 123&quot;)<br>            .path(&quot;/customers/123&quot;)<br>            .method(&quot;GET&quot;)<br>        .willRespondWith()<br>            .status(200)<br>            .body(new PactDslJsonBody()<br>                .integerType(&quot;id&quot;, 123)<br>                .stringMatcher(<br>                    &quot;email&quot;,<br>                    &quot;^.{1,20}$&quot;,<br>                    &quot;anna@example.com&quot;<br>                ))<br>        .toPact(V4Pact.class);<br>}</pre><p>The consumer test generates the Pact contract.</p><p>Pact Contract</p><pre>{<br>  &quot;consumer&quot;: {<br>    &quot;name&quot;: &quot;notification-service&quot;<br>  },<br>  &quot;provider&quot;: {<br>    &quot;name&quot;: &quot;customer-service&quot;<br>  },<br>  &quot;interactions&quot;: [<br>    {<br>      &quot;description&quot;: &quot;a request for customer 123&quot;,<br>      &quot;request&quot;: {<br>        &quot;method&quot;: &quot;GET&quot;,<br>        &quot;path&quot;: &quot;/customers/123&quot;<br>      },<br>      &quot;response&quot;: {<br>        &quot;status&quot;: 200,<br>        &quot;body&quot;: {<br>          &quot;id&quot;: 123,<br>          &quot;email&quot;: &quot;anna@example.com&quot;<br>        },<br>        &quot;matchingRules&quot;: {<br>          &quot;body&quot;: {<br>            &quot;$.id&quot;: {<br>              &quot;matchers&quot;: [<br>                {<br>                  &quot;match&quot;: &quot;integer&quot;<br>                }<br>              ]<br>            },<br>            &quot;$.email&quot;: {<br>              &quot;matchers&quot;: [<br>                {<br>                  &quot;match&quot;: &quot;regex&quot;,<br>                  &quot;regex&quot;: &quot;^.{1,20}$&quot;<br>                }<br>              ]<br>            }<br>          }<br>        }<br>      }<br>    }<br>  ]<br>}</pre><p>The difference is now visible directly in the artifacts: JSON Schema allows email &lt;= 100 characters, while the Pact contract expresses the notification-service limit of &lt;= 20 characters.</p><p>Practical Java Pact example could be found in <a href="https://www.baeldung.com/pact-junit-consumer-driven-contracts">Baeldung</a>.</p><p>Provider Verification</p><pre>@Provider(&quot;customer-service&quot;)<br>@PactBroker<br>class CustomerProviderPactTest {<br><br>    @BeforeEach<br>    void setUp(PactVerificationContext context) {<br>        context.setTarget(<br>            new HttpTestTarget(&quot;localhost&quot;, 8080)<br>        );<br>    }<br><br>    @TestTemplate<br>    @ExtendWith(<br>        PactVerificationInvocationContextProvider.class<br>    )<br>    void verifyPact(PactVerificationContext context) {<br>        context.verifyInteraction();<br>    }<br>}</pre><p>Suppose the provider returns</p><p><em>anna.mueller.long.address@example.com.</em></p><p>It is valid according to our JSON Schema but violates the expectation of notification-service.</p><p><em>Check …………………………………….. Result</em></p><p><em>REST Assured……………………………. PASS</em></p><p><em>JSON Schema (maxLength: 100) ……. PASS</em></p><p><em>Pact (consumer limit: 20) …………….. FAIL</em></p><p>And this is the distinction I was looking for. REST Assured checks the API interaction. JSON Schema checks the API structure and constraints. Pact checks whether the interaction is still compatible with what a particular consumer expects.</p><p><strong><em>The API can work, the response can be valid, and the integration can still break.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85b338103f17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt Engineering for QA: What Actually Improves the Results?]]></title>
            <link>https://medium.com/@popova.tatiana.o/prompt-engineering-for-qa-what-actually-improves-the-results-90cdc9c9c90c?source=rss-c3da4aa8073c------2</link>
            <guid isPermaLink="false">https://medium.com/p/90cdc9c9c90c</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Popova Tatiana O]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 21:38:25 GMT</pubDate>
            <atom:updated>2026-09-06T21:38:25.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VScpw2EebHCjcQgx3rnIsg.png" /></figure><p>I compared three sources on prompt-engineering techniques: OpenAI’s <strong>ChatGPT Enterprise Prompting Guide</strong>, Anthropic’s <strong>Prompting Best Practices</strong>, and Google’s <strong>Gemini Prompt Design Strategies</strong>. I summarized the techniques they have in common and highlighted the key differences between their approaches.</p><p>The comparison revealed substantial overlap: all three emphasize <strong>clear instructions, relevant context, output requirements, and mechanisms for improving reliability</strong>. At the same time, each guide has its own emphasis. OpenAI presents a compact framework for structuring effective prompts, Anthropic expands on techniques such as examples, role definition, and long-context organization, while Gemini adds detailed guidance on few-shot prompting, prompt decomposition, grounding, iteration, and agentic workflows.</p><p>I then took the <strong>prompting practices shared across the guides</strong> and experimentally tested how much each one influences response quality on a realistic QA task. Finally, I went one step further: instead of improving prompts manually, I tested two reusable prompting skills — <strong>prompt-redrafter</strong> and <strong>grill-me</strong> — to see whether prompt optimization itself can be automated and whether these skills can produce better QA results.</p><h3>Recommended Features</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3eovXz--k6lhWo8RFlshQ.png" /></figure><p>All three guides emphasize the same fundamental ideas: provide relevant <strong>context</strong>, give <strong>clear and specific instructions</strong>, define the expected <strong>output</strong>, and use constraints or verification mechanisms to improve the reliability of the response. Gemini also explicitly recommends few-shot examples, structured prompts, role definitions, grounding, and validation. Its example best-practice template even separates role, instructions, constraints, context, task, and output_format.</p><p>The differences are therefore less about whether the providers recommend good prompt structure and more about <strong>how they organize and extend those recommendations</strong>. OpenAI provides a compact set of general prompt components. Anthropic adds strong guidance around examples, rationale, role definition, XML structure, and long-context organization. Gemini covers many of the same principles but also goes further into prompt decomposition, chaining, iteration, multimodal inputs, grounding, and agentic workflows. For example, Gemini explicitly recommends breaking complex tasks into components or sequential prompt chains.</p><p>For my experiment, I therefore reduce this larger collection of recommendations to four components that form a practical common prompt structure:</p><pre># Instructions<br>The specific task and how it should be approached.<br># Success Criteria / Coverage<br>The definition of a high-quality result.<br># Output Format<br>The required structure and presentation.<br># Accuracy Guardrails<br>Rules for uncertainty, assumptions, and unsupported claims.</pre><p>The idea is to treat a prompt as a <strong>clear engineering handoff</strong>: provide the necessary background, explain what needs to be done, define what a good result looks like, specify how it should be presented, and establish how uncertainty should be handled.</p><p>These components then become the basis for the experiment: <strong>keep the task and context constant, remove one prompt feature at a time, and observe what changes in the QA result.</strong></p><h3>Experiment Design</h3><p>To investigate how the identified prompt features influence response quality, I designed a controlled experiment around a realistic QA task: <strong>creating a manual functional test plan for a new folder-sharing feature</strong>.</p><p>The experiment follows a simple principle: keep the <strong>task and product context constant</strong>, change the prompt structure, and observe how the generated test plan changes.</p><h3>Request and Task Design</h3><p>Every request asks the model to create a manual functional test plan for the same folder-sharing feature in the same web-based document-management application.</p><p>The feature is defined by three acceptance criteria:</p><ol><li>A folder can be shared with another user.</li><li>A user can access a folder that has been shared with them.</li><li>Access to a shared folder can be revoked.</li></ol><p>The acceptance criteria are intentionally concise. They define the required functionality without specifying every possible workflow, validation rule, or edge case. This makes it possible to observe how different prompting techniques influence <strong>test coverage, depth, structure, and handling of unspecified behavior</strong>.</p><h3>Shared Context</h3><p><strong>Context is treated as a control variable rather than an experimental variable.</strong> Removing it would change the information available to the model rather than simply changing how the task is prompted.</p><p>Therefore, every request receives exactly the same product context:</p><ul><li>The task is performed by a Senior QA Engineer testing a web-based document-management application.</li><li>Registered users can create folders, upload and download files, rename files and folders, and delete them.</li><li>Every folder has an <strong>Owner</strong> with full control over the folder and its contents.</li><li>A <strong>Viewer</strong> can open folders, view their contents, and download files, but cannot add, rename, edit, or delete content.</li><li>An <strong>Editor</strong> can open folders, view and download files, and add, rename, edit, and delete content.</li><li>Users are identified by their registered email addresses.</li></ul><p>Keeping this information constant prevents differences in product knowledge from affecting the comparison.</p><h3>Prompt Variants</h3><p>The main experiment uses <strong>prompt ablation</strong>: I start with a complete reference prompt and remove one feature at a time.</p><p><strong>Request 1</strong> is the reference and contains all four evaluated prompt features: Detailed Instructions, Success Criteria / Coverage, Output Format, and Accuracy Guardrails.</p><p><strong>Requests 2–5</strong> each remove exactly one of these features while keeping everything else unchanged. This allows me to observe what changes when a particular component is missing.</p><p><strong>Request 6</strong> removes all four evaluated features and keeps only the Task and Context. It serves as a minimal-prompt baseline.</p><p>The final two requests address a different question: <strong>can prompt improvement itself be automated?</strong></p><p><strong>Request 7</strong> uses the skill prompt-redrafter to refine the complete prompt, while <strong>Request 8</strong> combines the complete prompt with the skill grill-me requirement discovery before generating the test plan.</p><p>The complete prompts used in the experiment are available in testdata/testplan/input.mdin <a href="https://github.com/tpopova13x/prompts_comparison">https://github.com/tpopova13x/prompts_comparison</a>.</p><h3>Repeated Runs</h3><p>Each request is executed <strong>five times</strong>, producing <strong>40 test plans in total</strong>.</p><p>Repeating each configuration helps account for variability between LLM responses. Instead of judging a prompting technique from a single generation, I look for recurring differences across the runs.</p><p>This creates two related parts of the experiment: the first investigates <strong>what happens when individual prompt features are removed</strong>, while the second investigates <strong>whether reusable prompting skills can automate prompt improvement and produce better QA results</strong>.</p><p>The next step is to compare the generated test plans and determine which dimensions of response quality each prompt feature actually influences.</p><h3>Final Conclusion</h3><p>All four evaluated prompt features and both prompting skills proved useful in this experiment, but they influenced different dimensions of response quality.</p><ul><li><strong>Accuracy Guardrails</strong> had the clearest effect on factual reliability. Without them, the model was more likely to turn unspecified behavior into asserted product behavior instead of marking it as Needs clarification.</li><li><strong>Output Format</strong> primarily improved usability and consistency. Without it, the model still generated useful test content, but the structure varied and became harder to scan, compare, and reuse.</li><li><strong>Detailed Instructions</strong> improved scenario breadth. The core acceptance criteria were still covered without them, but useful negative, system-state, and multi-user checks were more likely to disappear.</li><li><strong>Success Criteria / Coverage</strong> helped define when the result was sufficiently complete. Without them, the plan could remain usable while omitting isolation, failure-path, or other quality-focused scenarios.</li><li><strong>Task + Context alone</strong> were not enough for a dependable prompt. The model could still produce a substantial test plan, but it chose its own structure and was more likely to invent unspecified workflow or access behavior.</li><li><strong>prompt-redrafter</strong> helped preserve the important prompt components in a more systematic form. Its value was mainly in completeness and consistency rather than in adding one isolated feature.</li><li><strong>grill-me + the complete prompt</strong> was especially useful when requirements were incomplete. Requirement discovery helped resolve high-impact ambiguity first, while the full prompt then controlled coverage, structure, and factual restraint. This combination should not be treated as a direct like-for-like comparison with prompts that did not receive the clarified requirements.</li></ul><p><strong>Context</strong> was intentionally held constant in every request. Because it contains the product knowledge required to perform the task, it was treated as a control variable rather than tested as an omission.</p><p>The broader takeaway is that prompt features are not interchangeable. They solve different problems: instructions influence breadth, success criteria influence completeness, output format influences usability, and guardrails influence factual reliability.</p><p>For QA work, that means a good prompt should be treated like a well-defined engineering handoff rather than a long collection of tricks.</p><p>Detailed results and the full experiment setup are available in the GitHub repository: <a href="https://github.com/tpopova13x/prompts_comparison">https://github.com/tpopova13x/prompts_comparison</a></p><h3>Resources</h3><ol><li><strong>OpenAI — ChatGPT Prompting Guide</strong><br> <a href="https://github.com/openai/openai-cookbook/blob/main/examples/chatgpt/chatgpt_prompt_guide/chatgpt_prompt_guide.md?utm_source=chatgpt.com">OpenAI ChatGPT Prompting Guide</a></li><li><strong>Anthropic — Prompting Best Practices</strong><br> <a href="https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices?utm_source=chatgpt.com">Claude Prompting Best Practices</a></li><li><strong>Google — Gemini Prompt Design Strategies</strong><br> <a href="https://ai.google.dev/gemini-api/docs/prompting-strategies?authuser=565281853&amp;utm_source=chatgpt.com">Gemini Prompt Design Strategies</a></li><li><strong>DeepLearning.AI — ChatGPT Prompt Engineering for Developers by Andrew Ng and Isa Fulford</strong><br> <a href="https://www.deeplearning.ai/courses/chatgpt-prompt-eng?utm_source=chatgpt.com">ChatGPT Prompt Engineering for Developers</a></li><li><strong>Matt Pocock — </strong><strong>grill-me Skill</strong><br> <a href="https://www.aihero.dev/skills-grill-me?utm_source=chatgpt.com">The /grill-me Skill</a></li><li><strong>prompt-redrafter Skill</strong></li></ol><p>Taken from <a href="https://github.com/openai/openai-cookbook/blob/main/examples/chatgpt/chatgpt_prompt_guide/chatgpt_prompt_guide.md?utm_source=chatgpt.com">OpenAI ChatGPT Prompting Guide</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90cdc9c9c90c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When the Camera Doesn’t Work: Testing a Robotics Camera Layer by Layer]]></title>
            <link>https://medium.com/@popova.tatiana.o/when-the-camera-doesnt-work-testing-a-robotics-camera-layer-by-layer-2a9db49ba847?source=rss-c3da4aa8073c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a9db49ba847</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[reachy-mini]]></category>
            <dc:creator><![CDATA[Popova Tatiana O]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 19:38:42 GMT</pubDate>
            <atom:updated>2026-08-26T08:43:06.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*y7wcIV-WEIDTHMCOrqCafQ@2x.jpeg" /></figure><p>When a camera stops working in a robotics system, the visible symptom is often deceptively simple: there is no image.</p><p>But “no image” can mean many different things.</p><p>The sensor may not be detected. The Linux camera stack may fail to capture a frame. GStreamer may not receive the stream. The robot daemon may fail during media initialization. WebRTC may not establish transport. Or everything may work until the application requests the final image.</p><p>Trying to debug the whole chain at once makes it difficult to understand where the problem actually starts.</p><p>A much more useful approach is to test the camera layer by layer, starting from the lowest level and introducing exactly one new dependency at each step.</p><p>For this example, I use a Reachy Mini camera pipeline, but the same principle applies to many hardware-software and robotics systems.</p><p><strong>The Camera Pipeline</strong></p><p>At a high level, the path looks like this:</p><blockquote>Camera sensor → Linux camera stack → GStreamer → Reachy daemon → WebRTC → Python SDK → Application</blockquote><p>Instead of treating this as one large end-to-end test, we can create several test boundaries. The rule is simple: if layer N works and layer N+1 fails, investigate what was introduced between those two layers.</p><p><strong>Level 1 – Sensor Discovery</strong></p><p>Start at the lowest possible level.</p><pre>rpicam-hello – list-cameras</pre><p>This does not test the complete video pipeline. It answers a much smaller question: can the system discover and register the physical camera sensor?</p><p>For Reachy Mini, we expect the IMX708 sensor to be discovered through the Linux/libcamera stack.</p><p>If this step fails, there is little value in debugging WebRTC or Python. The problem is much closer to the hardware: sensor connection, CSI/I²C communication, kernel driver or camera registration.</p><p>This is our first boundary.</p><p><strong>Level 2 – Local Image Capture</strong></p><p>Once the sensor is visible, the next question is whether it can actually produce an image.</p><pre>rpicam-jpeg -o /tmp/test.jpg – timeout 3000</pre><p>Now several components are involved:</p><blockquote>IMX708 → driver → CSI → libcamera → image processing → JPEG</blockquote><p>If /tmp/test.jpg contains a valid image, we have proved much more than sensor discovery. The local Linux camera pipeline can capture real data.</p><p>If sensor discovery succeeds but local capture fails, we already have a relatively small area to investigate.</p><p><strong>Level 3 – GStreamer Camera Pipeline</strong></p><p>Next, introduce GStreamer.</p><pre>gst-launch-1.0 libcamerasrc ! videoconvert ! fakesink</pre><p>This deliberately creates a minimal pipeline.</p><p>libcamerasrc receives frames through libcamera, videoconvert handles pixel-format conversion, and fakesink consumes the frames without displaying or transmitting them.</p><p>There is still no WebRTC, network or Python application involved.</p><p>The question is simply: can GStreamer continuously receive and process camera frames?</p><p>If local JPEG capture works but this test fails, the sensor itself is probably not the first place to look. The new boundary points us toward GStreamer, libcamerasrc, plugin availability, configuration or camera ownership.</p><p><strong>Level 4 – Reachy Daemon</strong></p><p>The next dependency is the robot’s software layer.</p><pre>sudo systemctl status reachy-mini-daemon.service<br><br>sudo journalctl -u reachy-mini-daemon.service -n 100 – no-pager</pre><p>A perfectly functional camera does not necessarily mean that the application stack can use it.</p><p>The Reachy daemon is responsible for initializing parts of the media infrastructure used by higher-level clients.</p><p>At this level I want to know:</p><p>Is the daemon alive, and did its camera/media initialization succeed?</p><p>The service status tells us whether the process is running. The journal tells us what happened during initialization and operation.</p><p>This distinction matters: the service is running and the camera pipeline is healthy are not equivalent statements.</p><p><strong>Level 5 – WebRTC Transport</strong></p><p>Now the test becomes distributed.</p><p>The video has to travel from the robot to the client:</p><blockquote>Camera → GStreamer → WebRTC producer → signalling/media → network → WebRTC client</blockquote><p>Verbose GStreamer logging can help expose this boundary:</p><pre>GST_DEBUG=webrtc*:6 python camera_test.py</pre><p>At this point we are no longer asking whether the camera can produce frames. The previous tests have already established that.</p><p>We are asking: can those frames successfully cross the WebRTC transport boundary?</p><p>If the lower layers pass but this one fails, investigation can focus on signalling, producer/receiver lifecycle, network reachability, WebRTC plugins and media publishing.</p><p>This is exactly why testing from the bottom upward is useful: we avoid reopening already-proven parts of the system.</p><p><strong>Level 6 – SDK Receives a Frame</strong></p><p>Eventually the camera data reaches the API used by the application.</p><pre>frame = mini.media.get_frame()</pre><p>Now we test whether the Python SDK can obtain a decoded frame through its media backend.</p><p>A successful call tells us that the transport/client pipeline reaches the SDK and that usable image data is available to Python.</p><p>The chain has become much longer:</p><blockquote>Camera → GStreamer → WebRTC → network → client → MediaManager → decoded frame</blockquote><p>Yet because every previous boundary was tested separately, a failure here is much easier to reason about.</p><p><strong>Level 7 – Application Receives the Image</strong></p><p>Finally, test the representation actually consumed by the application.</p><p>For example:</p><pre>jpeg = mini.media.get_frame_jpeg()</pre><p>At this point we have reached the highest level of the camera path.</p><p>For a vision agent, this may be the image representation passed to a Vision LLM or another perception component.</p><p>If get_frame() works but JPEG retrieval fails, I would not start debugging the physical camera again. The interesting difference between the two tests is now much higher in the stack: SDK image/JPEG conversion or application-level handling.</p><p><strong>The Debugging Logic</strong></p><p>The complete strategy can be summarized as:</p><ol><li>Sensor discovery</li></ol><p>↓</p><p>2. Local capture</p><p>↓</p><p>3. GStreamer</p><p>↓</p><p>4. Reachy daemon</p><p>↓</p><p>5. WebRTC</p><p>↓</p><p>6. SDK frame</p><p>↓</p><p>7. Application image</p><p>Suppose Level 2 succeeds but Level 3 fails. The camera, sensor discovery and local libcamera capture have already been demonstrated. The new dependency is GStreamer, so that becomes the primary investigation area.</p><p>Or suppose Level 5 succeeds but Level 6 fails. Debugging the ribbon cable would make little sense: the video has already travelled through the physical camera and transport stack. The failure boundary is much closer to the WebRTC client, media backend or SDK.</p><p>This gives us a useful principle:the first failing boundary tells you where to investigate next.</p><p><strong>From Debugging to Testing Strategy</strong></p><p>What I like about this approach is that it is not specific to cameras.</p><p>Robotics systems frequently combine hardware, drivers, operating-system services, middleware, networking, SDKs and AI applications. An end-to-end failure can therefore have a very large search space.</p><p>Layered testing reduces that space.</p><p>Start with the smallest component you can observe. Prove that it works. Add one dependency. Test again. Continue until something breaks.</p><p>Instead of asking: “Why doesn’t my camera work?” we can eventually ask something much more precise: “Local capture works, but frames stop appearing when GStreamer is introduced.”</p><p>That is a much better debugging problem.</p><p>And the same principle can be applied to microphones, sensors, robot actuators and many other hardware-software pipelines:</p><p>Start at the lowest layer. Add exactly one dependency at each step. Let the first failing boundary tell you where to look.</p><p>#Robotics #SoftwareTesting #QualityEngineering #ComputerVision #CameraTesting #HardwareTesting #GStreamer #WebRTC #Python #TestAutomation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a9db49ba847" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing a Multimodal LLM Agent: Voice, Vision and Physical Action]]></title>
            <link>https://medium.com/@popova.tatiana.o/testing-a-multimodal-llm-agent-voice-vision-and-physical-action-4dbfc984745c?source=rss-c3da4aa8073c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dbfc984745c</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[multimodal-ai]]></category>
            <category><![CDATA[llm-agent]]></category>
            <dc:creator><![CDATA[Popova Tatiana O]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 20:20:25 GMT</pubDate>
            <atom:updated>2026-08-22T06:43:41.129Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUp8WadM6IXRgUXps2SvCQ.png" /></figure><p>LLM-based applications are no longer limited to text input and text output. Modern agents can process voice, analyze images, select tools, and even interact with the physical world. This creates an interesting testing challenge because a single user action may travel through several independent components before producing the final result.</p><p>A voice command, for example, can involve audio recording, speech recognition, LLM reasoning, tool selection, and hardware execution. Vision introduces another pipeline where an image is captured, analyzed by a multimodal model, and transformed into an action. If we test only the final behavior, it becomes difficult to understand which component caused a failure.</p><p>I explored this problem by building a small voice and vision agent for the Reachy Mini robot. The project combines voice commands, image processing, LLM reasoning, tool calling, and physical robot movement. This makes it a useful example for exploring how multimodal AI systems can be tested at different levels. In this article, I will describe the agent architecture, my testing strategy, and a concrete example of an LLM tool-selection dataset.</p><h3>1. Agent Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aD1gD-HmOtOsSDGiEbeplg.png" /><figcaption><em>Reachy Mini Voice &amp; Vision Agent</em></figcaption></figure><p>The Reachy Mini agent accepts two types of input: <strong>voice and images</strong>. In the voice pipeline, the user speaks a command that is recorded as an audio file and passed to a speech-to-text model. The resulting transcription is then provided to an LLM that interprets the user’s intent and selects an appropriate skill.</p><p>The available movement skills are look_left, look_center, and look_right. The agent also provides a composite follow_me skill that combines voice and vision processing. When follow_me is selected, the robot captures an image using its camera and sends it to a vision-capable LLM.</p><p>The vision model analyzes the person’s position and determines whether the robot should look left, center, or right. This decision is mapped to one of the same movement skills used by the voice pipeline. The LLM is therefore responsible for understanding and decision-making, while deterministic application code executes the selected action. Voice and vision follow different processing paths, but eventually converge on the same tool-execution and robot-movement layer.</p><h3>2. Testing Strategy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdGkwNxJQsdeJyRWC0Qk0Q.png" /><figcaption><em>Reachy Mini Voice &amp; Vision Testing Strategy</em></figcaption></figure><p>The testing strategy follows the architecture of the agent and validates the system at several different layers. For the voice pipeline, the main components are voice recording, transcription, LLM reasoning, tool calling, and robot movement. Voice recording can be tested with robustness scenarios such as background noise, different distances, low volume, and different speaking speeds.</p><p>Transcription tests verify that recorded audio is converted into the expected text before LLM reasoning is involved, while LLM integration tests verify whether natural-language commands are mapped to the expected robot tools. At the next boundary, tool-level tests check that the selected function produces the expected robot command.</p><p>The vision pipeline follows a similar structure, with camera tests, image tests, vision-model tests, direction-decision tests, and movement tests. Image robustness scenarios can vary lighting, distance, person position, or the number of people visible in the frame. Finally, a smaller set of end-to-end scenarios validates the complete path from user input to actual physical movement. This layered approach makes failures easier to localize because each important transition in the multimodal pipeline can be tested independently.</p><h3>3. Integration Testing: LLM Tool Selection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJq5gIs3NeiHYQau0HoYIA.png" /><figcaption><em>Integration Tests: LLM Tool Selection</em></figcaption></figure><p>One particularly interesting integration point is the transition from a natural-language user command to an LLM tool call. At this level, the purpose of the test is not to verify physical robot movement but to verify the model’s decision. The test provides a user command to the LLM and compares the selected function with the expected tool.</p><p>This makes the tests relatively fast because the physical robot is not required, while also isolating LLM reasoning from speech recognition and hardware execution. For this project, I divided the tool-selection dataset into four categories: <strong>Happy Path, No Action, Ambiguous, and DE / Paraphrases</strong>. Together, they test whether the model can recognize explicit commands, avoid unnecessary actions, deal with unclear instructions, and understand different ways of expressing the same intent.</p><h3>Happy Path</h3><p>Happy Path tests cover straightforward interactions where both the movement intention and direction are explicit. They establish the baseline behavior of the tool-selection mechanism and verify that the basic movement tools can be reached through natural-language commands.</p><p><strong>Examples:</strong></p><ul><li>&quot;Look to the left&quot; → look_left</li><li>&quot;Turn right, please&quot; → look_right</li><li>&quot;Look straight ahead&quot; → look_center</li></ul><p>Because these commands are intentionally clear, failures are relatively easy to interpret. If the model cannot reliably map them to the expected functions, testing more complex language variations provides little additional value. The Happy Path dataset therefore acts as the basic functional check for LLM tool selection.</p><h3>No Action</h3><p>A user speaking to the robot does not necessarily mean that the robot should move. The No Action dataset checks whether the LLM can distinguish actionable movement commands from ordinary conversation.</p><p><strong>Examples:</strong></p><ul><li>&quot;Hello Reachy!&quot; → no_action</li><li>&quot;What time is it?&quot; → no_action</li><li>&quot;Nice robot!&quot; → no_action</li></ul><p>These cases are particularly important for an agent that controls a physical device. An unnecessary tool call is not merely an incorrect text response; it can produce unintended physical behavior. The dataset therefore tests whether the model understands not only <strong>when to act</strong>, but also <strong>when not to act</strong>.</p><h3>Ambiguous</h3><p>The Ambiguous dataset contains commands where movement may be mentioned, but the intended action is not sufficiently clear. The goal is to verify that the LLM does not make an unsupported decision simply because it recognizes the name of an available direction.</p><p><strong>Examples:</strong></p><ul><li>&quot;Look left or right&quot; → no_action</li><li>&quot;Turn somewhere&quot; → no_action</li><li>&quot;Move left... actually right&quot; → no_action</li></ul><p>The presence of words such as <em>left</em> or <em>right</em> should not automatically trigger the corresponding function. In these scenarios, selecting a movement would require the model to resolve uncertainty that the user has not resolved. This category therefore tests whether the agent considers the meaning of the complete instruction before selecting a tool.</p><h3>DE / Paraphrases</h3><p>Natural-language interfaces should not require users to memorize one exact command for every action. The DE / Paraphrases dataset checks whether the same underlying intent is preserved when the wording or language changes.</p><p><strong>Examples:</strong></p><ul><li>&quot;Schau nach links&quot; → look_left</li><li>&quot;Dreh den Kopf nach rechts&quot; → look_right</li><li>&quot;Schau wieder geradeaus&quot; → look_center</li></ul><p>These examples verify that tool selection is based on semantic intent rather than exact string matching. They also show how multilingual inputs can be included in the same functional evaluation. This type of robustness is especially relevant for an LLM-based interface, because understanding different expressions of the same intention is one of its main advantages over fixed command matching.</p><h3>From Integration Tests to Better Instructions</h3><p>The integration tests also directly influenced the agent instructions. When a test exposed an incorrect tool selection, I could use that failure to refine the rules given to the LLM. For example, the <strong>No Action</strong> and <strong>Ambiguous</strong> datasets showed that it was not enough to describe when each movement tool should be used — the model also needed an explicit rule for situations where it should not move.</p><p>The current instructions are:</p><pre>instructions=(<br>    &quot;You control a Reachy Mini robot. &quot;<br>    &quot;Select exactly one tool. &quot;<br>    &quot;Use look_left for a clear request &quot;<br>    &quot;to look left. &quot;<br>    &quot;Use look_right for a clear request &quot;<br>    &quot;to look right. &quot;<br>    &quot;Use look_center for a clear request &quot;<br>    &quot;to face forward or return to center. &quot;<br>    &quot;Use follow_me when the user asks &quot;<br>    &quot;the robot to follow them, find them, &quot;<br>    &quot;look at them, or face them using &quot;<br>    &quot;the camera. &quot;<br>    &quot;Use no_action if no movement is &quot;<br>    &quot;requested or if the request is &quot;<br>    &quot;ambiguous or conflicting.&quot;<br>)</pre><p>This creates a simple feedback loop: <strong>define expected behavior → run the dataset → analyze failures → refine the instructions → run the dataset again</strong>. The dataset therefore works not only as a regression test suite, but also as a practical tool for improving the agent’s behavior while keeping previously working scenarios under control.</p><h3>Conclusion</h3><p>Testing a multimodal LLM agent requires looking beyond the final model response. In this project, a single interaction can pass through audio processing, transcription, LLM reasoning, tool selection, vision processing, and physical execution. Testing only the complete pipeline would make failures difficult to diagnose, while dividing the architecture into testable layers makes it possible to identify where incorrect behavior begins.</p><p>Audio and image robustness tests focus on the quality of the inputs, while integration tests validate how information moves between components. LLM tool-selection tests provide a particularly useful boundary because they separate language understanding from physical robot behavior. The four datasets — <strong>Happy Path, No Action, Ambiguous, and DE / Paraphrases</strong> — evaluate different aspects of this decision-making process.</p><p>Together, these tests check not only whether the agent chooses the correct action, but also whether it knows when no action should be taken. The same principle can be applied to larger systems combining speech, vision, LLMs, tools, and hardware. Making intermediate decisions observable and testable turns a complex multimodal agent into a system whose behavior can be evaluated systematically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dbfc984745c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing testing with GenAI. Manual testing]]></title>
            <link>https://medium.com/@popova.tatiana.o/enhancing-testing-with-genai-manual-testing-efc826d38ac6?source=rss-c3da4aa8073c------2</link>
            <guid isPermaLink="false">https://medium.com/p/efc826d38ac6</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Popova Tatiana O]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 21:09:35 GMT</pubDate>
            <atom:updated>2026-06-06T18:17:53.512Z</atom:updated>
            <content:encoded><![CDATA[<p>LLMs can generate tests in seconds — yet in practice, many of them provide little real value. This is not a limitation of the model’s capability, but of the context it operates in. Without access to system-specific knowledge — such as GitLab, Confluence, and Jira Xray— the model cannot align its output with the actual product. As a result, even highly capable models tend to produce generic tests that fail to capture meaningful scenarios or real-world constraints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoa6M9rS5qmT3qMvmh6AMw.png" /></figure><p>This article introduces a practical solution: augmenting LLMs with real QA context using MCP (Model Context Protocol).</p><p><strong>Technical solution</strong></p><p>At the core of this approach is a <strong>Model Context Protocol (MCP) server</strong> that exposes QA knowledge as structured tools.</p><pre>            ┌─────────────┐       ┌───────────┐<br>            │  MCP Client │─────▶│ MCP Server│<br>            │  (Copilot)  │       │  :8080    │<br>            └─────────────┘       └─────┬─────┘<br>                                        │<br>                    ┌───────────────────┼────────────────────┐      <br>                    ▼                   ▼                    ▼<br>            ┌──────────────┐   ┌──────────────────┐   ┌──────────────┐<br>            │ user_docs()  │   │ internal_docs()  │   │   tests()    │<br>            └──────┬───────┘   └────────┬─────────┘   └──────┬───────┘<br>                   │                    │                    │<br>                   ▼                    ▼                    ▼<br>            ┌────────────┐        ┌────────────┐       ┌────────────┐<br>            │  ChromaDB  │        │  ChromaDB  │       │ PostgreSQL │<br>            │  :8000     │        │  :8000     │       │  :5432     │<br>            └──────┬─────┘        └──────┬─────┘       └──────┬─────┘<br>                   │                     │                    │<br>                   ▼                     ▼                    ▼<br>            ┌────────────┐        ┌────────────┐        ┌────────────┐<br>            │  GitLab    │        │ Confluence │        │ Jira Xray  │<br>            └────────────┘        └────────────┘        └────────────┘</pre><p>The MCP client, such as Copilot, serves as the interface where engineers interact with the system. All requests from the client are routed to the MCP server, which is responsible for orchestrating data retrieval. Instead of directly accessing databases, the server exposes functionality through structured tools. These tools are represented as functions: user_docs(), internal_docs(), and tests(). Each function encapsulates a specific domain of QA knowledge.</p><p>The user_docs() function retrieves user-facing documentation stored in ChromaDB. This documentation originates from GitLab repositories and is ingested as markdown content.<br>The internal_docs() function provides access to internal and API documentation. This data is sourced from Confluence and stored as vectorized text in ChromaDB. Both documentation types are handled through semantic search, enabling flexible and context-aware retrieval.<br>The tests() function queries structured test cases stored in PostgreSQL. These test cases are exported from Jira Xray and include fields such as steps, descriptions, and identifiers. By separating unstructured and structured data, the system optimizes retrieval strategies for each type of information. As a result, the LLM can generate responses grounded in real system context, significantly improving the quality of test creation and analysis.</p><p>The system is fully containerized using Docker Compose, including ChromaDB for vector search, PostgreSQL for structured test data, ingestion pipelines, and the MCP server. This setup ensures reproducibility and allows easy integration with external sources such as GitLab, Confluence, and Jira Xray. More details about the setup, configuration, and implementation can be found in the GitHub repository <a href="https://github.com/tpopova13x/mcp_qa">https://github.com/tpopova13x/mcp_qa</a>.</p><p><strong>Experiment</strong></p><p>As test data, I use a simplified folder management system that implements four basic requirements: <strong>create folder, list folders, share folders, and delete folders</strong>. Below is a brief overview of the existing artifacts that can be used as context for test generation.</p><pre>|         Source         |                        Content                              |<br>|------------------------|-------------------------------------------------------------|<br>|    User Documentation  | Describes the system from the user&#39;s perspective            |<br>|                        | Explains actions like creating, sharing, and deleting folder|<br>|                        | Defines visibility rules and basic access limitations       | <br>|------------------------|-------------------------------------------------------------|<br>| Internal Documentation | Defines system behavior and permission logic                |<br>|                        | Describes roles, access rules, and constraints              |<br>|                        | Includes API endpoints and expected responses               |<br>|------------------------|-------------------------------------------------------------|<br>|      Existing Tests    | Contains baseline test coverage for core functionality      |<br>|                        | Validates create, list, share, and delete operations        |<br>|                        | Covers both user and admin roles                            |</pre><p>Next, I introduce a new requirement: <strong>A folder owner can rename a folder.</strong><br>If tests are created only from the acceptance criterion, the result is very limited.</p><pre>|         Source         |                 Derived Tests                |<br>|------------------------|----------------------------------------------|<br>|         Only AC        | Owner renames folder                         |<br>|                        | Non-owner cannot rename folder               |</pre><p>However, if the model is allowed to use the existing artifacts as context, it can generate a much broader and more realistic set of tests.</p><pre>|         Source         |                 Derived Tests                |<br>|------------------------|----------------------------------------------|<br>|    User Documentation  | Shared user sees renamed folder              |<br>|                        | Shared user cannot rename folder             |<br>|                        | Renamed folder appears in folder list        | <br>|------------------------|----------------------------------------------|<br>| Internal Documentation | Admin can rename folder not owned by them    |<br>|------------------------|----------------------------------------------|<br>|      Existing Tests    | Renamed folder still appears in list         |<br>|                        | Shared folder remains accessible after rename|<br>|                        | Renamed folder can still be deleted          |<br>|                        | Admin behavior remains valid after rename    |</pre><p>As this example shows, the second approach produces significantly better coverage than relying on the acceptance criterion alone.<br> — <strong>User documentation</strong> contributes expected behavior such as visibility and sharing restrictions.<br> — <strong>Internal documentation</strong> contributes hidden system rules such as admin permissions.<br> — <strong>Existing tests</strong> contribute regression knowledge by showing what must continue to work after the new feature is introduced.</p><p><strong><em>The real value of GenAI is not just generating tests for a new requirement, but enriching them with product behavior, internal rules, and regression knowledge from existing QA artifacts.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efc826d38ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>