<?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 Zsoldos Enikő on Medium]]></title>
        <description><![CDATA[Stories by Zsoldos Enikő on Medium]]></description>
        <link>https://medium.com/@enikozsoldos93?source=rss-7974d12a63f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_B6F6j0-QWfl_SmzJfTvsA.jpeg</url>
            <title>Stories by Zsoldos Enikő on Medium</title>
            <link>https://medium.com/@enikozsoldos93?source=rss-7974d12a63f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:15:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enikozsoldos93/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[Performance Testing]]></title>
            <link>https://medium.com/@enikozsoldos93/performance-testing-8f06e5641101?source=rss-7974d12a63f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f06e5641101</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[load-testing]]></category>
            <category><![CDATA[stress-testing]]></category>
            <dc:creator><![CDATA[Zsoldos Enikő]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 15:00:08 GMT</pubDate>
            <atom:updated>2020-04-20T15:00:08.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*1lDZRfYcX9P7_yxr-MNucQ.png" /></figure><p>Performance testing is a non-functional testing technique. This technique checks the speed, response time, reliability, resource usage, scalability of a software program under their expected workload. The purpose of Performance Testing is not to find functional defects but to identify and remove performance bottlenecks from an application.</p><p><strong>Types of Performance Testing</strong></p><p><em>Load Testing — </em>is the simplest form of Performance Testing. Load test is used to understand the behaviour of the system under a specific expected load.</p><p>The main questions during load test:</p><ul><li>What is the maximum load the application is able to hold before the application starts behaving unexpectedly?</li><li>How much data the Database is able to handle before the system slows or the crash is observed?</li><li>Are there any network related issues to be addressed?</li></ul><p><em>Stress Testing</em> — is used to find the ways to break the system. Provides the range of maximum load the system can hold. At the beginning the test is started with a load for which the application has already been tested. Then more load is added to see what happens. At the point where the server not responding is considered the breaking point.</p><p>The main questions during stress test:</p><ul><li>What is the maximum load before the system breaks down?</li><li>How is the system break down?</li><li>Is the system able to recover after it crashed?</li></ul><p><em>Volume Testing</em> — is done to analyse the system performance by increasing the volume of data in the database.</p><p>Benefits of volume testing:</p><ul><li>Save money, by identifying load issue</li><li>Early identification of bottlenecks</li><li>It helps in a quicker start for scalability plans</li><li>It assures your system is now capable of real-world usage</li></ul><p><em>Capacity Testing</em> — determine how many users the application can handle successfully before the performance goals become unacceptable. It can be used during the design phase.</p><p>Benefits of capacity testing:</p><ul><li>Helps in demand and capacity planning</li><li>Beneficial in cases where prioritisation is required on resource expenses</li><li>Can serve as a benchmark while comparison multiple solution providers providing similar solutions</li><li>Ensures that the performance and security vulnerabilities are not exposed while testing the app under high load</li></ul><p><em>Soak Testing</em> — or Endurance testing. Involves testing a system with a typical production load, over a continuous availability period, to validate system behaviour under production use.</p><p>Benefits of soak testing:</p><ul><li>It guarantees the application’s fitness</li><li>It shows how sustainably the system runs over time</li></ul><p><em>Spike Testing</em> — the purpose is to determine the recovery time after a spike of user load. It is performed to estimate the weakness of an application. It helps to evaluate the behaviour of the software system under sudden increment or decrements in user load.</p><p>Benefits of spike testing:</p><ul><li>The performance of the software must be maintained at any costs. However, when there is an extreme increase in the load of any system, there are high chances of the issues. Spike Testing helps test such scenario.</li></ul><p><strong>Example performance testing scenario</strong></p><ul><li>A new system is released for production, and multiple users want to access the system.</li><li>Check if the page load time is within the acceptable range.</li><li>Check the page load on slow connections.</li><li>Check the response time for any action under a light, normal, moderate, and heavy load conditions.</li><li>Check the database query execution time.</li></ul><p><strong>Performance testing tools</strong></p><ul><li><em>JMeter</em> — is an open source tool, it is a Java application platform. Can be used to analyse and measure the performance of web applications or a variety of services. Is mainly used for web and web service applications.</li><li><em>LoadRunner</em> — is a tool for Windows and Linux, which allows spike testing of web and other apps. It helps to determine the performance and result of the application even under the heavy load.</li><li><em>WebLOAD</em> — is an enterprise-scale load testing solution capable of generating reliable, real life load scenarios, even for the most complex systems, with smart analytics providing performance insights. This is a web and mobile load testing and analysis tool.</li><li><em>LoadNinja</em> — allows you to quickly create scriptless sophisticated load tests, reduce testing time by 50%, replace load emulators with real browsers, and get actionable, browser-based metrics, all at ninja speed.</li><li><em>LoadView</em> — can show actual performance of your applications under load, just as your users experience it. LoadView utilises real browser-based load testing for websites, web applications.</li></ul><p>I highly recommend to use performance testing for your application before release, because you save money and time. It is important to know how many users can use the application at the same time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f06e5641101" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing with Capybara the Basics]]></title>
            <link>https://medium.com/@enikozsoldos93/testing-with-capybara-the-basics-f2d1ebcace11?source=rss-7974d12a63f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2d1ebcace11</guid>
            <category><![CDATA[capybara]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Zsoldos Enikő]]></dc:creator>
            <pubDate>Sun, 17 Feb 2019 17:07:35 GMT</pubDate>
            <atom:updated>2019-02-17T17:07:35.802Z</atom:updated>
            <content:encoded><![CDATA[<h4>In Ruby on Rails via Cucumber</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*MGA0VJbi9myBUyY_LZc3uQ.png" /></figure><p>Capybara is a web-based automation framework used for testing web applications. It is part of the Cucumber testing framework (you can see my other article about <a href="https://medium.com/@enikozsoldos93/cucumber-in-ruby-on-rails-1a4c2561ae54">Cucumber in Ruby on Rails</a>) written in the Ruby programming language. Capybara can communicate with many different drivers, which executes your tests through the same clean and simple interface.</p><p><strong>Installation</strong></p><p>Capybara is usually installed along with Selenium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lm25mdN-dry8dr-ZjW2xgA.png" /></figure><p><a href="https://rubygems.org/gems/capybara/versions/2.7.1">capybara</a> — <em>helps to test applications by simulating how a user would use it.</em></p><p><a href="https://github.com/SeleniumHQ/selenium/tree/master/rb">selenium-webdriver</a> <em>is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application</em></p><p><strong>Install gem, with :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvUKbo4Gg-hBNze42Sw54A.png" /></figure><p><strong>Anatomy of Capybara</strong></p><p>Capybara is a library/gem built to be used on top of an underlying web-based driver. Capybara comes with a user-friendly DSL (Domain Specific Language) which is used to describe actions, click buttons, links etc.</p><ul><li><strong>Drivers</strong></li></ul><p>Capybara uses the same DSL to drive a variety of browsers and headless drivers (a web browser without a GUI).</p><ul><li><strong>RackTest</strong></li></ul><p>RackTest is Capybara’s default driver. It is written in pure Ruby, but it lacks JavaScript support and it cannot access HTTP resources outside of the application for which the tests are made (Rails app, Sinatra app).</p><ul><li><strong>Selenium</strong></li></ul><p>Capybara supports selenium-webdriver, this is used in web-based automation frameworks. It supports JavaScript and HTTP resources. If you want to use it, first you need to install the <strong>selenium-webdriver</strong> gem by adding it to the Gemfile.</p><ul><li><strong>Capybara-webkit</strong></li></ul><p>Capybara-webkit driver (gem) is used for true <a href="https://en.wikipedia.org/wiki/Headless_browser">headless browser</a> testing with JavaScript support. It uses <a href="https://en.wikipedia.org/wiki/QtWebKit">QtWebKit</a> and it is significantly faster than Selenium as it does not load the entire browser.</p><p>You can install it with: <strong>gem install capybara-webkit</strong></p><p>And you can use it by: <strong>Capybara.javascript_driver = :webkit</strong></p><p><strong>The DSL</strong></p><p>Here I will present the most common and important DSL actions for interacting with elements in your web application:</p><blockquote><strong>Navigating</strong></blockquote><p>You can use this method when you want to visit a page:</p><p><em>visit(‘url-name’)</em></p><p>The visit method only takes a single parameter, the request method is always GET.</p><p>You can easy navigate to the current page with:</p><p><em>expect(page).to have_current_path(post_comments_path(post))</em></p><p>It is the most used action, because on a web application you constantly need to navigate between pages.</p><blockquote><strong>Clicking links and buttons</strong></blockquote><p>Interact with the web application by following links and buttons:</p><p><em>click_link(‘id-of-link’)<br>click_link(‘Link Text’)<br>click_button(‘Save’)<br>click_on(‘Link Text’)<br>click_on(‘Button Value’)</em></p><p>These are very helpful when you want to access links, buttons or maybe submit forms.</p><blockquote><strong>Interacting with forms</strong></blockquote><p><em>fill_in(Full Name’, with: ‘Sarah West’)<br>fill_in(‘Password’, with: ‘aBc123’)<br>fill_in(‘Description’, with: ‘Really Long Text…’)<br>choose(‘A Radio Button’)<br>check(‘A Checkbox’)<br>uncheck(‘A Checkbox’)<br>attach_file(‘Image’, ‘/path/to/image.jpg’)<br>select(‘Option’, from: ‘Select Box’)</em></p><p>As you can see, most of these commands are very intuitive and do not require a lengthy explanation, just by simply reading the methods name you can understand the desired action.</p><blockquote><strong>Finding</strong></blockquote><p>You can find specific elements and manipulate them:</p><p><em>find_field(‘First Name’).value<br>find_field(id: ‘my_id’).value<br>find_link(Hy, :visible =&gt; :all).visible?<br>find_link(class: [‘some_class’, ‘some_other_class’], :visible =&gt; :all).visible?<br>find_button(‘Send’).click<br>find_button(value: ‘1234’).click</em></p><p>These are one of the most used actions, with witch you can find your links, buttons, fields and check if they are visible to the user, or click on them.</p><blockquote><strong>Querying</strong></blockquote><p>Capybara has a rich set of options for querying the page:</p><p><em>page.has_selector?(‘table tr’)<br>page.has_selector?(:xpath, ‘.//table/tr’)<br>page.has_xpath?(‘.//table/tr’)<br>page.has_css?(‘table tr.foo’)<br>page.has_content?(‘foo’)</em></p><p>Querying is used to find html tags on a page, similar to JavaScript selector.</p><blockquote><strong>Scoping</strong></blockquote><p>Capybara makes it possible to restrict certain actions, such as interacting with forms or clicking links and buttons, within a specific area of the page:</p><p><em>within(“li#employee”) do<br> fill_in ‘Name’, with: ‘Jimmy’<br>end</em></p><blockquote><strong>Debugging</strong></blockquote><p>It can be helpful to save and take a snapshot of the page as it currently is and take a look at it afterwords:</p><p><em>save_and_open_page</em></p><blockquote><strong>Matchers</strong></blockquote><p>When you try to find an element using the DSL or xpath/CSS selectors, usually you got two or more matches. Thanks to this the Capybara fail with an ambiguous match error. Capybara can perform partial matches, leading to unexpected results. For this reason it is important to know about the appropriate strategies supported by Capybara:</p><p><strong>:one — </strong>allows one result, if you have more than one, you receive an error.</p><p><strong>:first — </strong>pick up the first match, not recommended to use.</p><p><strong>:prefer_exact — </strong>find all matches but only the first exactly matching element is returned and the rest is discarded.</p><p><strong>:smart</strong> — if <em>Capybara.exact</em> is true, it behaves like the above option (<strong>:one</strong>). If <em>Capybara.exact</em> is false, it will first try to find an exact match. Ambiguous exception is raised if more than one match is found. If no element is found, a new search for inexact matches is commenced. Again, an ambiguous exception is raised if more than one match is found.</p><blockquote><strong>Capybara wait time</strong></blockquote><p>Capybara is able to wait for a response from an element on the page, or more specifically, handling asynchronous calls. Capybara’s default wait time is 2 seconds. This setting can be set by the following property:</p><p>Capybara.default_wait_time</p><h4>Conclusion</h4><p><em>Capybara</em> is an amazing tool, that imitates the interaction of a user with a particular web application. It is really simple to use and focuses on the most major actions that a user performs on a normal use case.</p><p>For testers it is a powerful tool, which helps them to mimic user interactions. With a structure that is clear and easily understandable for the one who writes the code and also for the one who reads it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2d1ebcace11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cucumber in Ruby on Rails]]></title>
            <link>https://medium.com/@enikozsoldos93/cucumber-in-ruby-on-rails-1a4c2561ae54?source=rss-7974d12a63f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a4c2561ae54</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[bdd]]></category>
            <dc:creator><![CDATA[Zsoldos Enikő]]></dc:creator>
            <pubDate>Mon, 06 Aug 2018 18:50:34 GMT</pubDate>
            <atom:updated>2018-08-06T18:50:34.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*zTXnL3InmH2UGyq-" /></figure><blockquote>Yet another tool for running automated tests. <strong>But</strong> wait it has more to it, it merges specification and test documentation into one cohesive whole. Which is easily understood by a technical and a non-technical person.</blockquote><p><strong>What is Cucumber?</strong></p><p><a href="https://cucumber.io/">Cucumber</a> is a testing framework, which allows the tester to use <strong><em>Behaviour Driven Development</em></strong> (<a href="https://www.agilealliance.org/glossary/bdd/">BDD</a>) in order to test the application. In Cucumber the mostly used language is English.</p><p>It was originally written in Ruby and it was used exclusively for Ruby testing. Nowadays it is used for testing in a variety of different languages such as Java or PHP.</p><p><strong>What is <em>Behaviour Driven Development</em>?</strong></p><p>It is a software development process, which combines the general techniques and principles of <a href="http://agiledata.org/essays/tdd.html">TDD</a>. With the main focus on the behavior of the application, tests of any unit of a software should be specified in terms of the desired behavior of the unit. It offers an example-based communication between the developer and the QA.</p><p><strong>How to install Cucumber in Ruby on Rails?</strong></p><p>Add the following gems into your Gemfile: <a href="https://github.com/cucumber/cucumber-rails">cucumber-rails</a>, <a href="https://github.com/rspec/rspec-rails">rspec-rails</a> and <a href="https://github.com/DatabaseCleaner/database_cleaner">database_cleaner</a>.</p><ul><li>cucumber-rails <em>is a ruby gem which brings Ruby on Rails Generators for Cucumber, with special support for Capybara and DatabaseCleaner</em></li><li>rspec-rails <em>is a testing framework for Rails</em></li><li>database_cleaner <em>used for cleaning your database in the testing environment</em></li></ul><p><strong><em>Gemfile:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/0*xAracfZK7qFHx7A_" /></figure><p><strong><em>Install gem, with:</em></strong></p><p>bundle install</p><p><strong><em>Learn about various options:</em></strong></p><p>rails generate cucumber:install — help</p><p><strong><em>Run the generators for rspec and cucumber:</em></strong></p><p>rails generate rspec:install</p><p>rails generate cucumber:install</p><blockquote><strong>Once installed we can start exploring the magic of Cucumber</strong></blockquote><p><strong>Syntax</strong></p><p>Cucumber tests are divided into <strong>Features</strong> which contain <strong>Scenarios</strong> and those are further divided into <strong>Steps</strong>.</p><ul><li><strong>Feature</strong><em> similar to an end-to-end test case, because you can test a complete section</em></li><li><strong>Scenario</strong> <em>explains how a feature should behave in different situations with different input parameters</em></li><li><strong>Step</strong> <em>similar to a test case (you can see my other article about </em><a href="https://medium.com/@enikozsoldos93/test-case-from-a-starting-testers-point-of-view-4f28fcb7b6fc"><strong><em>Test Case, From a Starting Testers Point of View</em></strong></a><em>), it allows the user to determine the expected response based on the given input.</em></li></ul><p>Let’s go even further and see what structure does a <strong>Step</strong> have:</p><ul><li><strong><em>GIVEN</em></strong> describes the initial state before the start of a test, <em>example “Given the user is on the login page”</em></li><li><strong><em>WHEN</em></strong> declares an action, <em>example “When user fills in the email address”</em></li><li><strong><em>THEN</em></strong> verifies the result of the action, <em>example “Then user can successfully login”</em></li></ul><p>What happens if a step is more complex? We can simply use the following helpers in order to increase the steps complexity:</p><ul><li><strong>AND</strong> <em>logical and, you can use more AND between given-when or when-then</em></li><li><strong>BUT</strong> <em>negative form of and, the same rule applies as in case of the AND</em></li></ul><p>BUT — Wait… do we need to define steps for each small detail making our code base really long? Thankfully NO, we can use the <strong>Background</strong> functionality to structure our code nicely.</p><p><strong><em>Background</em></strong></p><p>In Cucumber it is used to define a step or steps, which are common in a feature. Background runs before every scenario in the feature.</p><p>For example to publish an article on a webpage, you need firstly to login so a background for this situation would be:</p><p><em>Navigate to login page</em></p><p><em>Submit user name and password</em></p><p><strong>Action steps</strong></p><p>This is the actual <em>magic</em> that helps us interact with our screen, they are really important in Cucumber as they imitate common actions of a user.</p><p>Let’s start with the most common actions of a user, using our web application on a daily base:</p><ul><li>Click on a button (filter by id, text, title): <em>click_button(‘button text’)</em></li><li>Click on a link (filter by id, text, title):<em> click_link(‘link text’)</em></li><li>Click button or link: <em>click_on(‘button or link text’)</em></li><li>Fill in input field (filter by id, name or label): <em>fill_in(‘some text’, with: ‘text_tag_selector’)</em></li><li>Select dropdown (filter by id, name or label): <em>select(‘some option’, with: ‘select_tag_selector’)</em></li><li>Select checkbox (filter by id, name or label): <em>check(‘checkbox_selector’)</em></li><li>Choose radio button (filter by id, name or label): <em>choose(‘yes’)</em></li></ul><p><strong>Run Cucumber test</strong></p><p>In your terminal you need run the following: <strong><em>cucumber -s</em></strong></p><p><strong>Result</strong></p><p>When everything is working, the scenario is green. If something is wrong the step will be red and below it you can see the error message explaining what happened.</p><p><strong>Example</strong></p><p>Below you can see an example of one of my Cucumber tests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E40ZqfD_wopFclSI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Exv17tVkJ_XlAIPo" /></figure><p><strong>Action steps</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/0*gHaHXulU81Jz6CVA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z8CyjLLCSM3I3Dy6" /></figure><p><strong>Result</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X2hlFQaWo6xBmuOL5McLJA.png" /></figure><p><strong>To sum up</strong></p><blockquote>Cucumber is an easy to understand testing framework. It is readable and contains business functionality allowing the whole team to easily add and understand specifications within the application. In a way tests are simply created by the whole team — simply magically.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a4c2561ae54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Case, From a Starting Testers Point of View]]></title>
            <link>https://medium.com/@enikozsoldos93/test-case-from-a-starting-testers-point-of-view-4f28fcb7b6fc?source=rss-7974d12a63f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f28fcb7b6fc</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-case-management]]></category>
            <category><![CDATA[software-tester]]></category>
            <category><![CDATA[qa-testers]]></category>
            <category><![CDATA[test-case]]></category>
            <dc:creator><![CDATA[Zsoldos Enikő]]></dc:creator>
            <pubDate>Wed, 25 Jul 2018 14:38:01 GMT</pubDate>
            <atom:updated>2018-07-25T14:40:46.959Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>When I first heard about test cases I didn’t know the “<strong>what</strong>” and “<strong>how</strong>” parts of it. But after a comprehensive researching about it I soon realized that they are <strong>important</strong>, in order to make a quality test suit one must build first a quality test case.</blockquote><h3><strong>The “What” &amp; </strong>“How” <strong>of a Test Case</strong></h3><p>The purpose of writing test cases is to define the “<strong>what</strong>” and “<strong>how</strong>” of a feature. In a way this is considered as the boring work, but if done well, test cases will become highly valuable, improve the productivity of the entire team, and help your company create higher quality software. Test cases can help the team to identify any issues within the requirements or the design of the application from the UX point of view.</p><h3><strong>Types of a Test Case</strong></h3><p><em>Test cases are divided into different types, below we will see the most common types out there.</em></p><p><strong>Functionality Test Cases</strong></p><p>Used to discover if an application’s interface works with the rest of the system and its users. It identifies the success or failure of the features expected by the software.</p><p><strong><em>Example:</em></strong><em> Confirming a user can successfully upload a profile photo.</em></p><p><strong>User Interface Test Cases</strong></p><p>Used to check if some parts of the <a href="https://techterms.com/definition/gui">GUI</a> have appeared and functioned as expected. These types of test cases can help to identify grammar and spelling errors, links, and any other elements the user interacts with or sees.</p><p><strong><em>Example:</em></strong><em> What happens when the website is viewed on a small screen such as a mobile phone? Does the </em><a href="https://techterms.com/definition/user_interface"><em>UI</em></a><em> break?</em></p><p><strong>Performance Test Cases</strong></p><p>Used for validating response times and overall effectiveness of an application. After using an action, how long does it take for the system to respond? Performance testing cases should be clearly successful.</p><p><strong><em>Example:</em></strong><em> How long does it take for the system to authenticate a user and load the next page? When multiple people login at the same time, does the application remain stable?</em></p><p><strong>Integration Test Cases</strong></p><p>Used for determining how different modules interact with each other. The purpose with integration test cases is to ensure interfaces between the different modules are working properly.</p><p><strong><em>Example:</em></strong><em> Checking the link between the home page and the “favourites” section. When you add an item as a “favourite”, from the homepage, does it appear in the “favourites” section?</em></p><p><strong>Usability Test Cases</strong></p><p>They are often called to “tasks” or “scenarios”. Rather than giving detailed step-by-step instructions for the test, the tester displays a high-quality scenario or task.</p><p><strong><em>Example: </em></strong><em>Can the user successfully add more than one item to their shopping cart? What is that experience like?</em></p><p><strong>Security Test Cases</strong></p><p>Helps to ensure that the application restricts actions and permissions wherever necessary. These test cases are written to protect data when and where it needs to be protected.</p><p><strong><em>Example:</em></strong><em> If a user reaches X number of failed login attempts, does the account become locked? Is a user able to upload data without being logged in?</em></p><h3><strong>What Fields Need to be Included in a Test Case?</strong></h3><blockquote>A test case has different fields, that can be obligatory or optional.</blockquote><p><strong><em>Obligatory Fields:</em></strong></p><ul><li><strong>Test Case ID:</strong> identification number.</li><li><strong>Purpose:</strong> a short sentence about what is being tested.</li><li><strong>Prerequisite:</strong> conditions that must be met before the test case can be run.</li><li><strong>Test Data: </strong>list of variables and possible values used in the test case.</li><li><strong>Test Steps:</strong> detailed steps for test case execution.</li><li><strong>Expected Results: </strong>how the application should perform after executing the above testing steps.</li><li><strong>Actual Results:</strong> how the application actually behaved after executing the above testing steps.</li><li><strong>Status: </strong>does the test <strong>Pass</strong> or <strong>Fail</strong>.</li><li><strong>Comments: </strong>this is where the tester can add additional helpful information like screenshots and descriptions.</li></ul><p><strong><em>Optional Fields:</em></strong></p><ul><li><strong>Test priority (Low/Medium/High)</strong>: this is very useful while test execution.</li><li><strong>Module Name</strong>: the name of the main module or the sub-module.</li><li><strong>Test Designed By:</strong> name of the tester.</li><li><strong>Test Designed Date</strong>: date when it was written.</li><li><strong>Test Executed By:</strong> name of the tester who executed this test.</li><li><strong>Test Execution Date</strong>: date when the test was executed.</li><li><strong>Post-condition</strong>: what should be the state of the system after executing this test case?</li><li><strong>Defect ID/Link</strong>: if the test status is failed, then include the link to the defect log.</li><li><strong>Test Type/Keywords</strong>: this field can be used to classify the tests based on test types.</li><li><strong>Requirements</strong>: requirements for which this test case is being written for, preferably the exact section number of the requirement doc.</li><li><strong>Attachments/References</strong>: this field is useful for complex test scenario in order to explain the test steps or expected result using a Visio diagram as a reference. Provide the link or location to the actual path of the diagram or document.</li><li><strong>Automation? (Yes/No)</strong>: whether this test case is automated or not.</li></ul><h3>Best Practices for writing a good Test Case:</h3><ul><li>Test Cases need to be simple and transparent.</li><li>Create the Test Case with the end user in mind.</li><li>Avoid repetition.</li><li>Do not Assume.</li><li>Ensure 100% Coverage.</li><li>Test Cases must be identifiable.</li><li>Implement Testing Techniques.</li><li>Self cleaning.</li><li>Repeatable and self-standing.</li><li>Peer Review.</li></ul><h3>Example</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9w7TT0-7IhZNgT8NwJ5QHg.png" /></figure><h3><strong>To Sum Up</strong></h3><blockquote>A test case has components that describe an input, action/event and an expected response, in order to determine if a feature of an application is working correctly.</blockquote><p>Test cases make the teams life easier and they ensure the good functionality of the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f28fcb7b6fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>