<?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 Daffa Ramadhan on Medium]]></title>
        <description><![CDATA[Stories by Daffa Ramadhan on Medium]]></description>
        <link>https://medium.com/@rdaffa506?source=rss-57510f5e1a55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F5kaxkalIsOPkS9UBcyuFQ.jpeg</url>
            <title>Stories by Daffa Ramadhan on Medium</title>
            <link>https://medium.com/@rdaffa506?source=rss-57510f5e1a55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:43:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rdaffa506/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[How to use Katalon in UI automation test]]></title>
            <link>https://medium.com/@rdaffa506/how-to-use-katalon-in-ui-automation-test-6070d18b4419?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/6070d18b4419</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 17:02:22 GMT</pubDate>
            <atom:updated>2022-12-20T17:02:22.319Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ANOWKz_uVEBFsOLW.png" /><figcaption>Katalon Logo</figcaption></figure><h4>Basic Understanding</h4><p>Philosophy of Testing Software Testing is a method to check whether the actual software product matches expected requirements and to ensure that the software product is defect free. Software testing is essential because any bugs or errors in the software can be identified early and fixed before the software product is delivered. An adequately tested software product ensures dependability, security, and high performance, which leads to time savings, cost-effectiveness, and customer satisfaction. There is a high chance that the final code has errors in functionality and design. The identification of the issues before their occurrence in the critical environment is a prerequisite to performing the testing of software. Software Testing is a method to check whether the actual software product matches expected requirements and to ensure that the software product is defect free. We need software testing because if there are any bugs or errors in the software, they can be identified early and fixed before the software product is delivered. A properly tested software product ensures security and high performance, which leads to time savings, cost-effectiveness, and customer satisfaction. This handbook will explain about using Katalon for UI Automation. Type of Tests There are many different types of testing that we use in Tokopedia. Here is a quick breakdown of the most common testing types:</p><ol><li><em>Functional test</em></li></ol><p>a. Backend Testing</p><p>b. UI Testing</p><p>2.<em> Non-Functional test</em></p><p>a. Performance Test, Load Test, and Stress Test</p><p>b. Security Testing</p><p>3.<em> Structural Testing</em></p><p>a. Statement Coverage</p><p>b. Branch Coverage</p><p>c. Path Coverage</p><p>4. <em>Change Related Testing</em></p><p>a. Confirmation Testing (re-testing)</p><p>b. Regression testing</p><h4>UI Testing</h4><p>User interface or UI testing, also known as GUI testing, is the process of testing the visual elements of an application to validate whether they accurately meet the expected performance and functionality. By testing the GUI, testers can validate that UI functions are free from defects. Here are some practical tips that can help you overcome the above UI testing challenges.</p><ol><li>UI test automation tool The first step when resolving software testing challenges is choosing the right automation tool. There are various testing tools in the market that you can use for your project. However, focus on choosing one that integrates seamlessly with your workflow. A great UI automation tool has record/playback capabilities, supports reusable tests, and requires minimal maintenance. It also supports reporting and has defect-tracking capabilities.</li><li>2. Testing strategy To eliminate the trouble of making repetitive changes in the test code, developers and QA teams should leverage the power of testing strategy on automation.</li><li>3. Utilize an object repository One approach for reducing test maintenance and the associated costs are using a shared repository. It is also a great idea to reduce the number of UI test cases during the initial testing stages, then increase the coverage as you move forward. This ensures a higher success rate in your test cases.</li><li>4. Use code review standards The coding culture of an enterprise has a significant impact on how well its teams address testing challenges in the application development cycle. For this reason, organizations should focus on training their teams on the best test automation practices, so there are specific criteria for code review or modifications across the enterprise. A good approach would be engaging test automation experts in some intense brainstorming sessions.</li></ol><h4>Setup Katalon</h4><p>Download and Install Katalon Unit could be an individual function or procedure, or often is an entire interface, such as a class. Before the installation, you need to verify whether your computer meets the System Requirements to work with Katalon Studio. You can refer to this document for further details: <a href="https://docs.katalon.com/docs/legacy/katalon-studio-enterprise/release-notes/supported-environments">Supported Environment</a></p><p>To install Katalon Studio, you can refer to the following documents. Instructions in the documents are based on a standard installation using all default settings.</p><p>● Install Katalon Studio on <a href="https://docs.katalon.com/docs/legacy/katalon-studio-enterprise/set-up-katalon-studio/installation/install-katalon-studio-on-macoswindows">macOS/Windows</a></p><p>● Install Katalon Studio on <a href="https://docs.katalon.com/docs/legacy/katalon-studio-enterprise/set-up-katalon-studio/installation/katalon-studio-for-linux-gui">Linux (GUI)</a></p><h4>Stage 1 — Automation Testing Tools</h4><ol><li>Selenium Selenium is a popular open-source test automation framework that can operate across multiple browsers and platforms. Selenium is not a single tool but rather a suite of software that includes various tools, e.g: Selenium WebDriver (Selenium WebDriver is a browser automation framework that works with open source APIs.)</li><li>Appium Appium is an open-source test automation framework that is mainly used for mobile applications (covering both iOS and Android platforms). Both for Selenium and Appium we are using XML path (XPath) for navigation through the HTML structure of the page.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*y8D6b93yTP5PTPhR5AHNTA.png" /></figure><p>XPath Expression/Function</p><p>● contains() =&gt; //*[contains(@name,‘btn’)]</p><p>● OR and AND =&gt;//*[@type=‘submit’ or @name=‘btnReset’]</p><p>● starts-with() =&gt; //label[starts-with(@id,‘message’)]</p><p>● text() =&gt; //input[text()=‘Description’]</p><p>● etc</p><p>3. Katalon Katalon is a test automation tool that is a combination of Selenium and Appium frameworks. Now we are focusing on Katalon.</p><h4>Why Katalon</h4><ol><li>Simple and powerful automation solution built for testers everywhere.</li><li>The platform stands out for its multiple purposes and easiness of use, considering it can create and reuse UI test scripts without requiring any code. Plus, it is easy to deploy and can deploy on macOS, Windows, and Linux. In Katalon we can use Page Object Model or POM, Page Object Model is an object design pattern in Selenium, where web pages are represented as classes, and the various elements on the page are defined as variables on the class. The purpose is to enhance test maintenance and reduce code duplication.</li><li>According to users’ different programming skills, Katalon offers dual scripting interfaces, allowing users with no coding skills to use a more straightforward interface.</li></ol><h4>Katalon Interface</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*ZCHvBlw0Dkd02OFM-lPiTQ.png" /></figure><ol><li>Profiles: Folder containing Profile to cover test case environment</li><li>Test Cases: Folder containing Test Cases</li><li>Object Repository: Folder containing Objects, including UI element, and WS Object.</li><li>Test Suites: Folder containing Test Suite &amp; Test Suite Collection.</li><li>Data Files: The folder containing “Data” for TC, behaves like DB. The value can be from excel, CSV, external (actual database), or internal data (katalon specific)</li><li>Checkpoints: Folder containing Checkpoints (snapshot of test data taken at a specific time).</li><li>Keywords: Folder containing Custom Keywords 8. Test Listeners: Folder containing Test Listener</li></ol><h4>Object Repository</h4><p>The object can be a Web Element, Mobile Element, or Web Service Object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*swgr3HM_UX8-tx_37nvpWQ.png" /></figure><h4>Test Case Manual View</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*qDS-tA_yglSLTfmL7zXnhw.png" /></figure><h4>Test Case Script View</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*RHT75YeNeY9IKulu41Eddg.png" /></figure><h4>Test Suites</h4><p>Test Suite consists of multiple test cases, usually grouped in one feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*6HUye-ROKxMAFf3DuVZ-KQ.png" /></figure><h4>Test Collection</h4><p>Test suite collection is a collection of the test suite, usually used for regression tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*j5AnPyfFNhptgrdKA9YOTg.png" /></figure><h4>Stage 2 — Test Object on Katalon Web</h4><p>Find Xpath Web — Text</p><ol><li>Open the web, right-click, and choose to inspect.</li><li>Click Ctrl + F on inspect element section. It will show the inspect element page.</li><li>Click on the top-left corner side of inspect element.</li><li>Choose the element you want to inspect. It will show the detail of the element.</li><li>Input XPath expression with text, ex: //*[text()=’ Lihat Semua’]. It should select the element you choose by text.</li></ol><p>Find Xpath Web — Select Element</p><ol><li>Open the web, right-click, and choose to inspect.</li><li>Click Ctrl + F on inspect element section. It will show the inspect element page.</li><li>Click on the top-left corner side of inspect element.</li><li>Choose the element you want for the insect. It will show the detail of the element.</li><li>Try to find the element by class, eg: //input[@name()=’ Client Number’]. It should select the element you choose by text</li></ol><p>Find Xpath Web — Data Test</p><ol><li>Open the web, right-click, and choose inspect</li><li>Click Ctrl + F on inspect element section. It will show the inspect element page.</li><li>Click on the top-left corner side of inspect element.</li><li>Choose the element you want to inspect. It will show the detail of the element.</li><li>Try to find the element by data test, eg: //*[@datatest-id()=’ InkHomeDigitalWidgetViewMore’]. It should select the element you choose.</li></ol><p>Create Test Object on Katalon — Inspect Element</p><ol><li>Create a folder on the Object Repository.</li><li>Right-click on folder &gt; new &gt; test object.</li><li>Input the name of the test object, and click OK.</li><li>In Object’s Properties, click Add</li><li>Input name: XPath, value: XPath to data test. Click OK.</li><li>Checklist on Data Object by?</li></ol><p>Create Test Object on Katalon — Using Spy Web</p><ol><li>Click on the Spy Web icon.</li><li>Input the URL, and click Start. It will open the website.</li><li>Select the element on the page. It will capture the object on spy.</li><li>Click the element on the captured object.</li><li>Choose Attribute on the selection method.</li><li>Check only on data testing.</li><li>Click Save.</li></ol><h4>Stage 3 — Test Object on Katalon Android</h4><p>Find Element Android — Properties</p><ol><li>Connect the device to the computer</li><li>Click on the Spy icon. A mobile Object spy window will be displayed.</li><li>Select the device and APK file in the configurations section.</li><li>Click the Start button when settings are done. Once the application starts, the Device View window is displayed.</li><li>Navigate to the destined page on your device.</li><li>On the spy window, select the UI of the element. Checklist the element in the All Object section. It will capture mobile element</li><li>In object properties, choose an attribute in the locator strategy and click generate. It will show the attributes in Locator.</li></ol><p>Find Element Android — XPath</p><ol><li>Connect the device to the computer</li><li>Click on the Spy icon. A mobile Object spy window will be displayed.</li><li>Select the device and APK file in the configurations section.</li><li>Click the Start button when settings are done. Once the application starts, the Device View window is displayed.</li><li>Navigate to the destined page on your device.</li><li>On the spy window, select the UI of the element. Checklist the element in the All Object section. It will capture mobile element</li><li>In object properties, choose XPATH in the locator strategy and click generate. It will show the attributes in Locator.</li></ol><p>Create Test Object on Katalon — Using Mobile Spy</p><ol><li>Connect the device to the computer</li><li>Click on the Spy icon. A mobile Object spy window will be displayed.</li><li>Select the device and APK file in the configurations section.</li><li>Click the Start button when settings are done. Once the application starts, the Device View window is displayed.</li><li>Navigate to the destined page on your device.</li><li>On the spy window, select the UI of the element. Checklist the element in the All Object section. It will capture mobile element</li><li>In object properties, we can rename the object properties&#39; names.</li><li>Click Add to Object Repository, choose the destination folder, and click OK.</li></ol><h4>Exercise 1</h4><p>Test Case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*NXwtn59vmqLNkVLH7Ic4eg.png" /></figure><p><em>Identify Object Repository on Katalon</em></p><ol><li>Identify the XPath object first</li><li>Open Katalon</li><li>Right-click on Object Repository</li><li>Choose New &gt; Test Object</li><li>Insert the name of the Test object, then click “Ok”</li><li>On the Object’s Properties click the button “+ Add”</li><li>On property Name choose XPath, then paste XPath to the Value field, then click “Ok”</li><li>Check on “Detect object by?”</li><li>Then Test Object ready to use in Test Cases</li></ol><p><em>Create Test Case</em></p><ol><li>Right-click on test explorer &gt; New &gt; Test Case. Provide the name and description, and click OK.</li><li>A test case that has been created will be displayed in Manual View → go to Script View → click on the Script tab.</li><li>Click the down arrow beside the Add button in the toolbar and select the desired command.</li></ol><p>Code :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/180118789ac85064c87b38c188160700/href">https://medium.com/media/180118789ac85064c87b38c188160700/href</a></iframe><h4>Exercise 2</h4><p>Test Case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*uXJXmtHyp_fXxfvRb-ZgZA.png" /></figure><p>Code :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cead2b8a104b6927e7cf6434ff80823a/href">https://medium.com/media/cead2b8a104b6927e7cf6434ff80823a/href</a></iframe><h4>Exercise 3</h4><p>Test Case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*R5YCaj4fhOQHrZCpyjmu2g.png" /></figure><p>Code :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a7429e72815346896761f4204f32ee22/href">https://medium.com/media/a7429e72815346896761f4204f32ee22/href</a></iframe><h4>Exercise 4</h4><p>Test Case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*h7WntqxTs6xf7vPpeUl1vA.png" /></figure><p>Code :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1faf2f2919b31fd56e4a770a8f835c0d/href">https://medium.com/media/1faf2f2919b31fd56e4a770a8f835c0d/href</a></iframe><h4>Exercise 5</h4><p>Test Case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*a-z0WZs6Ta3XyVvolWIBAg.png" /></figure><p>Code :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44ebab4e160c7fcc36c1601f77419384/href">https://medium.com/media/44ebab4e160c7fcc36c1601f77419384/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6070d18b4419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to test API with Postman]]></title>
            <link>https://medium.com/@rdaffa506/how-to-test-api-with-postman-ab94d06bc460?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab94d06bc460</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 14:09:15 GMT</pubDate>
            <atom:updated>2022-12-20T14:09:15.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tuq358iQNTWEtZDx.jpg" /></figure><h4>A little introduction before we get into how to test the API.</h4><p><em>WHAT IS POSTMAN AND HOW TO USE POSTMAN TO TEST THE API?</em><br>Since the API is at the software&#39;s core, it requires appropriate testing and testing methods. The number of test methods satisfies the initial need to recognize and eliminate errors, which may become a significant hurdle in further development. Today, As a load testing company, our Technical experts learned the steps of How to Use Postman to test APIs and why API Testing is needed.</p><p><em>What is Postman?</em><br>In simple words, Postman is a computer application used for API testing. Postman sends an API request to a web server and receives a response, whatever that may be. No additional work or framework settings are required when sending and receiving requests in Postman. Widely used by Testers and Developers for better application testing. Easily integrates with your Continuous Integration (CI) &amp; Continuous Development Pipeline.</p><h4>Then what is an example of an API in the world of developers?</h4><p>• In general, there are 2 developer roles, namely backend, and frontend. The backend on duty provides data from the database on request. The frontend is in charge of displaying data to a UI (User Interface).<br>• For example, when you go to the website <a href="http://www.barru.pythonanywhere.com/register">www.barru.pythonanywhere.com/register</a>, the UI appears on the web to log in. There are email &amp; password fields. The web view you see is a frontend build. The job of the backend is to provide the login API, which checks the email and password whether stored in the database or not. Then the front will display whether the login was successful or not, from the API results.<br>• So.. Login API is an example of a container for exchanging data in the world of developers. An API is prepared to handle User Login requests. Check the email &amp; password to the database and give a callback whether success or failure.<br>• Below is an example of the Login API created by the backend :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ljCvrK71vUT1EzCjedPexQ.png" /></figure><ul><li>The picture above is the API that is accessed through the Postman software. The API above has 3 components namely HTTP Request, Endpoint/Request URL, and Body. While Response is the result of the API that we request/call.</li></ul><p>HTTP Request: POST<br>Endpoint: <a href="http://barru.pythonaywhere.com/login">http://barru.pythonaywhere.com/login</a><br>Body (JSON) :<br>{<br>“email”: “<a href="/service/mailto:barru.kurniawan@gmail.com">barru.kurniawan@gmail.com</a>”,<br>“password”: “sman60jakarta”<br>}</p><p>Explanation :<br>→ HTTP Request has various types of requests such as POST, GET, PUT, and DELETE. POST sends data without displaying that data in the URL (See the image above, email &amp; password data do not appear in the URL). GET sends data by displaying that data in the URL. PUT updates data without displaying that data in a URL. DELETE deletes data without displaying <br>the data in the URL.<br>→ Endpoint or Request URL is the API address/destination.<br>→ Body contains data to be sent, data will be filled in the body tab if using the POST, PUT, or DELETE methods. While the data will be filled in the tab<br>Params if the method is GET.</p><ul><li>Can the API only be accessed via Postman?<br>→ No, there are many ways to access the API. A postman is a common software used by developers (backend, frontend, QA, etc.) to make access easier to API.<br>→ Postman as the main QA tool specifically, to test the API.<br>• Can you provide an example of accessing the API in another way?<br>→ One example using the curl command via Terminal on (Mac OS)<br>or using Power Shell on Windows.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*ZI1S1fSeHObSmqYkKA_2_w.png" /></figure><ul><li>After knowing about the API created by the backend. Below is the display<br>website or UI (User Interface) made by the frontend to handle the Login API on<br><a href="http://www.barru.pythonanywhere.com/register">www.barru.pythonanywhere.com/register</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*Bx-p-HL_eC4diMtilEK-UQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*8ichZx5hxaHMXwaJG-A7DQ.png" /></figure><p>let’s continue with testing the API following the technical procedures for testing the API with Postman</p><p>just install postman tools directly to the web <a href="https://www.postman.com/downloads/">here</a>, The following are the steps for using the Postman tools</p><ol><li>Login Feature</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mj1q33IwhMnxrgIJclLtow.png" /><figcaption>Success Login | Response Success (HTTP 200)</figcaption></figure><p>Noted:</p><p>Email &amp; Password(mandatory)<br>mandatory = required<br>optional = not mandatory filled</p><p>if you have entered a valid email and password then click send at the top right to see the response below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nOMfqZ5vUbMCCiAUP1wnw.png" /><figcaption>Failed Login wrong pass | Status (HTTP 422)</figcaption></figure><p>here I’m trying to enter the wrong password by adding a symbol but with a valid email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yIlSS1ao39-9jTs3dp-_Dg.png" /><figcaption>Failed Login wrong email | Status (HTTP 422)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01oyzoyj961xfePlw7BsQg.png" /><figcaption>Failed Login with an empty field | Status (HTTP 422)</figcaption></figure><p>here I tried to empty the two columns and you can see the result</p><p>2. Register Feature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXgAVxZzCGPDVWFoYCeebQ.png" /><figcaption>Register the feature with email and password by leaving the username field blank | Status (HTTP 422)</figcaption></figure><p>here I’m trying to do the registration testing feature by filling in the email &amp; password fields that have been registered by emptying the username that was previously registered</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0P0673Xt8oM7dJHmVrfXpA.png" /><figcaption>Register with an unregistered username, email &amp; password | Status (HTTP 422)</figcaption></figure><p>here I try to enter the email, password, and username fields with those that have not been registered before</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3nkEaCnBa9R3oQf9BXINg.png" /><figcaption>Registered with a blank field | Status (HTTP 422)</figcaption></figure><p>try to clear all available fields in the registration feature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hx-yphVh3wwHOcfJNxCssQ.png" /><figcaption>registered with a password blank | Status (HTTP 422)</figcaption></figure><p>3. Update Profile feature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-2HOTCUwN6n2drygcmENA.png" /><figcaption>Success update profile | Status (HTTP 200)</figcaption></figure><p>here I tried to change my own username and it worked</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmjDwZ8YEtZbw9KK_yju8g.png" /><figcaption>Update profile with a minimum word | Status (HTTP 422)</figcaption></figure><p>here I’m trying to replace the username with the minimum limit that has been specified</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOBoHQaktXMxuLRaEZlmWg.png" /><figcaption>Update profile with maximum words | Status (HTTP 422)</figcaption></figure><p>here I’m trying to enter the username that exceeds the maximum capacity that has been specified</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab94d06bc460" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Type of Tests, Black Box, Alpha Beta testing, End to End, Smoke, Sanity, and Regression Testing]]></title>
            <link>https://medium.com/@rdaffa506/type-of-tests-black-box-alpha-beta-testing-end-to-end-smoke-sanity-and-regression-testing-e3f6aa90bf38?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f6aa90bf38</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 17:52:13 GMT</pubDate>
            <atom:updated>2022-12-20T17:13:33.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*FaeuemuxhXJq4YSvSpYgEQ.png" /></figure><h4>1. White Box Testing</h4><p>White Box Testing is used to check whether the code program something is wrong or not based on the line program code created by the developer. This testing can be done by the developer or QA who Knows the process flow of the product being made. Oh yes, in this test, the QA must understand the language programming and logic used in the product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*2Jfx_r97xk8g5CHuOai6mg.png" /></figure><h4>2. Black Box Testing</h4><p>Meanwhile, Black Box Testing is used for testing features from the user’s point of view product users. So, this testing is done on each functionality system part created, without needing to know the existing program code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*hCCfd1trwj4mwN0etQUyHg.png" /></figure><h4>3. Alpha Beta Testing</h4><p><em>Alpha testing</em> is a type of software testing conducted by the company’s internal tester for identifying bugs before releasing the product to real users or to the public.<br><em>Beta testing</em> is a type of software testing performed by real users or external client&#39;s company</p><h4>4. E2E (End-to-End) Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-UKkxNRJdRtgUB4k.png" /></figure><p>This test tests the flow from start to finish to ensure that the system behavior is appropriate for requirements.<br>So, this type of testing will also check how things work product from the point of view of a user.</p><h4>5. Smoke Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*Ga1K_o0kWOTHtSFf.png" /></figure><p>This type of testing serves to ensure features important run as expected. For example, features Login, Register, Logout, and so on.</p><h4>6. Sanity Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oywgxj-c4AzXguw_.png" /></figure><p>This testing is to ensure new features and new features the bug has been fixed, it works fine. When developers fix bugs, they sure do change the program code. That’s why we need to do Sanity testing to make sure the bug is gone after the code of the old program changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*DjUFIOdy0PscTCH9.png" /><figcaption>So that you understand more about Smoke Testing &amp; Sanity Testing, see some of the differences below</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvBl62lvJdhGlSH7tIVB1Q.png" /></figure><h4>7. Regression Testing</h4><p>This testing aims to ensure that the feature newly created does not raise any bugs or errors on the old feature You remember when we did the UAT test, did we Have feedback from users? The feedback can be about its features and functionality. So, if there are recommendations for new features from users and accepted by the development team, QA can use regression in this testing.</p><p>How to Do Regression Testing</p><p>Regression testing can be done in 3 ways:<br>1. Re-test as a whole<br>2. Conduct regression tests on several features (regression test selection)<br>3. Conduct tests according to the priority of test cases</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f6aa90bf38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types of testing, Stress Testing, Compatibility Testing, Load Testing, UAT]]></title>
            <link>https://medium.com/@rdaffa506/types-of-testing-stress-testing-compatibility-testing-load-testing-uat-9e25ac1cb2ec?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e25ac1cb2ec</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 16:47:29 GMT</pubDate>
            <atom:updated>2022-12-20T17:11:14.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*FaeuemuxhXJq4YSvSpYgEQ.png" /></figure><h4>1. Stress Testing</h4><p>This test is used to determine the load on a platform that has the potential to cause errors. The trick is to evaluate the system or components outside the limits of the specified requirements. For example, in the mobile app, we can move a page or press a button quickly and repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*EqoBfUE2IMev4iiU.jpg" /></figure><p>In Software Engineering, Stress Testing is also known as an Endurance Test. The purpose of this test is to ensure that the system can recover after a failure or commonly known as recovery.</p><p><strong>How to Do Stress Testing</strong><br>Stress Testing can be carried out in 5 major stages:<br>1. Make a plan that is collecting system data, analyze the system and determine the purpose of stress testing<br>2. Create an automation script for stress testing<br>3. Run the stress testing automation script and save the results stress testing<br>4. Analysis of test results and identification of obstacles encountered<br>5. Tweaking and Optimization: Perfecting the system, changing the configuration, and optimizing the code with the goal that meets the desired benchmark.</p><p><strong>Tools for Conducting Stress Testing</strong><br>1.LoadRunner<br>LoadRunner (HP) is a tool for Load Testing that many uses. Load testing results formed by Loadrunner are considered the benchmark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/1*ZhxX3q7Sf26HAm9N39uiXQ.png" /></figure><p>2. Jmeter<br>Jmeter is an Open Source testing tool. This is an application<br>Pure Java for stress testing and performance testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*3UeMLYQQ0aF16g66ya7zQw.png" /></figure><h4>2. Load Testing</h4><p>If stress testing is used to measure work software with excessive workload, load testing on the contrary, guys! Load testing is a test of system behavior under conditions of normal workload or so to speak simulating the actual workload. So, we can know whether in a normal workload the system is running fine.</p><h4>3. Compatibility Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*HlwUfgedU_xMzLUOFqRauQ.png" /></figure><p>As the name implies, this test is to test system compatibility, We test whether the system is able to run on various operating systems, network environments, specific devices, and so forth.</p><h4>4. UAT (User Acceptance Testing)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NfiTdQ_aRxe297-Y.jpg" /></figure><p>This testing is done by the user to make sure whether the product or software is in accordance with user needs. In testing this UAT, convenience, and capability product in solving the problem of the user<br>be the main focus, you know! So, we can know whether the product is an acceptable end user or not.</p><p>As a layman, the user will have clearer thinking. They will assess the function product from the user’s point of view. So, the developer can fix the issues that existed before the product actually released.</p><p>UAT there are 2 models:<br>- Demonstration with corporate parties then, clients Receive the results along with the documentation<br>- There are also clients who try directly by themselves</p><p>Oh yeah, if we use this type of testing, make sure the user doing the testing is in accordance with the target user, For example, in Bingo Shop, users can<br>conducting trials are active online shop users.</p><p>Before doing UAT, there are things that are necessarily ensured by QA, among others:<br>1. Business requirements must be available<br>2. Coding on the application has been fully developed<br>3. Unit Testing, Integration Testing &amp; System Testing must already be available<br>4. No bug with High, Medium levels when the System Integration phase<br>5. Only <a href="https://www.lawinsider.com/dictionary/cosmetic-fault">cosmetic bugs</a> acceptable before UAT like spelling mistakes, color<br>backgrounds, etc.<br>6. Regression testing should be completed flawlessly the big one<br>7. All defects reported must be repaired and tested before UAT<br>8. The matrix for all tests must be resolved<br>9. The UAT environment must be ready<br>10. Sign letters or communications from the Team System Testing that the system is ready for UAT.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e25ac1cb2ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a good Test Scenario & Test Case]]></title>
            <link>https://medium.com/@rdaffa506/test-scenario-test-case-b62d36601f08?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/b62d36601f08</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 15:30:09 GMT</pubDate>
            <atom:updated>2022-12-20T17:09:12.303Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QFXtsWRMdEEcen0u.png" /></figure><p>Before we review how to manufacture a Test Scenario and Case, let&#39;s try it Let&#39;s go first. Actually, the meaning of the Test Scenario and<br>What are Test Cases? Instead of getting curious, just go ahead, and let&#39;s discuss this!</p><p>as an example, have you ever bought a used cell phone from a shop or anything from the owner directly? Before dealing with the seller, you will check the goods first. Before checking this, you have also prepared a list of features what are you going to check first, like the camera, voice, IMEI, and so on. even if the Test scenario is the same, you know, Test Scenario is a document that contains related information what features will we test? You can tell this information is from the <a href="https://www.interaction-design.org/literature/topics/user-stories">user story</a>. for an example can be seen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*2TL7TR_MDcECPvUyx-H0SA.png" /><figcaption>Test Scenario</figcaption></figure><p>If the Test Scenario is a list of features to be tested, keep going<br>What are test cases?<br>Let’s go back to buying used cell phones, shall we?<br>Once we have a list of what to test, we can test it with the method or procedure that has been we understand. So, the HP testing procedure is actually quite similar to the same meaning Test Case!<br>But, the Test Case in QA is different, you know when you buy it<br>MOBILE PHONE! I mean, where’s the difference? 🤔</p><p>The difference between HP Testing is, Test Cases in QA must use documents, Yes! A test Case is a document that contains a set of systematic steps of QA to do testing. Of course, the aim is to ensure the product that we tested complies with the provisions and can work fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*KoOdNErFTG5un8QXh6CjRw.png" /><figcaption>Test case</figcaption></figure><p>like the name Test case, don’t forget to add the Test case option<br>If you want to do a test, make sure we have to Enter the cases (test state) in the Test The case. When filling out the Test Case document, try to position yourself as a user, Look at the following example, come on!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*9vlD9EqRLf50YnKzVGt_-g.png" /><figcaption>Test case with steps</figcaption></figure><p>For example, in the Login section, the Test Case is the user<br>can log in with email and password already registered. Well, we write the steps according to how the user will log in, yes! Let me be clearer, you can see this in the picture above.</p><p>Oh yes, the Scenario Test that we included in the Test Case, not just what should work. We also need to include a scenario with results that failed. In this example, that is, the login failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*0V9JaYLjhyqXGk20Futikw.png" /><figcaption>Test case failed</figcaption></figure><p>Until here, you already understand, right? What are Test Scenarios and Test Cases the same? Oh yeah, we already learned about the Test Scenarios and Test Cases that need depth document form. How about the second format?<br>the document?</p><p>Here’s the format of the Test Scenario and Test case, The Test Scenario, and Test Case formats are flexible but there are still rules, depending on each company. But, there are some variables that are almost always there, really.<br>For example, Expected Results and Steps. Including drafting provisions. There is a company that chooses that the Test Scenario and Test Case be separated, some are combined.</p><p>So, what language do we use? to make Test Scenarios Test Cases?<br>Now, the language we use to compose the Test Scenarios and Test Cases is usually English because more general and universal. But, in some companies, it can be to use the language of their respective countries. So make sure you are reliable in both.</p><p>Well, the table below is an example of the Test Case format!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*XY7P3BJxwAJ0zQjxKGTu2w.png" /></figure><p>So, in a Test Case table, generally, there are the following components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*Ocuaz_MDfLDPIRwzBR0SVg.png" /><figcaption>the components in it</figcaption></figure><p>Let’s get surgery!<br>Scenario ID and Case ID These two components are the identity of the item or feature which we will test. We can get the Scenario ID from the scenario document. Meanwhile, Case ID is the identity of the cases which is made. Within a Scenario or feature, usually, there is more than 1 case, you know!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*0KkWMp0SczEwrthv3NO0Gw.png" /><figcaption>TS = Tes Scenario || TC = Test Case</figcaption></figure><p>So, take a look at the image above! Row 1 and 2 have the same Scenario ID while Case The ID is different. Likewise, with lines 3 and 4, this indicates that every 1 Scenario has more than 1 Case.</p><p>Types and Test Cases Component Type is the type of case to be tested.<br>Is it for success conditions (Positive) or conditions failed (Negative). Meanwhile, this Test Case is filled with conditions for doing the testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*iAIhjrrMKpNG-dQJP8L_vA.png" /></figure><p>Steps, Steps Description, and Expected Result</p><p>The step is the numbering for each stage of testing. Step Description is the steps we do the test. The expected result is a condition that is expected to match the Type and Test Case. So, the Step Description and Expected Result are actually related.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*WmPqGr8MHRsdY3Ij8ryiUA.png" /></figure><p>Pre Conditions and Post Conditions<br>These two components are also related to each other, friends!<br>Pre-Condition is the condition before the test is carried out.<br>Meanwhile, Post-Condition is the condition after the test<br>conducted. So, you can fill it out after the test is conducted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*8rr0hYpXg-uKZzD5BCMxAQ.png" /></figure><p>For a more complete example of the test case format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5x82FmNXy-hU5TukNwiPA.png" /></figure><p>In general, the main elements are the same, guys. Only the difference<br>are complementary elements of the test case.<br>We can see that for this test case format, there are 4 additional elements:<br>1. Test case description, serves to explain the purpose of the test case<br>2. Actual result, serves to provide information on the results of the testing<br>conducted<br>3. Status, which is to provide information on the status of the test case<br>successful, failed, or not yet tested<br>4. Notes, namely to write other additional information</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b62d36601f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium Python for Automation Testing]]></title>
            <link>https://medium.com/@rdaffa506/selenium-python-for-automation-testing-fa1ebd355bac?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa1ebd355bac</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Thu, 30 Jun 2022 10:09:48 GMT</pubDate>
            <atom:updated>2022-06-30T10:09:48.202Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*osmlyypQ5iWWEYu0.png" /></figure><p>Let’s first explore what makes Python and Selenium WebDriver such excellent choices.</p><h4><em>Selenium WebDriver: Why Use It?</em></h4><p>Selenium is the industry standard for UI automation testing. It’s understandable why it has become the standard open-source tool for UI automation testing. It has a sizable number of capabilities that enable users to automate browser interactions in a manner similar to how they would interact with a web page directly. Since Selenium is so adaptable, it may be combined with a wide variety of frameworks, assertion libraries, and even scripting languages like Python. You’ll find this post by Rex Jones II interesting to read for all the new developments coming up in <a href="https://blog.testproject.io/2020/06/08/selenium-4-new-features/">Selenium 4</a>!</p><h4>Python: why?</h4><p>Although Python has been around since the early 1990s, its popularity has increased dramatically over the past ten years, in part because the data science community has embraced it and in part because it’s a terrific language for novices. Its basic goal is to promote clear and understandable code, and it has a straightforward syntax. In addition to a fantastic community and a large library of packages, Python also provides some excellent frameworks for automation testing. These factors make Python a fantastic option for automation testing.</p><h4>Installing Python?</h4><p>check my article on <a href="https://medium.com/@rdaffa506/python-fundamental-947f0307cc03">python fundamentals for beginners</a>, there is a procedure for downloading python</p><h4>Install Selenium</h4><p>Now that Python is available, we can install Selenium. Creating a virtual environment for your project and installing any necessary packages there is the best practice for Python, but for the purposes of this tutorial, we’ll be installing it globally on our machine.</p><p>PIP, Python’s package management system, will be used to accomplish this, and it couldn’t be easier. Put the following command into your command prompt and press Enter:</p><pre>Pip install selenium</pre><p>It may take a minute, but you should see output that looks a little like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*X6LyEJD0KLgoQ1Oa.png" /></figure><p>And that’s it, Selenium is now installed and ready to use. One last step before we can have some fun writing our Selenium Python test. We need to set up our driver.</p><h4>Drivers</h4><p>To start and communicate with a browser instance, Selenium WebDriver needs drivers. Each browser has a unique driver; for instance, Firefox uses the GeckoDriver whereas Chrome uses the ChromeDriver. Let’s go get the <a href="https://chromedriver.chromium.org/downloads">driver</a> since we will be utilizing Google Chrome for this demonstration.</p><p>Note: Verify your browser’s version before downloading the appropriate driver.</p><p>Unzip the driver when it has been downloaded, then copy it to a system location. It will be saved to C: bin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*8pe1d-QNTxAuxZq9.png" /></figure><p>The driver location must be added to our system’s PATH variable before we can create our tests, okay?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*fn-Z_Tk52eP9KsIibuNH0g.png" /></figure><p>We’re almost there. We’ve completed the setup, so now we can look at our test!</p><h4>Writing our First Selenium Python Test</h4><p>Good job thus far! The exciting part will now be writing our test. Before opening your IDE and navigating to your project directory, we can create a new directory to store our project. For this tutorial, we choose to use Visual Studio code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*t5-0nU1J3w3juxYYF44HRA.png" /></figure><p>The following step is to make a new Python file in the project directory. For now, we can just call it first test1.py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*H8A56iGjNPRjsPalY7AQ4A.png" /></figure><p>And we’re sort of prepared to leave.</p><p>Of course, we need a test object before moving forward. For test automation, we can utilize <a href="https://docket-test.herokuapp.com/register">https://docket-test.herokuapp.com/register</a>, a demo website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*Kx0s0rvkEXmH8LoFrUlP2A.png" /></figure><p>We have an application, an IDE, a project folder, and a test python file. We now need to decide what to do, so let’s split it down into three steps:</p><p>1. Navigate to our application — This step will be referred to as Arrange.</p><p>2.Fill out the registration form, then press “Register.” These are our actions.</p><p>3. Confirm that our user has been registered — At this point, we may Assert the outcome.</p><p>Great. We can now write some code for each of the three steps after organizing them into the Arrange, Act, and Assert steps.</p><p>In order to access its API, we must first import Selenium WebDriver into our test. Simply add the following line to the start of your test1.py file to accomplish this.</p><pre>import selenium.webdriver as webdriver</pre><p>We can then move forward and carry out our Arrange steps. Setting things up in the Arrange part allows us to move forward with our actions.</p><p>Here, we’ll navigate to our application, maximize the window, and set the driver instance.</p><p>Below our import statement, we can add the following line to set the driver instance:</p><pre>driver = webdriver.Chrome()</pre><p>This instructs Selenium to use the ChromeDriver that we previously downloaded.</p><p>When our driver instance is ready, we can use the ‘driver.get’ command to access our website as follows:</p><pre>driver.get(&quot;https://docket-test.herokuapp.com/register&quot;)</pre><p>By maximizing the window, we can complete the Arrange steps. Simply by adding:</p><pre>driver.maximize_window()</pre><p>Awesome! As of now, your Python file should resemble this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd7f3e710f4cda2566fdc72c5c7aa1d8/href">https://medium.com/media/cd7f3e710f4cda2566fdc72c5c7aa1d8/href</a></iframe><p>We can now consider entering some information into our registration form. But first, we need to know where each component is located. Jumping to our application in Chrome, let’s examine the components. To open developer tools, simply right-click on the element you wish to use and choose examine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPKWQqCBHmkucNzLODcShA.jpeg" /></figure><p>Elements can be located in a variety of ways. We’ll use the ID attribute for the time being. Now that we’ve written our Act steps, we can return to our test. There are two steps involved in entering text into a field. Find the element first, then enter the text that we wish to. ‘driver.find element by id()’ will be used to locate the element, and the ID value of the desired element will be supplied. The text we want to write into the field can then be supplied using the send keys() function. For instance:</p><pre>driver.find_element_by_id(&quot;username&quot;).send_keys(&quot;Robert&quot;)</pre><p>Let’s proceed and fill out the first four fields. When finished, you should have something that resembles this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d397edd97e62900986103517a41f3916/href">https://medium.com/media/d397edd97e62900986103517a41f3916/href</a></iframe><p>We’re getting close. Simply click the Register button to get started. It’s just as easy to accomplish that, except this time we’ll use click() rather than the send keys() function like we did previously:</p><pre>driver.find_element_by_id(&quot;submit&quot;).click()</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb7182d3f7489da2ba34e6ce305b6cea/href">https://medium.com/media/bb7182d3f7489da2ba34e6ce305b6cea/href</a></iframe><p>You did well on the test. Now that we have the command line/terminal, we can start using it. Simply execute python first test.py after navigating to the directory where your first test.py file is saved. Once Chrome has opened, type your information into each field and press the “register” button. You’ll see this screen if it worked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uYcGN3zqgtboxmFC.png" /></figure><p>We may add our assertions if we return to our test1.py file. We’ll include two more. When a user successfully registers, we first verify that a message of congratulations displays on the screen before confirming that the user is then forwarded to the login page.</p><p>We can initially save the message in a variable before claiming that the message’s actual text matches what we expect in order to verify that the Congratulations message is displayed on the screen. Using the driver.find element command and the extension.txt, we can retrieve the text as follows:</p><pre>message = driver.find_element_by_xpath(&quot;/html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/form[1]/div[1]&quot;). text</pre><p>The text from the Congratulations notice that shows on the screen will be retrieved by this line and saved in a variable named “message.” That variable can be used to verify the appropriate wording.</p><p>You may have noticed that we are now using driver.find element by xpath rather than driver.find element by id as we did previously. This is due to the fact that our congratulatory message lacks an ID attribute, necessitating the use of an alternative locator — in this case, XPath — to discover the element.</p><p>After storing, we may test our claim. Python’s built-in assertion library, which makes constructing assertions really straightforward, is one of the reasons it’s so amazing. We only need to define a “assert,” as in:</p><pre>assert message == &quot;Congratulations, you are now registered&quot;</pre><p>We will verify that the user is forwarded to the login page after registration for our final assertion. Similar to our message check, we will first take the URL and store it in a variable before using our assert to compare the result to what we anticipate seeing. Driver.current url can be used to obtain the URL, which can then be compared to the desired URL.</p><pre>current_url =  driver.current_url<br>assert current_url == &quot;https://docket-test.herokuapp.com/login&quot;</pre><p>The assert section of your test should look like this :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a30ad1e74011b1956471acfb6bd94c9c/href">https://medium.com/media/a30ad1e74011b1956471acfb6bd94c9c/href</a></iframe><p>One more thing to say. Currently, our browser is still open after our test is over. So that we may add the driver, we want to make sure it is shut down when our test is through. quit till our test was finished.</p><pre>driver.quit()</pre><h4>Summary</h4><p>Let’s review everything we did. We have installed Python and Selenium together, set up our driver, explained why we would want to utilize Python and Selenium, and developed a web test to input and submit data and assert the results. The beginning is excellent! Although you’ve laid a solid foundation, keep in mind that this is only the beginning. There are many areas we didn’t cover in this test that you may look at if you wish to build on it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa1ebd355bac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a QA engineer]]></title>
            <link>https://medium.com/@rdaffa506/how-to-become-a-qa-engineer-7c23b1084fb0?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c23b1084fb0</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[pytest]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[quality-software]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 15:53:41 GMT</pubDate>
            <atom:updated>2022-06-27T15:53:41.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*0OPneOnNmZ8J4k9vVuMiFg.jpeg" /></figure><p><strong>Get to know the QA engineer profession</strong></p><p>The profession of a Quality Assurance Engineer makes you have to monitor every phase of product development to ensure that the design and software are by company standards. Software delays can be detrimental to the company, so they must be released on schedule and not exceed the set budget.</p><p>Software QA Engineers help meet set deadlines by testing the development process and conveying problems that occur to the development team and product team.</p><p>The most important thing from Testing is the analysis to make test cases by the business flow, this QA will ensure that the applications we make are by business requirements.</p><p><strong>Definition of Quality</strong><br>Quality is defined as a product or service that must be “fit for use and purpose.”<br>Quality is all about meeting customer needs and expectations regarding product functionality, design, reliability, durability and price.</p><p><strong>Definition of Assurance</strong><br>Assurance is defined as a positive statement of a product or service. It’s all about a product that has to work well. This provides a guarantee that it will work without problems according to expectations and requirements.</p><p>If you want to become a quality assurance person, you need skills like these:</p><ul><li><em>Good Analytical thinking</em></li><li><em>Knowing and Understanding Technical Flow</em></li><li><em>Knowing Rest API</em></li><li><em>Knowing Mobile Development Method ( Android/iOS )</em></li><li><em>Knowing Automation testing</em></li><li><em>Excellent communication</em></li></ul><p>I will discuss them one by one</p><p><strong>Good Analytical thinking</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o1wWLPZWbVm2x8A9.png" /></figure><p>If you see what a QA’s Job Desc is, it is doing testing, analyzing workflows and testing flows for an application so that it complies with business requirements. To do a test, you must first analyze the scope of the scope to be tested. You have to collect some data and match the Expected Result with the Actual Result from your test results. The expected result is the desired result from the product/business side while the Actual Result is the actual result that is displayed in your application. So it’s clear, that the company will look for people who have good analytical skills. If the analysis is arbitrary, the output will not match the desired business requirements. This is most crucial.</p><p><strong>Knowing and Understanding Technical Flow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-p983POjRcsjXCzBJ31ZA.png" /></figure><p>This is basic and absolutely mandatory. You will often play with this food, this is still very related to the point above, namely Knowing and Understanding Technical Flow. What is Rest API,Rest API or more fully called Restful API (Representational State Transfer) is one type of API (Application Programming Interface) which is commonly used to exchange data between many applications, regardless of how the application is made or in what language the application is made.</p><p>Rest API usually uses the http protocol, and the format of the data returned varies depending on the needs of the Rest API creation, but usually Rest API returns the format in JSON form. Because the JSON format is the most widely used and easy to process format.</p><p>Rest API uses Client-Server terminology, applications that process data from the database and serve requests from clients are called Rest-Servers while applications that send requests and receive data from Rest-Servers are called Rest-Clients.</p><p>To check that a Rest Server is running normally as expected, it is necessary to do testing / testing by the Developer or Programmer. Applications that are used for the API testing process are called API testing tools.</p><p>There are lots of API testing tools that can be used from free to paid ones. This time we will discuss some of them, especially for the Rest API testing tool.</p><ol><li>Katalon Studio</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*o1LOU_Mp1zx_lYju1-twAA.png" /></figure><p>Katalon Studio is an Api Testing tool that supports testing web APIs, both Rest and SOAP, not only that, Katalon is an all in one tool that has automated tests for web, mobile, api, and desktop. Unfortunately Katalon is currently only available for business users, you can use Katalon if you have a business email (gmail or yahoo email does not work). Katalon has a very complete feature suitable for those of you who will test various types of fire.</p><p>2. Insomnia</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*ZP0KLWOAhASW2LX0A7xBlg.png" /></figure><p>Insomnia core is an api testing tool specifically for testing Rest, GraphQL, and gPRC APIs. Simplicity is the main key of this application, this tool is very easy to use and it won’t take long to learn the interface. Insomnia is free and open source you can download it on the official website.</p><p>3. Postman</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*UtotZ9E6Tvz3WsInVRBVUw.png" /></figure><p>Postman is a Rest API testing tool that is very well known for its ease of use. Besides that, Postman is also a free tool that you can use to test your fire. Postman, as the name suggests, is a reliable postman for communicating with the Rest API.</p><p>4. Testmace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*F3qBYUkS_zqjc_ohe5L5rw.png" /></figure><p>Testmace is one of the API testing tools that is quite interesting because it has an automatic testing feature, besides that it has a pretty good interface, besides that we can save test results to the cloud. The basic version is free, you can try testing your API with this test mace.</p><p>5. Http Master</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*HxA_8Yt4G0Fb3RsQjE6aKg.png" /></figure><p>The last Rest API testing tool that we discussed is Httpmaster, there are two versions available for the application, express (free) and professional (paid), the free version itself is very good for testing Rest API. These tools are worth trying as an API tester.</p><p><strong>Knowing Mobile Development Method ( Android/iOS )</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Ri47a0hxPOSMWaFz.jpg" /></figure><p>This point depends on you being assigned to testing web applications or mobile applications. If you are assigned to test a mobile application, then you are required to know the process of developing a mobile application. You have to know how to run applications via the Emulator, create multiple OS environments on the emulator and so on. Sometimes you also have to play down to a low level, knowing the types of permissions on android/iOS and so on.</p><p>Examples of some applications that are used for mobile testing:</p><ol><li>Robotium</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HE8uKn7j7uOObdOS.jpg" /></figure><p>Robotium was one of the first automation testing tools and is often used to test Android-based software.<br>Robotium is a free Android UI testing tool. It is suitable for automated testing of various versions of Android and its sub-versions. Software developers often describe it as Selenium for Android. Tests created by Robotium are written in Java. In addition, Robotium is also a library for unit tests.<br>However, it takes a lot of time and effort to make testing through Robotium. Because you have to write the source code of the program to do automation testing. This tool is also not suitable for interaction with system software, because it cannot lock and unlock smartphones or tablets. There is no Record and Play function in Robotium, and it doesn’t provide screenshots.</p><p>2. Appium</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*zKsOw4XMdb_ZmP1g.png" /></figure><p>Is a framework used to create automation tests for iOS and Android platforms. This tool is free and supports Android versions from 2.3 and later. Appium uses the WebDriver interface to perform tests. Appium supports many programming languages, such as Java, C#, Ruby and others that have the WebDriver library.<br>Appium can control Safari and Chrome on mobile devices. This allows testing of mobile websites using Appium and the browser.<br>The drawbacks of Appium according to automation testers are poor and insufficient reports and reduced XPath support on mobile devices.</p><p><strong>Knowing Automation Test</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*WNwTTBIx1FTiYPTE.png" /></figure><p>If you can automate tests, that’s a huge plus. You don’t always do manual testing. it’s tiring and very time consuming. To be able to do automation tests, you need several tools such as Eggplant, Selenium.dll. When you have entered the automation test, usually you will often code again. It is certain, you must understand basic programming in accordance with the tech stack in your company. If your company uses React and React Native, then you have to understand those two technologies as well. Plus several supporting testing frameworks such as Jest, Mocha.dll. When you get to this point, I think you are very highly skilled, all testing is fully automated although there are some parts that still have to be tested manually. But at least it can help save you time, it can get you out of the tedious repeatable test zone too.</p><p>Some recommendations for testing automation tools,</p><ol><li>Selenium</li></ol><p>Selenium is one of the most popular testing tools in test automation. This testing tool is arguably the oldest testing tool and has been in development since 2014. Selenium is an ideal testing tool for frequent testing.</p><p>Selenium also has Selenium Webdriver, a framework for performing web automation and can be used to run reliable browser-based regression automation tests.</p><p>Many web developers prefer Selenium because it is compatible with various programming languages ​​and can be integrated with test frameworks. Selenium supports a wide range of popular OS (Windows, macOS, Linux) and browsers (Chrome, Firefox, Safari) for cross-environment testing.</p><p>Selenium is also open-source and can be easily integrated with other tools and frameworks. However, Selenium also has a drawback that when integrating Selenium with other tools in the CI/CD pipeline, you need to have certain technical knowledge and skills.</p><p>2. Eggplant</p><p>Eggplant, previously known as Testplant, is a testing tool that supports various automation technologies and platforms, from web, mobile, to Point of Sales (POS) applications. EggPlant is a black box GUI testing automation tool.</p><p>To perform software testing, Eggplant offers a wide variety of test automation tools that you can use to perform different types of tests. There is EggPlant Functional for functional testing and EggPlant Performance for load and performance testing.</p><p>Eggplant can also be easily integrated with popular test management tools. With a single test script, EggPlant can create multiple device scenarios.</p><p>With a short learning curve, Eggplant is a continuous testing tool best suited for manual testers. These tools offer a unique method of test automation with an image-based solution. Eggplant interacts with Applications Under Test (AUTs) by replicating the user’s point of view via screenshots and images.</p><p>Eggplant provides a test lab, a cloud device management service that allows development teams 24/7 access for use in continuous testing and continuous deployment.</p><p>In addition, Eggplant supports integration with CI/CD ecosystems such as Jenkins, Bamboo, CA Agile Requirements Designers. You can also integrate Eggplant with Undo (a recording and playback tool) to help developers shorten failure detection and response times.</p><p>3. Testcomplete</p><p>TestComplete is a functional testing automation platform developed by SmartBear. TestComplete gives software testers the ability to create automated tests for web applications, Microsoft Windows, iOS and Android. This tool supports various scripting languages ​​including Python, Javascript, VBScript.</p><p>TestComplete lets you perform tests by keyword or by data. The creators of TestComplete recently introduced an AI feature for dynamic recognition and maintenance of test objects. TestComplete can automatically detect and update tests if there are changes to the AUT UI.</p><p>TestComplete supports open integration with the CI/CD ecosystem via plugins. You can use this plugin to integrate with popular CI/CD tools like Jenkins, GIT, Zephyr (test management tool by Smartbear) or you can develop custom plugins to integrate with your existing system.</p><p>SmartBear claims TestComplete to be the easiest to use when it comes to automated UI testing. The advantage of TestComplete is that you can run parallel regression tests with automated builds and create stable regression tests. TestComplete can also automatically schedule and run regression tests without human intervention, significantly saving testing time and training costs.</p><p>Those are the 5 best application recommendations for automation testing. If you are interested in exploring IT skills, it’s a good idea to take IT training with SUHU. Please contact us at <a href="/service/mailto:mail@suhu.co.id">mail@suhu.co.id</a> to get complete information.</p><p><strong>Excellent Communication</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*H1NXepTQccv6mV6M" /></figure><p>Without a doubt, you must be good at communicating. Sometimes it is necessary to explain technical things to non-technical people as easily as possible. Excellent Communication is needed to provide more optimal output. At the beginning of the sprint/project you will analyze your test case according to the wishes of the product/business team. Then at the beginning of the test you must be able to interpret the results of this testing into a report (Testing Report), sometimes in the middle of development you also find bugs and have to report them to the developer team. This report format is part of skill communication. How can you make a report format that is efficient, not long-winded, all scopes are covered but still easy to understand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c23b1084fb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Fundamental]]></title>
            <link>https://medium.com/@rdaffa506/python-fundamental-for-beginner-70f6cc298a53?source=rss-57510f5e1a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/70f6cc298a53</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Daffa Ramadhan]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 08:46:41 GMT</pubDate>
            <atom:updated>2022-12-29T00:27:37.280Z</atom:updated>
            <content:encoded><![CDATA[<h4>A little history about the Python Programming language</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*-XjypWyDoz_SDEjgvsrXMg.png" /></figure><p>Python is a multipurpose and dynamic interpretive programming language, python language is much easier to understand even for a beginner, and unlike other programming languages</p><p>With code that is simple and easy to implement, a programmer can prioritize the development of the application that is made, instead of being busy looking for syntax errors.</p><pre>print(&quot;Learn python&quot;)</pre><p>Only by you writing the code as above, you can print what you want inside the ( ) with quotes “ “, without having to use a semicolon at the end</p><h3><strong>How to install python</strong></h3><p>Before you use python, you must install the latest version of python at this time, How to install python is very easy, follow the guide below. Below is a guide on how to install python on Linux, Windows, and Mac OS platforms.</p><p><strong>LINUX</strong></p><ol><li>Open a browser, visit <a href="https://www.python.org/downloads/">http://www.python.org/downloads/source/</a></li><li>Download the latest version of Python as a zip file for Unix/Linux</li><li>Extract the zip file you just downloaded</li><li>Edit the Modules/Setup file if you want to customize Python</li><li>Run <em>./configure</em> script</li><li><em>make</em></li><li><em>make install</em><br>This step will install Python in the standard location <em>/usr/local/bin</em> and the libraries in <em>/usr/local/lib/pythonXX </em>where <em>XX</em> is the latest version of Python you are using.</li></ol><pre>For some distros (distribution stores) from the Linux operating system Python is already installed in it. So you don&#39;t need to install it again. </pre><p><strong>WINDOWS</strong></p><ol><li>Open a browser, visit <a href="http://www.python.org/downloads/windows/">http://www.python.org/downloads/windows/</a></li><li>OR, click the direct link <a href="https://www.python.org/downloads/release/python-3105/">https://www.python.org/downloads/release/python-3105/</a></li><li>Open (click 2x) the python installer file that you just downloaded</li><li>Follow the installation steps to completion</li></ol><p><strong>Mac OS</strong></p><ol><li>Open a browser, visit <a href="http://www.python.org/download/mac/">http://www.python.org/download/mac/</a></li><li>Download the latest version of Python for Macintosh</li><li>Open the file you just downloaded</li><li>Follow the installation steps to completion</li></ol><h3><strong>Running Python</strong></h3><p><strong>LINUX</strong></p><ol><li>Open Terminal <strong>CTRL + ALT + T</strong></li><li>Type python then you will enter into the Python shell.</li><li>Write your Python script, for example, <em>print(“Welcome to Python”)</em>. if you press the <strong>ENTER </strong>key, the Python script will be executed.</li><li>To exit Python shell-type exit()</li></ol><p>OR</p><ol><li>Use a text editor, for example, <em>gedit.</em></li><li>Create a new file, and type your python script, for example, <em>print(“Welcome to Python”).</em></li><li>Save As with <em>.py</em> extension (example: <em>print.py</em>).</li><li>Run the file using Terminal.</li><li>Open a terminal <strong>CTRL+ALT+T.</strong></li><li>Go to the directory where your Python files are stored (example:<em> cd /Users/admin/Desktop/).</em></li><li>Run the Python script using python followed by the file name (example: <em>python print.py</em>).</li><li>Your Python script will be executed/run.</li></ol><p><strong>WINDOWS</strong></p><p>Using shell</p><ol><li>Open IDLE (python shell on windows), you can look for it in the <strong>START</strong> button.</li><li>Write your Python script, for example, <em>10 * 4 = 40.</em> if you press the <strong>ENTER</strong> key, the Python script will be executed.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*DofOIDHL13RxjSf8-5MX2A.png" /><figcaption>To exit Python shell-type <strong>exit()</strong></figcaption></figure><p><strong>Mac OS</strong></p><ol><li>Open a terminal.</li><li>Type python then you will enter into the Python shell.</li><li>Write your Python script, for example, <em>print(“Welcome to Python”)</em>. if you press the <strong>ENTER</strong> key, the Python script will be executed.</li><li>To exit Python shell-type <strong>exit()</strong></li></ol><p>OR</p><ol><li>Use a text editor.</li><li>Create a new file, and type your python script, for example, <em>print(“Welcome to Python”).</em></li><li>Save As with <em>.py</em> extension (example: <em>print.py</em>),</li><li>Run the file using Terminal.</li><li>Open terminal <strong>CTRL+ALT+T</strong></li><li>Go to the directory where your Python files are stored (example: <em>cd /Users/admin/Desktop/</em>).</li><li>Run the Python script using python followed by the file name (example: <em>python print.py</em>).</li><li>Your Python script will be executed/run.</li></ol><h4><strong>Type Data Python</strong></h4><p>A data type is a medium or memory on a computer that is used to store information.</p><p>Python itself has a data type that is quite unique when we compare it with other programming languages.</p><p>Here are the data types of the Python programming language:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*mnPp7xkQ7moJ2rhcPO5X_Q.png" /></figure><p>To try various data types, please try the Python script below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72d2dc63c1671fd3ec1cc7d32643bcd5/href">https://medium.com/media/72d2dc63c1671fd3ec1cc7d32643bcd5/href</a></iframe><h4><strong>Variable Python</strong></h4><p>Variables are memory locations reserved for storing values.<br>Variables store data that is carried out during program execution, which later the contents of these variables can be changed by certain operations on programs that use variables</p><p>Variables are dynamic, meaning that Python variables do not need to be declared a specific data type and Python variables can be changed when the program is run.</p><p>Writing rules :</p><ol><li>The first character must be a letter or underscore ( _ )</li><li>Subsequent characters can be letters, underscores ( _ ), or numbers</li><li>Characters in variable names are case-sensitive. This means that lowercase and uppercase letters are distinguished. For example, the variables <em>first name </em>and first name<em> </em>are different variables.</li></ol><p>to create a variable in python, the method is very easy, just write any free variable, then fill it with any value by adding equals ( = ), before the value</p><p>Below is an example of using variables :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa5971478129c23451811a9f62475b98/href">https://medium.com/media/aa5971478129c23451811a9f62475b98/href</a></iframe><h4><strong>Python Operators</strong></h4><p>Operators are constructs that can manipulate the value of an operand.</p><p>For example operation <em>3 * 2 </em>= <em>6</em>. Here <em>3 </em>and <em>2 </em>are operands and <strong>* </strong>is the operator.</p><p>Python programming language supports a variety of operators, including:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*guyxb0T0I9LhrbrT6MnCDA.png" /></figure><p>below is an example of <strong><em>arithmetic operators</em></strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/495b6d7e97b870beb9554507807959c0/href">https://medium.com/media/495b6d7e97b870beb9554507807959c0/href</a></iframe><p><strong><em>comparison operator</em></strong> is used to compare a value :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*0ADxMpkRbeew4LuHo-47_w.png" /></figure><p><strong><em>Assignment Operator</em></strong> is used to assign and modify the value to a variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*BqpnsY_sO_XocckaaK70GQ.png" /></figure><h4>Python Conditions</h4><p><strong><em>IF </em></strong><em>Conditions</em></p><p>If conditions are used to determine the actions and conditions to be taken</p><p>there are several statements including <strong>if, else</strong> and<strong> elif</strong> The if the condition is used to execute code if the condition evaluates to true<strong> True</strong><br>If the condition evaluates to <strong>False,</strong> the<strong> if</strong> statement/condition will not be executed.</p><p>Below is an example of using<strong> IF :</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ea4d988434590e09980351858478d5/href">https://medium.com/media/13ea4d988434590e09980351858478d5/href</a></iframe><p><strong>IF ELSE </strong>Conditions</p><p>Is used to determine what action to take/execute if the conditions do not match.</p><p>The IF ELSE condition is a condition where if the statement is true <strong>True </strong>then the code in the if will be executed, but if it is <strong>False </strong>then the code in the else will be executed.</p><p>Below is an example of IF ELSE:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ecec7136d84927f6bf082e271b6d1fa/href">https://medium.com/media/9ecec7136d84927f6bf082e271b6d1fa/href</a></iframe><p><strong>ELIF </strong>Conditions</p><p>With elif we can create program code that will select several possibilities that can occur. Almost the same as the “else” condition, the difference is that the “elif” condition can be many, not just one.</p><p>Below is an example of ELIF :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf9cce0d0a9485b774cd6cffc5acb66e/href">https://medium.com/media/cf9cce0d0a9485b774cd6cffc5acb66e/href</a></iframe><h4>Python Loops</h4><p>A loop is a program code instruction that is executed repeatedly. Its function is to command the computer to do something repeatedly with a certain amount as long as a predetermined condition is still met.</p><p>The loop has three parts :</p><ol><li>While loop</li><li>For loop</li><li>Nested loop</li></ol><p><strong><em>While loop</em></strong></p><p>A while loop is a statement that is executed many times as long as the condition evaluates to<strong> True.</strong></p><p>Below is an example of using a While Loop :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c9036586f8286f8675b671fa6965613/href">https://medium.com/media/4c9036586f8286f8675b671fa6965613/href</a></iframe><p><strong><em>For Loop</em></strong></p><p>Python’s <strong>for </strong>loop has the ability to iterate over items of any order, such as a <strong>list </strong>or a <strong>string</strong>.</p><p>Below for an example For Loop :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b317333b748f26103669506c3bf24e70/href">https://medium.com/media/b317333b748f26103669506c3bf24e70/href</a></iframe><p><strong><em>Nested Loop</em></strong></p><p>A nested loop is a programming term that means to make loops within loops.</p><p>Below Is an example of the nested loop:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c047c6b7b7c4752d9763cc68b6ba3fbc/href">https://medium.com/media/c047c6b7b7c4752d9763cc68b6ba3fbc/href</a></iframe><h4><strong>Python List</strong></h4><p>In the Python programming language, the most basic data structure is a sequence of lists. Each successive element will be assigned a position number or index. The first index in the list is zero, the second index is one, and so on.</p><p><strong><em>Make a python list</em></strong></p><p>The list is the most versatile data type available in Python, which can be written as a comma-separated list of values ​​(items) between square brackets. The important thing about lists is that the items in a list cannot be of the same type.</p><p>Below is an example of a list :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/54d733ad0ed90b50f7e5c3266c911b40/href">https://medium.com/media/54d733ad0ed90b50f7e5c3266c911b40/href</a></iframe><p><strong><em>Access values in the python list</em></strong></p><p>To use it, use square brackets to slice along with the index, to get the values ​​available in the index</p><p>Below is an example :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d856dc1a0e2198e721bcb135437dd0fc/href">https://medium.com/media/d856dc1a0e2198e721bcb135437dd0fc/href</a></iframe><p>list1[0]: fisika list2[1:5]: [2, 3, 4, 5]</p><p><strong><em>Delete values in the python list</em></strong></p><p>To delete a value in a python list, you can use one of the del statements if you know exactly which element you are removing.</p><p>Below is an example :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/adf4affcbd77a5390caa434dff393895/href">https://medium.com/media/adf4affcbd77a5390caa434dff393895/href</a></iframe><p><strong><em>Python List Methods and Functions</em></strong></p><p>Python includes the following methods and functions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*2Oz8o21j7gRaV32JfetTZg.jpeg" /></figure><h4>Python Tuples</h4><p>Tuples are sequences, like lists. The main difference between tuples and lists is that tuples are immutable, unlike Python’s Lists. Tuples use brackets, while Python lists use square brackets.</p><p>Creating tuples is as easy as entering comma-separated values. Optionally, you can enter these comma-separated values ​​between the brackets as well. As an example :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecd6c666c8da3e12cf0a790b7d215a85/href">https://medium.com/media/ecd6c666c8da3e12cf0a790b7d215a85/href</a></iframe><p>Empty tuples are written as two empty parentheses, for example, tup_1 = (); To write a tuple containing a single value, you must enter a comma, even if there is only one value, for example, tup_1 = (10,) Like String indexes, the index of tuples starts at 0, and they can be sliced, concatenated, and so on.</p><p><strong><em>Access Values ​​In Python Tuples</em></strong></p><p>To access values ​​in tuples, use square brackets to slice along with the index or index to get the values ​​available at that index. As an example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca28b8406f4277eec9d5dd92dc0053e8/href">https://medium.com/media/ca28b8406f4277eec9d5dd92dc0053e8/href</a></iframe><pre>tup1[0]: albert tup2[1:5]: (2, 3, 4, 5)</pre><p><strong><em>Basic Operations on Python Tuples</em></strong></p><p>Tuples respond to the + and * operators in the same way as Strings; They mean concatenation and looping here also applies</p><p>, except the result is a new tuple, not a string.</p><p>The following example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*bxn39rRkD0AeQ546HgmkHA.png" /></figure><p><strong><em>Built-in Functions in Python Tuples</em></strong></p><p>Python includes the following built-in functions :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*JLDsmZ5IbStoQfNJXCkjeA.jpeg" /></figure><h4><strong>Python Dictionary</strong></h4><p>Dictionary is a data type in python that serves to store a collection of data/values ​​with a “key-value” approach, each key is separated from its value by a colon (:)</p><p>The dictionary value can be of any type, but the key must be an immutable data type such as a string, number, or tuple.</p><p><strong><em>Access values in the python dictionary</em></strong></p><p>To access a Dictionary element, you can use the familiar square brackets along with the key to getting the value. Here is a simple example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1250af7903d737bd455d6fe40edf77b3/href">https://medium.com/media/1250af7903d737bd455d6fe40edf77b3/href</a></iframe><p><strong><em>Update Values ​​In Python Dictionary</em></strong></p><p>You can update the Dictionary by adding new entries or key-value pairs, modifying existing entries, or deleting existing entries as shown in the simple example given below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e261c29870d28ae988e98d51d2f7f21/href">https://medium.com/media/1e261c29870d28ae988e98d51d2f7f21/href</a></iframe><p><strong><em>Remove Python Dictionary Element</em></strong></p><p>You can delete individual Dictionary elements or delete the entire contents of the Dictionary. You can also delete the entire Dictionary in one operation.</p><p>To explicitly delete the entire Dictionary, just use the del statement. Here is a simple example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d331f331c3f3bbf62f51a2c80e08b2a/href">https://medium.com/media/2d331f331c3f3bbf62f51a2c80e08b2a/href</a></iframe><p><strong><em>Method Build-in in Python Dictionary</em></strong></p><p>Python includes the following built-in methods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*dAjlzB_IvKStzTrC9snYfw.jpeg" /></figure><h4><strong>Python Function</strong></h4><p>Functions are organized and reusable blocks of code that are used to perform an action. Functions provide better modularity for your application and a high level of code usage.</p><p>Defining Python Functions<br>You can define functions to provide the required functionality. Here are simple rules for defining functions in Python.</p><p>1. The function block starts with the keyword def followed by the function name and parentheses (()).<br>2. Each input parameter or argument must be placed inside these brackets. You can also specify parameters inside these brackets.<br>3. The first statement of a function can be either an optional statement — a function documentation string or a docstring.<br>4. The code block in each function starts with a colon (:) and is indented.<br>5. Restatement [expression] exits a function, optionally passing the expression back to the caller. A return statement without arguments is the same as a return of None.</p><p>Function example :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd39a66681abb6b2bc3e483c5907ed7a/href">https://medium.com/media/bd39a66681abb6b2bc3e483c5907ed7a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f6cc298a53" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>