<?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 Berk Yılmazer on Medium]]></title>
        <description><![CDATA[Stories by Berk Yılmazer on Medium]]></description>
        <link>https://medium.com/@berkyilmazer89?source=rss-a978573d7ef0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m1mZ200p_7ALIIjg5iibyA.png</url>
            <title>Stories by Berk Yılmazer on Medium</title>
            <link>https://medium.com/@berkyilmazer89?source=rss-a978573d7ef0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:56:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@berkyilmazer89/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[One CLAUDE.md Wasn’t Enough: The Case for Modular AI Instructions]]></title>
            <link>https://medium.com/@berkyilmazer89/one-claude-md-wasnt-enough-the-case-for-modular-ai-instructions-57e429585ee9?source=rss-a978573d7ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/57e429585ee9</guid>
            <dc:creator><![CDATA[Berk Yılmazer]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 10:11:53 GMT</pubDate>
            <atom:updated>2026-10-15T10:11:53.481Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why we split our AI rule file into a small core and on-demand topic files — and what changed when we did</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MetRsjDP0gBlgjmAoivvfg.png" /></figure><p>When we started using Claude Code in our QA automation project, the setup was simple. We had one CLAUDE.md file at the root of the repository, holding everything the AI needed to know about how we work.</p><p>That worked well for a while. Then the file kept growing.</p><p>Every time the AI made a mistake we didn’t want to see again, we added a rule. Every new provider brought its own exceptions. Every code review surfaced a convention nobody had written down.</p><p>Within a few months, one file was trying to be our coding standard, naming guide, test-writing manual, CI policy, code-review checklist, and onboarding document all at once.</p><p>So we split it.</p><p>Although our implementation uses Claude Code and CLAUDE.md, the pattern isn&#39;t Claude-specific. Codex uses AGENTS.md, while other AI coding tools provide similar mechanisms for project-level instructions. The filenames and loading rules differ, but the design problem is the same: keep universal instructions small, scope specialised guidance to the tasks that need it, and give every rule a single source of truth.</p><h3>What the structure looks like now</h3><pre>CLAUDE.md                  ← the core: always loaded (~140 lines)<br>CLAUDE-TEST-WRITING.md     ← how a test is structured, step by step<br>CLAUDE-NAMING.md           ← packages, classes, routing keys<br>CLAUDE-LANGUAGE.md         ← annotations, constants, logging<br>CLAUDE-CODE-STANDARDS.md   ← general code quality rules<br>CLAUDE-CODE-REVIEW.md      ← what a reviewer checks<br>CLAUDE-CI.md               ← pipeline rules<br>CLAUDE-ONBOARDING.md       ← where a new teammate starts</pre><p>In our repository setup, the root CLAUDE.md is the only project rule file we intentionally keep always-on.</p><p>It contains the things that apply to almost every task: the project overview, essential constraints, the “never do this” list, and a short summary of each topic.</p><p>It also tells Claude which file to read when a task needs more detail:</p><pre>## Routing Key Pattern</pre><pre>Use service.{provider-lowercase}-consumer</pre><pre>Before creating or modifying routing keys, read<br>[Naming → Routing Keys](CLAUDE-NAMING.md).</pre><p>These are plain Markdown links, not imports. A link alone does not guarantee that Claude will read the target file, so the core includes explicit routing instructions such as “before creating or modifying tests, read the test-writing guide.”</p><p>This keeps the topic files out of the default context while making it clear when they should be loaded.</p><p>Out of roughly 830 lines of rules in total, only about 140 are present in every session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*De6tDKrgoFOHr3mItb-JRA.png" /><figcaption>Only the 140-line core stays in every session; the remaining rules are loaded when the task requires them.</figcaption></figure><h3>Why it matters: three things we noticed</h3><h3>1. Less context noise, better focus</h3><p>An AI rule file isn’t free. Everything in it competes for the model’s attention on every task.</p><p>When a test-writing task carries a long block of CI policy, onboarding instructions, and code-review details, the rules that actually matter for that task become harder to see.</p><p>With a small core and on-demand detail, the always-present rules are the ones that apply almost everywhere. The rest is loaded only when the task calls for it.</p><p>The goal isn’t merely to reduce the number of lines. It is to increase the signal-to-noise ratio of the context we provide.</p><h3>2. Each tool gets only the rules for its job</h3><p>This was the biggest win, and the least obvious one.</p><p>We don’t only use Claude interactively. We also run it inside automation:</p><ul><li>Our pre-commit workflow reviews staged changes using only the core instructions and code-review rules.</li><li>Our <strong>test-generation skill</strong> uses CLAUDE-TEST-WRITING.md.</li><li>Our <strong>pre-push review</strong> mirrors the CI merge-request review and uses the same rule set as the commit hook.</li></ul><p>A reviewer doesn’t need the onboarding guide. A test generator doesn’t need the pipeline policy.</p><p>Splitting the rules lets us give each agent a focused brief instead of the entire handbook.</p><h3>3. One owner per rule, so no contradictions</h3><p>In a single large file, the same rule tends to appear in multiple places, written slightly differently.</p><p>Over time, those copies drift apart. The AI then has to guess which version is authoritative.</p><p>We made every topic owned by exactly one file. The core summarises and routes; it does not duplicate the detail.</p><p>You’ll find lines such as:</p><p><em>The standard five-step test flow is owned by Test Writing.</em></p><p>When a convention changes, we update it in one place.</p><p>This also makes reviews easier. A naming change belongs in the naming file. A pipeline change belongs in the CI file. Ownership is visible instead of implicit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iA6P8642sEif8xrVTBJ77A.png" /><figcaption><em>Less context noise, more focused agents, and one source of truth for every rule.</em></figcaption></figure><h3>A lesson we learned the hard way</h3><p>Once rules are used in automation, a wrong rule is applied at scale.</p><p>At one point, our commit-time AI review started flagging perfectly valid code. The code wasn’t the problem. One of our rule files described an aspiration — how we thought the code <em>should</em> be written — rather than what the codebase actually did.</p><p>Claude followed the rule literally, exactly as instructed.</p><p>Since then, we have followed one principle:</p><p><strong>Rules describe the committed reality, not wishes.</strong></p><p>Before a convention goes into a rule file, we check it against the code that is actually on the main branch. If the team wants to change a convention, we change the code and the rule together.</p><p>Otherwise, the AI becomes very consistent at enforcing something the project itself does not follow.</p><h3>Not every rule belongs in Markdown</h3><p>There is another distinction that matters: an AI instruction is not the same thing as enforcement.</p><p>If a rule can be checked deterministically with a test, linter, formatter, compiler, or CI check, we enforce it there.</p><p>We use the Markdown files for conventions that require context or judgment:</p><ul><li>Which abstraction fits a particular type of test;</li><li>How provider-specific exceptions should be handled;</li><li>What reviewers should look for beyond static analysis;</li><li>When two technically valid approaches are not equally appropriate for our project.</li></ul><p>The safest setup is not to ask the AI to enforce everything. It is to let deterministic tools handle deterministic rules and give the AI the context needed for the rest.</p><h3>It’s documentation for humans too</h3><p>The side effect we didn’t plan for was that these files became our team’s living documentation.</p><p>A new teammate starts with CLAUDE-ONBOARDING.md. Someone unsure how to name a test class opens CLAUDE-NAMING.md. A reviewer can consult the same checklist used by the automated review.</p><p>The same text guides both the AI and the people working on the project.</p><p>Because the AI uses these rules every day, outdated or ambiguous guidance tends to become visible quickly. What began as AI configuration turned into documentation that is continuously exercised against real work.</p><h3>If you want to try this</h3><ul><li><strong>Keep the core small.</strong> Only information that applies to almost every task belongs in the always-loaded file.</li><li><strong>Adapt the mechanism, keep the pattern.</strong> Claude Code uses CLAUDE.md; Codex uses AGENTS.md; other tools have their own equivalents. The filename matters less than how the guidance is scoped and maintained.</li><li><strong>Route explicitly.</strong> Don’t rely on a Markdown link alone; tell the agent when it must read the referenced file.</li><li><strong>Link, don’t import, for optional detail.</strong> Imported content still consumes the initial context.</li><li><strong>Give every topic a single owner.</strong> Summarise and route from the core, but don’t duplicate the full rule.</li><li><strong>Feed automated agents only their slice.</strong> A review hook needs review rules, not the entire handbook.</li><li><strong>Verify rules against real code.</strong> This is especially important when automation will apply them repeatedly.</li><li><strong>Use deterministic enforcement where possible.</strong> Tests, linters, formatters, and CI checks are more reliable than written instructions for rules that can be mechanically verified.</li><li><strong>Turn repeated, generalisable mistakes into rules.</strong> Don’t document every isolated correction. Add a rule when the same mistake can happen again and the answer cannot already be derived reliably from the code.</li></ul><p>The biggest improvement in our AI output didn’t come from writing cleverer one-off prompts.</p><p>It came from maintaining the right context and making sure the relevant slice appears at the right time.</p><p>How do you structure project instructions for your AI tools — CLAUDE.md, AGENTS.md, or something else?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57e429585ee9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agents in QA Automation: What We Automate and What We Keep Human]]></title>
            <link>https://medium.com/@berkyilmazer89/ai-agents-in-qa-automation-what-we-automate-and-what-we-keep-human-27ddcf5526c6?source=rss-a978573d7ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/27ddcf5526c6</guid>
            <dc:creator><![CDATA[Berk Yılmazer]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 08:02:45 GMT</pubDate>
            <atom:updated>2026-09-30T08:02:45.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e075RS5feZyMffj06vdkng.png" /><figcaption>AI-assisted QA automation: agents handle test scenarios, API execution, database verification, evidence collection, and code review support, while final decisions remain with the engineering team.</figcaption></figure><p>AI becomes useful in testing when its output can be verified, not simply when it produces answers faster.</p><p>In our QA automation flow, agents handle repetitive tasks such as generating scenarios, running real API requests, verifying database records, and collecting evidence. Context, exceptions, and final decisions remain with the engineering team.</p><p>The infographic above summarizes how these responsibilities are connected.</p><h3>What do we mean by an AI agent?</h3><p>When the rules are insufficient or the result is uncertain, the agent stops and hands the decision back to the engineering team.</p><p>In our setup, an agent is a model working within a defined task, using approved tools, explicit rules, and stopping conditions. It can read a ticket, call an API, verify the corresponding data records, and prepare evidence.</p><p>When the rules are insufficient or the result is uncertain, the agent stops and hands the decision back to the engineering team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owMOd6LdiiprJit7Z-d4mA.png" /><figcaption>An AI test agent works within a defined task, using approved tools, explicit rules, stopping conditions, and human approval.</figcaption></figure><h3>What tasks do the agents handle?</h3><p>Once a ticket is marked as ready for testing, the agents turn its requirements into concrete test scenarios.</p><p>They can then:</p><ul><li>generate manual test scenarios,</li><li>execute real API requests in an approved test environment,</li><li>validate the results against database records,</li><li>collect the request, response, and related database evidence,</li><li>draft the automation test,</li><li>review code changes against the team’s rules.</li></ul><p>These outputs are not treated as final decisions. The engineering team reviews the context, handles exceptions, and remains accountable for the outcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*keVLz67pOZjMDc6alOt00Q.png" /><figcaption>The agents handle repeatable QA tasks, while context, exceptions, and accountability remain with the engineering team.</figcaption></figure><h3>From ticket to automation: one traceable flow</h3><p>When a ticket is ready for testing, the workflow begins with generating manual test scenarios from its requirements.</p><p>The scenarios are executed through real API requests, and the results are verified against the database. The agent then prepares an evidence-based report containing the request, response, and related database record.</p><p>Based on this evidence, an automation test is drafted and submitted for code review.</p><p>The key rule is simple: a result is never invented. Every claim must be supported by an actual request and a verifiable record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h68fbysQlFVKJbFMZsa-Uw.png" /><figcaption><em>A traceable QA flow from a test-ready ticket to evidence-backed automation and code review.</em></figcaption></figure><h3>Evidence before conclusions</h3><p>Speed is useful, but it is not enough. An AI-generated result only becomes valuable when the team can inspect how that result was reached.</p><p>For each execution, the agent collects three connected pieces of evidence:</p><ul><li>the API request that was sent,</li><li>the response that was received,</li><li>the corresponding database record.</li></ul><p>This gives reviewers a traceable path from the test scenario to the final conclusion. If the evidence is missing or inconsistent, the agent should not present the result as confirmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSmlbAZA-hG12iXEFkDoyA.png" /><figcaption>Each test conclusion is supported by a real API request, its response, and the corresponding database record.</figcaption></figure><h3>AI reviews, humans decide</h3><p>Within this workflow, code changes are reviewed at commit time against the team’s engineering and testing rules.</p><p>When the agent identifies a potential issue, it does not silently modify the code. Instead, the developer is asked to choose an explicit action:</p><ul><li>fix the issue,</li><li>block the change,</li><li>proceed with a documented reason.</li></ul><p>Every decision is recorded with who made it and when. Even an override leaves a trace.</p><p>This keeps the agent useful as a reviewer without transferring ownership of the decision away from the developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6KwnZdvONvlBtKc_BIgWQ.png" /><figcaption>The agent identifies potential issues, while developers make and document the final decision.</figcaption></figure><h3>Rules, stopping conditions, and limits</h3><p>Agents work best when their boundaries are explicit. Each task needs clear inputs, approved tools, validation rules, and conditions that tell the agent when to stop.</p><p>A suspected test gap should also be confirmed with the domain owner before it is classified as a risk. Missing coverage does not always mean a genuine product risk; business context matters.</p><p>There are also problems that cannot be solved entirely from the test side. For example, we do not control the timing of every external system, so some race conditions require changes beyond the test itself.</p><p>We also avoid treating a single successful CI run as proof of a permanent improvement. Results need to remain observable and repeatable over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVU8isbbAELY8wuBsgLPsg.png" /><figcaption>Clear rules, stopping conditions, and human validation define where an AI agent can act and when it must stop.</figcaption></figure><h3>What we learned</h3><p>The most useful role for AI in QA has not been replacing engineering judgment. It has been handling repeatable work while making the output easier to inspect.</p><p>Two principles have been especially important for us:</p><ul><li>AI output should be supported by evidence, not accepted because it sounds convincing.</li><li>Decisions, exceptions, and accountability should remain visible and owned by the engineering team.</li></ul><p>The goal is not maximum autonomy. It is a workflow that the team can review, question, and improve without losing visibility or accountability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pl2XZCE6l3-fQHDFZzv2hA.png" /><figcaption>AI handles repeatable work, while evidence, engineering judgment, and accountability remain central to the process.</figcaption></figure><p>How are you using AI in your testing workflow, and where do you keep the human decision point?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27ddcf5526c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Traditional Testing: Harnessing AI for Smarter, Faster API Testing]]></title>
            <link>https://medium.com/@berkyilmazer89/beyond-traditional-testing-harnessing-ai-for-smarter-faster-api-testing-379bb558cbf5?source=rss-a978573d7ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/379bb558cbf5</guid>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Berk Yılmazer]]></dc:creator>
            <pubDate>Thu, 14 Mar 2024 10:19:52 GMT</pubDate>
            <atom:updated>2024-03-14T10:19:52.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qWrIZoQ3I7zf54OVP6PVg.png" /></figure><ul><li><strong>Enhancing Test Coverage with AI-Generated Test Cases:</strong></li></ul><p>Traditional API testing methods often struggle to achieve comprehensive test coverage due to manual test case creation limitations. In this article, we explore how AI algorithms can analyze API specifications and historical usage data to automatically generate diverse and effective test cases. By leveraging AI-generated test cases, teams can ensure thorough test coverage and uncover potential vulnerabilities that may have been overlooked by manual testing.</p><ul><li><strong>Optimizing Test Data Management with AI-Driven Data Synthesis:</strong></li></ul><p>The quality and relevance of test data play a crucial role in the effectiveness of API testing. This article delves into how AI techniques, such as data synthesis and augmentation, can dynamically generate realistic and varied test data sets. By understanding the underlying data structures and usage patterns, AI-powered test data management systems can significantly reduce the time and effort required for data preparation while improving the accuracy of test results.</p><ul><li><strong>Smart Test Prioritization Strategies for Efficient Testing:</strong></li></ul><p>With limited resources and tight release schedules, prioritizing test cases becomes essential for efficient API testing. This article discusses how AI-based test prioritization algorithms can analyze factors such as code changes, risk profiles, and business impact to intelligently prioritize test execution. By focusing on high-risk areas and critical functionalities, teams can maximize test coverage while minimizing testing time and effort.</p><ul><li><strong>Proactive Defect Detection and Prevention with AI Analytics:</strong></li></ul><p>Identifying and addressing defects early in the development lifecycle is crucial for maintaining product quality and reliability. In this article, we explore how AI-powered analytics can analyze test results, detect patterns of failure, and predict potential defects before they occur. By proactively addressing issues during development, teams can reduce the likelihood of costly production incidents and enhance overall product stability.</p><ul><li><strong>Continuous Improvement through AI-Driven Test Automation:</strong></li></ul><p>The evolution of AI technologies enables continuous learning and improvement in API testing processes. This article investigates how AI-driven test automation frameworks can adapt to changing system architectures, user behaviors, and industry standards. By incorporating feedback loops and adaptive algorithms, these frameworks continuously optimize testing strategies, ensuring that API testing remains effective and relevant in dynamic environments.</p><p>In summary, AI brings significant advantages to API testing in the fintech and banking integration domain by handling complexity, enabling data-driven testing, facilitating regression testing, providing real-time monitoring and analysis, enhancing fraud detection, and leveraging NLP for documentation and testing purposes. These capabilities help ensure the reliability, security, and compliance of fintech and banking systems in today’s rapidly evolving digital landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nkz5l-ZEhN9rEv5d1TWTGg.png" /></figure><p>Note: The creation of this article was assisted by AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379bb558cbf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chat GPT: A Practical Overview with k6]]></title>
            <link>https://medium.com/@berkyilmazer89/chat-gpt-a-practical-overview-with-k6-ba7ea1aa208f?source=rss-a978573d7ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba7ea1aa208f</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[k6]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Berk Yılmazer]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 14:04:56 GMT</pubDate>
            <atom:updated>2023-01-09T14:04:56.163Z</atom:updated>
            <content:encoded><![CDATA[<p>In this context, we will examine how to write a simple test in k6 with chat GPT.<br>First, let’s see what are the chat GPT and k6 and what they do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*ZASgX5X3oSPXXPVtQmIaTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*jqOHG9fg5qu4ktHM7AG-2A.png" /></figure><h4><strong>What exactly is chat GPT?</strong></h4><p>GPT (short for “Generative Pre-trained Transformer”) is a language model developed by OpenAI that is capable of generating human-like text. It can be fine-tuned for a variety of tasks, including translation, summarization, and text generation.</p><p>There are several versions of GPT available, including GPT, GPT-2, and GPT-3. These models differ in terms of their size and capabilities, with GPT-3 being the largest and most powerful.</p><p>GPT has been used in a variety of applications, including chatbots and language translation systems. In a chatbot context, GPT could be used to generate responses to user input in a way that mimics human conversation.</p><h4>How does chat GPT work?</h4><p>GPT is a type of language model that uses machine learning techniques to predict the next word in a sequence of words. It does this by analyzing a large dataset of text and learning the patterns and relationships between words.</p><p>When given a prompt, GPT uses this learned knowledge to generate text that is coherent and resembles human-written text. It does this by predicting the next word in the sequence based on the words that came before it, and iteratively generating the next word until it reaches the desired length.</p><p>GPT models are trained using a technique called transformer-based language modeling, which involves training a large neural network on a dataset of text and then fine-tuning the network for specific tasks.</p><h4>What exactly is k6?</h4><p>K6 is an open-source load-testing tool for testing the performance of web applications and APIs. It allows you to define and execute performance tests by simulating a large number of user requests to a web application or API and then measuring the response times and other performance metrics. K6 is designed to be easy to use and integrate into your continuous integration and delivery (CI/CD) workflow, so you can regularly test the performance of your application and ensure it can handle the expected load.</p><h4>How does chat k6 work?</h4><p>K6 is a command-line tool that you can use to define and execute performance tests. To use K6, you write a script in JavaScript that defines the test scenario and the steps that should be performed. The script can include things like the number of users to simulate, the requests to make to the web application or API, and the check to perform on the responses.</p><h4>Overview Chat GPT x k6 work</h4><p>First, let’s open chat GPT and make a simple test request about k6. We can use JSONPlaceholder for API requests.</p><p><strong>Request1: Give me a simple k6 get-to request for JSONPlaceholder<br></strong>Here is a simple k6 the script that sends a GET request to https://jsonplaceholder.typicode.com/todos/1 and logs the response body to the console:</p><pre>import http from &quot;k6/http&quot;;<br><br>export default function() {<br>  let res = http.get(&quot;https://jsonplaceholder.typicode.com/todos/1&quot;);<br>  console.log(res.body);<br>}</pre><p>To run the script, you can use the k6 run command. For example:</p><pre>k6 run script.js</pre><p><strong>Request2: Give me a simple k6 post request for JSONPlaceholder<br></strong>Here is a simple example of a POST request using the http module in k6:</p><pre>import http from &quot;k6/http&quot;;<br><br>export default function() {<br>  let res = http.post(&quot;https://jsonplaceholder.typicode.com/posts&quot;, JSON.stringify({<br>    title: &quot;foo&quot;,<br>    body: &quot;bar&quot;,<br>    userId: 1<br>  }), {<br>    headers: {<br>      &quot;Content-Type&quot;: &quot;application/json; charset=UTF-8&quot;<br>    }<br>  });<br>  console.log(res.status);<br>}</pre><p>This script sends a POST request to the /posts endpoint of the JSONPlaceholder API with a JSON payload in the request body. The Content-Type header is set to application/json indicate that the body of the request is in JSON format.</p><p><strong>Request3: Give me a simple k6 assertion request for JSONPlaceholder<br></strong>To make a simple assertion in k6 for a request to JSONPlaceholder, you can use the check() function and specify the expected status code and any properties of the response body that you want to verify.</p><pre>import http from &quot;k6/http&quot;;<br><br>export default function() {<br>  let response = http.get(&quot;https://jsonplaceholder.typicode.com/posts/1&quot;);<br>  check(response, {<br>    &quot;status is 200&quot;: (r) =&gt; r.status == 200,<br>    &quot;title is correct&quot;: (r) =&gt; r.json().title === &quot;sunt aut facere repellat provident occaecati excepturi optio reprehenderit&quot;,<br>  });<br>}</pre><p>This will check that the status code of the response is 200 and that the title property of the response body is the expected value. If either of these checks fails, the assertion will fail and the test will be marked as a failure.</p><p>In the next content, we will open a project and write tests in more complex scenarios.</p><h4>Conclusion</h4><p>As a result, we can write a load test with k6 very quickly using Chat GPT.<br>By examining the codes, we can use them in more complicated tests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba7ea1aa208f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started Taiko]]></title>
            <link>https://medium.com/@berkyilmazer89/getting-started-taiko-b45a2e3ef7f2?source=rss-a978573d7ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b45a2e3ef7f2</guid>
            <category><![CDATA[test-automation-framework]]></category>
            <category><![CDATA[gauge]]></category>
            <category><![CDATA[ui-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[taiko]]></category>
            <dc:creator><![CDATA[Berk Yılmazer]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 10:49:34 GMT</pubDate>
            <atom:updated>2022-08-01T10:49:34.722Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, In this article I will introduce taiko.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*xubLvCi8I4WRc5ft76bX1A.png" /></figure><p>The questions and answers I asked to create content are as follows ;</p><ul><li>What is Taiko and where is it used?</li><li>Is Taiko free to use?</li><li>Is the end-to-end web test done with Taiko?</li><li>How to install Taiko?</li><li>How to write a test by recording with Taiko?</li><li>How to save the Taiko code to a Javascript file</li><li>How to do assertion operations with Taiko?</li><li>How to take a screenshot with Taiko?</li></ul><p>Let’s look at the answers to the questions ;</p><ul><li>Taiko creates highly readable and maintainable JavaScript tests. Its simple API, smart selectors, and implicit waits all work together towards a single goal — No more flaky tests</li><li>Taiko is a free and open-source <a href="https://nodejs.org/en/">node.js</a> library with a simple API to automate browsers where tests are written in JavaScript or any language that compiles to JavaScript</li></ul><h3><strong>Install Taiko</strong></h3><p>Open the terminal and use the below command :</p><pre>npm install -g taiko</pre><h4><strong>Taiko Common Commands</strong></h4><p>Before recording, let’s review some commands.</p><pre>* Use to taiko, you should type taiko in the terminal.<br>taiko<br> <br>* Open to the browser<br>openBrowser()</pre><pre>* Navigate to url<br>goto(&quot;https://demoqa.com/&quot;);</pre><pre>* Click to button or field<br>click(&quot;Elements&quot;);</pre><pre>* Write to text inside the TextBox<br>write(&quot;FullNameTest&quot;, into(textBox({id:&quot;userName&quot;})));</pre><h4>How to run tests ?</h4><p>We can create our js file with the command from the terminal. Or we can take our code and paste it as a text file into our js file.</p><pre>* Save to the code in the javascript file<br>.code TextBox.js</pre><pre>* When you want to run the test, just write taiko TextBox.js.<br>taiko TextBox.js</pre><h4>Taiko Common Assertions</h4><p>Here are a two ways to work with assertions. We’ll look into it in more detail in the next series.</p><pre>* If you want to check if text exists on the page</pre><pre>assert.equal(p({id: &#39;name&#39;}).text(), &#39;FullNameTest&#39;);</pre><pre>* When you want to check the element on the page,  you can use set these wait times to 0 and see the result immediately.</pre><pre>await assert.ok(!await text(&#39;FullNameTest&#39;).exists(0,0));</pre><h4>How to get screenshots with Taiko ?</h4><p>Here are a two ways to work with screenshots. We’ll look into it in more detail in the next series.</p><pre>* You can use Taiko&#39;s screenshot API to take screenshots of a web page.</pre><pre>&gt; screenshot() ✔ Screenshot is created at Screenshot-1592405213958.png</pre><pre>* You can give a path to save screenshots in an optional location.</pre><pre>&gt; screenshot({path: &#39;screenshot.png&#39;}) ✔ Screenshot is created at screenshot.png</pre><p>You can see the demo below.</p><blockquote><a href="https://www.youtube.com/watch?v=2LzhYBkFUlo">https://www.youtube.com/watch?v=2LzhYBkFUlo</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xp_KYKbrvYmy4Kjs3V2MPQ.png" /></figure><p><strong>WHAT IS THE NEXT ?</strong></p><ul><li>In the upcoming series, we will write a test using the cucumber format by integrating it with the gauge.</li><li>We will increase the number of different samples testing.</li><li>File upload and download</li><li>More assertion and screenshot possibilities</li></ul><p><strong>Useful Links</strong></p><blockquote><a href="https://docs.taiko.dev/">https://docs.taiko.dev/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b45a2e3ef7f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>