<?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 Ümit Özdemir on Medium]]></title>
        <description><![CDATA[Stories by Ümit Özdemir on Medium]]></description>
        <link>https://medium.com/@umitozdemirf?source=rss-cea3f2701f64------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QAEZipaDgGZPub_7LWilgg.png</url>
            <title>Stories by Ümit Özdemir on Medium</title>
            <link>https://medium.com/@umitozdemirf?source=rss-cea3f2701f64------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:37:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@umitozdemirf/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[Playwright 1.56 & Playwright Agents at a Glance]]></title>
            <link>https://medium.com/@umitozdemirf/playwright-1-59-playwright-agents-at-a-glance-76aef05cbcee?source=rss-cea3f2701f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/76aef05cbcee</guid>
            <dc:creator><![CDATA[Ümit Özdemir]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 10:18:19 GMT</pubDate>
            <atom:updated>2025-10-07T10:26:23.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfuAYktLi5vKd1N7R3BKrQ.png" /><figcaption>Playwright Agents at a Glance</figcaption></figure><h3>Redefining Test Automation: 70+ Scenarios and a 95% Success Rate in Record Time</h3><p>One of the hardest parts of test automation isn’t writing tests — it’s <strong>maintaining</strong> them over time. What starts as a simple test suite often turns into a fragile, ever-growing system: locators change, DOM structures evolve, API responses shift, and once-reliable tests begin to fail for reasons that have nothing to do with the application’s logic.</p><p>Even before maintenance becomes a problem, there’s another challenge: <strong>test coverage itself</strong>. Most teams rely on the experience and intuition of QA engineers to decide what to test. That usually leads to a limited set of “expected” scenarios — login with valid credentials, empty field validation, a few negative tests — while many critical edge cases (security, performance, accessibility) remain untested simply because they’re easy to overlook.</p><p>If you’ve ever found yourself wondering <em>“What scenarios did I miss?”</em>, or spending late nights chasing flaky tests caused by a minor frontend change, you’re not alone. These are the invisible costs of traditional automation — and until recently, they were entirely human responsibilities.</p><p>With the release of <strong>Playwright 1.59</strong>, that’s starting to change. AI-powered agents now handle much of this heavy lifting — from discovering missing test cases to generating code and even healing failing tests — freeing QA engineers to focus on <strong>strategy, risk, and coverage</strong> rather than repetitive maintenance.</p><p>Here’s how these agents transformed my automation process — and why they represent a major leap forward for modern QA.</p><h3>1. Planner Agent — From Manual Design to AI-Driven Discovery</h3><p>The <strong>Planner Agent</strong> is where everything starts. Instead of brainstorming test scenarios manually, the agent explores your application like a user and produces a complete test plan — often with cases you might never think of yourself.</p><p>When I pointed it at the <a href="https://www.saucedemo.com/">Sauce Demo</a> login page, it generated <strong>70+ test scenarios</strong> across 15 categories, including:</p><ul><li><strong>Security tests:</strong> SQL injection attempts like &quot;&#39; OR &#39;1&#39;=&#39;1&quot; to verify backend protection.</li><li><strong>XSS and sanitization:</strong> Inputting malicious scripts to test encoding and escaping.</li><li><strong>Accessibility:</strong> Keyboard navigation, focus order, and screen reader compatibility.</li><li><strong>Performance:</strong> “Glitch user” logins under slow network conditions.</li><li><strong>Session handling:</strong> Token expiry and invalid session behavior.</li></ul><p>A sample scenario the agent produced looked like this:</p><pre>Scenario: SQL Injection Attempt - Username<br>  Given I am on the login page<br>  When I enter &quot;&#39; OR &#39;1&#39;=&#39;1&quot; as the username<br>  And I enter &quot;&#39; OR &#39;1&#39;=&#39;1&quot; as the password<br>  And I click the login button<br>  Then I should see an error message<br>  And I should not be logged in</pre><p>This wasn’t just a checklist — it was a ready-made plan covering usability, security, accessibility, and performance in one go. What would have taken hours of brainstorming was done in minutes.</p><h3>2. Generator Agent — From Writing Code to Orchestrating It</h3><p>Once scenarios are identified, the next bottleneck is often implementation. That’s where the <strong>Generator Agent</strong> shines. It observes how you interact with the application and automatically translates those actions into test code.</p><p>Instead of spending time writing repetitive steps, you can focus on refining test logic and prioritizing coverage.</p><p>Here’s an example where I manually logged into the app while the agent generated the code automatically:</p><pre>test(&#39;Successful login with standard user&#39;, async ({ page }) =&gt; {<br>  await page.goto(&#39;https://www.saucedemo.com&#39;);<br>  await page.fill(&#39;#user-name&#39;, &#39;standard_user&#39;);<br>  await page.fill(&#39;#password&#39;, &#39;secret_sauce&#39;);<br>  await page.click(&#39;#login-button&#39;);<br>  await expect(page).toHaveURL(/.*inventory.html/);<br>});</pre><p>This shift is bigger than it seems:</p><ul><li>You’re no longer just a test writer — you’re a <strong>test strategist</strong>.</li><li>You spend time deciding <strong>what</strong> needs testing, not <strong>how</strong> to automate it.</li><li>The focus shifts from code syntax to business logic and risk coverage.</li></ul><p>And because the generator produces consistent, standardized code, maintenance becomes significantly easier over time.</p><h3>3. Healer Agent — From Debugging to Self-Healing</h3><p>Even the most well-designed test suites will fail — locators change, network calls time out, and third-party services behave unpredictably. Traditionally, debugging those issues is slow, manual work. The <strong>Healer Agent</strong> changes that.</p><p>It analyzes the DOM, network traffic, and execution flow to identify <em>why</em> a test failed — and then suggests multiple fixes, often following best practices.</p><p>Here’s an example of a failing step due to a slow-loading page:</p><pre>// Original step — fails if the page loads slowly<br>await page.click(&#39;#login-button&#39;);<br>await expect(page).toHaveURL(/.*inventory.html/);</pre><p>The Healer Agent proposed three solutions:</p><ol><li>Increase the global timeout.</li><li>Add a per-step timeout.</li><li>Use an explicit wait (recommended):</li></ol><pre>// Agent-recommended solution<br>await page.click(&#39;#login-button&#39;);<br>await page.waitForURL(&#39;**/inventory.html&#39;, { timeout: 30000 });</pre><p>In another case, an accessibility test failed because a non-existent matcher (toBeFocusable) was used. The agent suggested a better alternative:</p><pre>// Suggested alternative: Check active element focus<br>await page.locator(&#39;#user-name&#39;).focus();<br>const activeElement = await page.evaluate(() =&gt; document.activeElement?.id);<br>expect(activeElement).toBe(&#39;user-name&#39;);</pre><p>These kinds of suggestions don’t just fix problems — they teach you best practices along the way. And over time, they help your test suite become more resilient and self-healing.</p><h3>4. The Bigger Picture — How Agents Transform QA</h3><p>The power of Planner, Generator, and Healer agents isn’t in isolated features — it’s in how they reshape the entire testing process:</p><ul><li><strong>From manual planning → proactive discovery:</strong> Agents surface test ideas you’d likely miss — including security, accessibility, and performance cases.</li><li><strong>From writing boilerplate → focusing on strategy:</strong> Instead of implementing test scripts, you define intent and coverage priorities.</li><li><strong>From reactive debugging → self-healing systems:</strong> Failures no longer slow you down — they become learning signals with automated fixes.</li></ul><p>In other words, QA engineers shift from being <strong>test executors</strong> to <strong>AI orchestrators</strong> — guiding intelligent systems to design, implement, and maintain quality.</p><h3>Final Thoughts — The Future of AI-Driven Testing</h3><p>Playwright agents are more than productivity boosters — they’re a preview of the next era of software quality.</p><ul><li><strong>Planner Agents</strong> are evolving into QA strategists that continuously scan applications and adapt test coverage.</li><li><strong>Generator Agents</strong> are reducing code complexity and making automation more accessible.</li><li><strong>Healer Agents</strong> are building the foundation for self-healing test systems that learn and adapt with every run.</li></ul><p>This shift moves QA from reactive bug-fixing to <strong>proactive, intelligence-driven quality engineering</strong>.<br> The future of testing isn’t about writing more tests — it’s about building systems that understand, validate, and improve themselves.</p><p>If you’re serious about modernizing your automation strategy, adopting an agent-driven approach isn’t optional — it’s inevitable.</p><h3>Key Takeaways</h3><ul><li>70+ test scenarios generated in minutes, including security, performance, and accessibility.</li><li>AI-generated code accelerated implementation, letting me focus on strategy.</li><li>Healer Agent improved the success rate from <strong>89% to 95%</strong> by fixing root causes.</li><li>Debugging time dropped from hours to minutes.</li><li>QA’s role shifted from script authoring to <strong>AI orchestration and strategic design</strong>.</li></ul><h3>Technologies Used</h3><ul><li>Playwright 1.56</li><li>TypeScript 5.6.2</li><li>Node.js 24.7.0</li></ul><p><strong>Result:</strong> Test automation is no longer just a process. With Playwright agents, it’s an <strong>intelligent, evolving system</strong> — and it’s redefining the future of QA.</p><p><em>Questions or comments? Drop them below — I’d love to hear about your experience with Playwright agents.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76aef05cbcee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Appium 3: A New Era in Mobile Test Automation]]></title>
            <link>https://medium.com/@umitozdemirf/appium-3-a-new-era-in-mobile-test-automation-524a77cb19ca?source=rss-cea3f2701f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/524a77cb19ca</guid>
            <dc:creator><![CDATA[Ümit Özdemir]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 12:20:29 GMT</pubDate>
            <atom:updated>2025-08-27T12:20:29.496Z</atom:updated>
            <content:encoded><![CDATA[<p>The mobile application testing ecosystem has reached an important milestone with the release of Appium 3. Unlike the major architectural overhaul in Appium 2, this new version focuses on smaller but strategically significant breaking changes. Appium 3 is designed to be leaner, faster, and more secure, setting a new standard for mobile test automation.</p><h3>Key Philosophical Shift</h3><p>The Appium team has taken a “clean-up” oriented approach with Appium 3. Legacy behaviors and deprecated protocols that remained in Appium 2 are now fully removed. The focus is on delivering a lightweight framework built on modern, stable, and secure software foundations.</p><h3>What’s New in Appium 3?</h3><ul><li><strong>Modern Node.js Ecosystem</strong>: Requires Node.js 20.19+ and npm 10+</li><li><strong>Codebase Clean-Up</strong>: Removal of deprecated and unused endpoints</li><li><strong>Full W3C WebDriver Compliance</strong>: Aligns completely with modern automation standards</li><li><strong>Feature Flag Prefix Requirement</strong>: Scoped configuration for improved safety</li><li><strong>Appium Inspector Plugin</strong>: Inspector can now be hosted directly via Appium server</li><li><strong>Sensitive Data Masking</strong>: Protects secrets (such as passwords) in logs with new headers</li></ul><h3>Breaking Changes</h3><h3>1. Node.js and npm Version Requirement</h3><p>Appium 3 drops support for older Node versions. The minimum is now Node.js 20.19.0 with npm 10+. Teams must upgrade their development and CI/CD environments accordingly.</p><h3>2. Removal of Deprecated Endpoints</h3><p>Several previously deprecated endpoints are now permanently removed or migrated to driver-specific implementations. For example, alert handling and app management methods have moved to mobile: execute methods.</p><h3>3. Mandatory Feature Flag Prefix</h3><pre># Old<br>appium --allow-insecure adb_shell</pre><pre># New<br>appium --allow-insecure uiautomator2:adb_shell</pre><h3>4. Session Discovery Changes</h3><pre># Enable at server start<br>appium --allow-insecure *:session_discovery</pre><pre># New endpoint<br>curl http://localhost:4723/appium/sessions<br># → includes `created` (Unix timestamp) per session</pre><h3>5. Express 5 Upgrade</h3><p>Appium now uses Express v5 instead of v4 internally. While not directly visible to most users, developers embedding Appium into their projects need to be aware of this change.</p><h3>Performance and Security Benefits</h3><ul><li>Startup times reduced from ~3–5s (Appium 2) to ~2–3s</li><li>Memory usage baseline reduced from ~150–200MB to ~120–150MB</li><li>Test execution speed improved by 10–15% thanks to Node 20 optimizations</li><li>Better security through modernized dependencies and sensitive data handling</li></ul><h3>Migration Strategy</h3><h3>1. Preparation</h3><ul><li>Backup current setup</li><li>Update Node.js and npm to required versions</li><li>Verify driver compatibility</li></ul><h3>2. Test Environment Migration</h3><pre>npm install -g appium@3<br>appium driver update uiautomator2<br>appium driver update xcuitest</pre><h3>3. Code Updates</h3><h4>W3C Capabilities (WebdriverIO)</h4><pre>export const config = {<br>  runner: &#39;local&#39;,<br>  specs: [&#39;./tests/**/*.spec.ts&#39;],<br>  services: [&#39;appium&#39;],<br>  appium: { args: [<br>    &#39;--allow-insecure&#39;, &#39;uiautomator2:adb_shell&#39;,<br>    &#39;--allow-insecure&#39;, &#39;*:session_discovery&#39;<br>  ]},<br>  capabilities: [{<br>    platformName: &#39;Android&#39;,<br>    &#39;appium:automationName&#39;: &#39;UiAutomator2&#39;,<br>    &#39;appium:deviceName&#39;: &#39;emulator-5554&#39;,<br>    &#39;appium:app&#39;: &#39;/apps/demo.apk&#39;,<br>    &#39;appium:newCommandTimeout&#39;: 120<br>  }]<br>}</pre><h4>Common Endpoint Replacements → mobile: commands</h4><pre>// Background app<br>await driver.execute(&#39;mobile: backgroundApp&#39;, { seconds: 5 });</pre><pre>// Lock / Unlock<br>await driver.execute(&#39;mobile: lock&#39;,   { seconds: 5 });<br>await driver.execute(&#39;mobile: unlock&#39;);<br>// Shake device<br>await driver.execute(&#39;mobile: shake&#39;);<br>// Launch / Terminate app (iOS example)<br>await driver.execute(&#39;mobile: launchApp&#39;,    { bundleId: &#39;com.example.ios&#39; });<br>await driver.execute(&#39;mobile: terminateApp&#39;, { bundleId: &#39;com.example.ios&#39; });<br>// Clipboard<br>const text = await driver.execute(&#39;mobile: getClipboard&#39;);<br>await driver.execute(&#39;mobile: setClipboard&#39;, { content: &#39;secret&#39;, contentType: &#39;plaintext&#39; });</pre><h4>W3C Actions for Gestures</h4><pre>// Swipe up<br>await driver.performActions([{<br>  type: &#39;pointer&#39;,<br>  id: &#39;finger1&#39;,<br>  parameters: { pointerType: &#39;touch&#39; },<br>  actions: [<br>    { type: &#39;pointerMove&#39;, duration: 0, x: 300, y: 1000 },<br>    { type: &#39;pointerDown&#39;, button: 0 },<br>    { type: &#39;pause&#39;, duration: 100 },<br>    { type: &#39;pointerMove&#39;, duration: 500, x: 300, y: 300 },<br>    { type: &#39;pointerUp&#39;, button: 0 }<br>  ]<br>}]);<br>await driver.releaseActions();</pre><h4>Java Client Equivalents</h4><pre>// background app<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: backgroundApp&quot;, Map.of(&quot;seconds&quot;, 5));</pre><pre>// lock / unlock<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: lock&quot;, Map.of(&quot;seconds&quot;, 5));<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: unlock&quot;, Map.of());<br>// launch / terminate<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: launchApp&quot;, Map.of(&quot;bundleId&quot;, &quot;com.example.ios&quot;));<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: terminateApp&quot;, Map.of(&quot;bundleId&quot;, &quot;com.example.ios&quot;));<br>// clipboard<br>Object clip = ((JavascriptExecutor) driver).executeScript(&quot;mobile: getClipboard&quot;, Map.of());<br>((JavascriptExecutor) driver).executeScript(&quot;mobile: setClipboard&quot;,<br>    Map.of(&quot;content&quot;, &quot;secret&quot;, &quot;contentType&quot;, &quot;plaintext&quot;));</pre><h3>4. Feature Flags and Configuration</h3><p>Update environment-specific configs to include required flags.</p><h3>5. Validation</h3><ul><li>Run regression tests</li><li>Compare performance metrics</li><li>Analyze error logs for migration issues</li></ul><h3>Best Practices</h3><ul><li>Use a gradual migration approach (development → staging → production)</li><li>Keep rollback options ready in case of breaking issues</li><li>Update internal documentation and conduct knowledge sharing workshops</li><li>Monitor logs closely for deprecated command usage</li></ul><h3>Conclusion</h3><p>Appium 3 is not just a version update — it is a step towards a more secure, maintainable, and performance-driven test automation ecosystem. By aligning fully with W3C WebDriver standards and modernizing its architecture, Appium sets the foundation for the next generation of mobile automation pipelines. Migration may require careful planning, but the long-term gains in speed, stability, and security make the transition worthwhile.</p><p><strong>Are you ready to upgrade your mobile test automation to Appium 3? Get in touch with us to plan and execute a smooth migration tailored to your team’s needs.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=524a77cb19ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-5: Karate & Gatling Performance Tests]]></title>
            <link>https://medium.com/@umitozdemirf/step-5-karate-gatling-performance-tests-74f718e49e34?source=rss-cea3f2701f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f718e49e34</guid>
            <category><![CDATA[gatling]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[karate]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[test]]></category>
            <dc:creator><![CDATA[Ümit Özdemir]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 12:33:57 GMT</pubDate>
            <atom:updated>2021-10-15T07:53:03.022Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous posts of the Karate series, we discussed topics such as BDD Syntax and Elegant DSL. We examined in detail how Karate facilitates our work with super-readable, well-formed assertion capabilities. In this blog post, which is the last article of the series, we will examine how Karate service tests can be used as performance tests thanks to the integration with <a href="https://gatling.io/">Gatling </a>.</p><p>Some of our customers want to use them as performance tests when creating service tests, and we recommend Karate + Gatling integration where such a demand occurs. Developing service tests and performance tests at the same time with the same scenarios significantly reduces automation development costs. Karate + Gatling infrastructure is a great combination for this optimization.</p><p><strong>Gatling</strong></p><p>Gatling is an open-source load and performance-testing framework based on Scala, Akka, and Netty. The software is designed to be used as a load testing tool for analyzing and measuring the performance of various services, with a focus on web applications.</p><p><strong>Karate with Gatling</strong></p><p>The Karate Framework improved its integration with Gatling in 2018.</p><p>It enabled the reuse of Service tests written with Gherkin Syntax in load tests with Gatling and Scala. It can also be used to develop functional performance tests.</p><p><strong>Capabilities</strong></p><ul><li>Reuse Karate API tests as performance tests performed by Gatling</li><li>Use Gatling (and Scala) only to describe the load model; everything else can be done in Karate</li><li>See Karate claim failures on the Gatling report, along with line numbers that failed.</li><li>Take advantage of Karate’s powerful assertion capabilities to check if server responses are as expected under load -&gt; this is much more difficult with Gatling and other performance testing tools.</li><li>API call sequences representing end-user workflows are much easier to express in Karate</li><li>Anything that can be written in Java or Javascript can be performance tested!</li><li>Option to scale a test by deploying it across multiple hardware nodes or Docker containers</li></ul><p><strong>Set Up!</strong></p><p>First of all, to use Karate and Gatling together, you need to configure your dependencies in the pom.xml. For this, you need to add the &lt;dependency&gt; and &lt;plugin&gt; parts to the corresponding places in the pom.xml. When you add these parts and the IntelliJ Scala plug-in, it supports the use of . <strong>scala</strong>.</p><p>pom.xml</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff3d1b4be2aeb5895b18d1212a9faa2c/href">https://medium.com/media/ff3d1b4be2aeb5895b18d1212a9faa2c/href</a></iframe><p><a href="https://search.maven.org/search?q=g:io.gatling%20AND%20a:gatling-maven-plugin&amp;core=gav">https://search.maven.org/search?q=g:io.gatling%20AND%20a:gatling-maven-plugin&amp;core=gav </a>for latest Gatling version</p><p>After creating the necessary infrastructure for installation, you can create your Gatling load test models for your existing scenarios.</p><p>As an example, we used the PET API users endpoint we used before, and you can configure it yourself.</p><p>&lt;script src=”<a href="https://gist.github.com/umttozdmr/a61f563a07f789b67e71255b916374e1.js">https://gist.github.com/umttozdmr/a61f563a07f789b67e71255b916374e1.js</a>&quot;&gt;&lt;/script&gt;</p><p><strong>Pets.feature</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e62e004ba4355b29ac6e7ac256516244/href">https://medium.com/media/e62e004ba4355b29ac6e7ac256516244/href</a></iframe><p>Now let’s create load tests by integrating these Karate scenarios with Gatling.</p><p><strong>PetSimulation.scala</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9254c503e68d8229b602e61d61689b04/href">https://medium.com/media/9254c503e68d8229b602e61d61689b04/href</a></iframe><p>You can use Gatling load models to configure your load tests with Gatling.</p><p><strong>Load models</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e07a654a7190fb02b3e14c89685a65cb/href">https://medium.com/media/e07a654a7190fb02b3e14c89685a65cb/href</a></iframe><p><strong>karateFeature()</strong></p><p>This declares a whole Karate feature as a “ <strong>flow</strong>”</p><p><strong>Note:</strong> how you can have concurrent flows in the same Gatling simulation.</p><p><strong>Protocols</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/083ee72f26382446c24e796537f937b2/href">https://medium.com/media/083ee72f26382446c24e796537f937b2/href</a></iframe><p><strong>-&gt; karateProtocol()</strong></p><p>is required, as Gatling cannot intercept HTTP requests. To create the Gatling report correctly, you need to transfer the URL models included in your test with the Karate Framework to Gatling.</p><p><strong>-&gt; pauseFor()</strong></p><p>You can also set pause times (in milliseconds) per URL pattern and HTTP method (get, post, etc.) if needed. If non-zero, this pause will be applied before the invocation of the matching HTTP request.</p><p><strong>Setup</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc334180fc8fd77dac88ea31640a26cc/href">https://medium.com/media/cc334180fc8fd77dac88ea31640a26cc/href</a></iframe><p><strong>-&gt; rampUsers(x)</strong></p><p>During (y sec/min), Injects a given number of users with a linear ramp during a given duration.</p><p><strong>-&gt; protocols()</strong></p><p>Organize your scenario’s code and tune the behavior of Gatling’s HTTP client.</p><p>For more load models, you can use <a href="https://gatling.io/docs/current/general/simulation_setup/"><strong>https://gatling.io/docs/current/general/simulation_setup/</strong></a></p><p>After the load test class you created, your file structure should be as follows.</p><p><strong>.├── pom.xml</strong></p><p><strong>└── src</strong></p><p><strong>└── test</strong></p><p><strong>└── java</strong></p><p><strong>├── karate-config.js</strong></p><p><strong>├── pets</strong></p><p><strong>├── PetSimulation.scala</strong></p><p><strong>├── Pets.featureExecution</strong></p><p>You can run test suite with the command <strong>“mvn test”</strong>, which has a set execution goal on pom.xml. You can free your service tests from your performance tests by removing the execution target on pom.xml. You can run your service tests with the <strong>“mvn test” </strong>command and your Gatling performance tests with the <strong>“mvn clean test-compile gatling:test” </strong>command.</p><p><strong>Reporting</strong></p><p>After execution, 30 users can send receive and requests within 10 seconds. Here you can try more users or more settings. These settings can vary depending on the resources of the server you are testing. After processing, Gatling will generate a report based on visual data. You can find the data of the load test in this report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*05rL0vEtpZb-R5Pp.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/0*eK7dcH4bq8lhhS5P.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/0*C39QgUtXbDtwaQkm.png" /></figure><p>In the last article of Mastering Karate in Five Steps, we talked about the Karate and Gatling infrastructure that allows you to develop your load tests with your API tests. By using Karate and Gatling together, you can significantly increase your performance test development speed by integrating additional Performance tests into your Service tests. Additionally, you save on the potential costs of running a performance test.</p><p>Resources: <a href="https://intuit.github.io/karate/karate-gatling/">https://intuit.github.io/karate/karate-gatling/</a></p><p><em>Originally published at </em><a href="https://www.kloia.com/blog/search-step-5-karate-gatling-performance-tests"><em>https://www.kloia.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f718e49e34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Capybara Effectively with 8 Useful Configuration Parameters]]></title>
            <link>https://medium.com/@umitozdemirf/using-capybara-effectively-with-8-useful-configuration-parameters-c8bd892b56a1?source=rss-cea3f2701f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8bd892b56a1</guid>
            <dc:creator><![CDATA[Ümit Özdemir]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 14:55:05 GMT</pubDate>
            <atom:updated>2020-01-22T14:56:41.824Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3703oi-EL-9K_R9bP4c9Ag.jpeg" /></figure><p><strong>Capybara</strong> is a <strong>test automation framework</strong> for developing automated functional UI tests. There are more efficient configuration parameters for <strong>Capybara</strong>.</p><p>Capybara works with Selenium, Rack etc. and it shortens very long code blocks into as few code blocks as possible. When developing test automation projects with Capybara, changing the default features in some cases can make your tasks easier. We reviewed the capybara configuration parameters for you.</p><h3>1- app_host</h3><p>This parameter specifies the default host of the test automation project that you developed and performs your operations through this host. The app host does not change unless you overwrite it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wENfP1B67VtdYk3a.png" /></figure><h3>2- default_driver</h3><p>This parameter specifies which driver will run as the default driver on Capybara. This parameter has driver values ​​such as rack, apparition, selenium. Selenium is recommended for UI processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zmf8lp767cDvXtcx.png" /></figure><h3>3- default_max_wait_time</h3><p>It specifies the maximum wait time for projects which use the Capybara framework. When a step of the test scenario can not get an expected result within the <strong>default_max_wait_time</strong>, the scenario raises an exception. Let’s say, Capybara. <strong>default_max_wait_time = 10 </strong>seconds and you’re expecting “ <strong>Sign Up</strong> “ button on the current page. With this configuration, Capybara waits to see the button for 10 seconds, maximum.</p><pre>Capybara.configure do |config| <br>    config.app_host = &#39;https://www.google.com&#39; <br>    config.default_driver = :selenium <br>    config.default_max_wait_time = 10 <br>end</pre><pre>And(/^click &quot;([^&quot;]*)&quot; button on page$/) do |button| click_button(button) end</pre><h3>4- default_selector</h3><p>In test automation, we grab elements using their specific values. Capybara allows us to manipulate the selector with these values.<br> Capybara uses the CSS selector by default. You can change this selector based on your needs. You can see a <a href="https://www.rubydoc.info/github/jnicklas/capybara/Capybara/Selector">list of all selectors here</a>. If you want to change this feature one time, you can overwrite it.</p><pre>Capybara.configure do |config| <br>  config.app_host = &#39;https://www.google.com&#39; <br>  config.default_driver = :selenium <br>  config.default_max_wait_time = 10 <br>  config.default_selector = :css <br>end</pre><h3>5- exact</h3><p>It expresses precision and expects the elements to match exactly. It is ‘false’ by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IVoSp_eZ9UrWRVKj.png" /></figure><h3>6- ignore_hidden_elements</h3><p>This parameter allows you to exclude hidden page elements in your matching. It is <strong>false</strong> by default. If you use <strong>true</strong>, it gives an error when you want to check if the hidden item is on the page. On the other hand, if you use ‘false,’ you can also search for and verify items that do not appear on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T7NIGFYFnmbloMvu.png" /></figure><h3>7- match</h3><p>With the Capybara <strong>match</strong> parameter, you can specify how to make a selection when there are multiple elements. It is “smart” by default.</p><pre>find(&#39;.btn&#39;, match: first) # first matching element<br> <br>find(&#39;.btn&#39;, match: one) # one matching element</pre><pre>find(&#39;.btn&#39;, match: prefer_exact) # single element exactly matching</pre><pre>find(&#39;.btn&#39;, match: smart) # the closest element to the truth,<br>which is certain or not. Dependent on &#39;exact&#39; property.(Capybara uses this by default.)</pre><h3>8- Capybara.save_path</h3><p>If you want to save any output while the test scenario is running, you can use this parameter to define the save path of these outputs. If you do not define this parameter, you must define the directory manually.</p><p>In this example, the save_screenshot method will do the saves on the path specified here.</p><pre>Capybara.configure do |config| <br>    config.app_host = &#39;https://www.google.com&#39; <br>    config.default_driver = :selenium <br>    config.default_max_wait_time = 10 <br>    config.default_selector = :css <br>    config.exact = :false <br>    config.ignore_hidden_elements = :false <br>    config.match = :smart <br>    config.save_path = &quot;../screenshot&quot; <br>end</pre><p><strong>Capybara</strong> is a web-based <strong>test automation software</strong> written in Ruby programming language that tests your applications by creating functional tests and simulating user behaviour. Thanks to its ease, you can quickly develop test automation and simplify very complex structures.</p><p><strong>Happy Tests!</strong></p><p><em>Originally published at </em><a href="https://www.kloia.com/blog/using-capybara-effectively-with-8-useful-configuration-parameters"><em>https://www.kloia.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8bd892b56a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>