<?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 Gvnswetha on Medium]]></title>
        <description><![CDATA[Stories by Gvnswetha on Medium]]></description>
        <link>https://medium.com/@gvnswetha1995?source=rss-45d1cd46e49e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4vWeSPXVmf8nuwdvqp3Ujw.jpeg</url>
            <title>Stories by Gvnswetha on Medium</title>
            <link>https://medium.com/@gvnswetha1995?source=rss-45d1cd46e49e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:23:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gvnswetha1995/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[Software Testing Part-5-Types of software testing.]]></title>
            <link>https://medium.com/mindorks/software-testing-part-5-types-of-software-testing-b9de72b96ced?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9de72b96ced</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Tue, 03 Dec 2019 21:12:09 GMT</pubDate>
            <atom:updated>2019-12-03T21:13:45.152Z</atom:updated>
            <content:encoded><![CDATA[<h4>Test Case Design Techniques,Defect Management Process and Bug Life Cycle Status.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r_aNiIas42sIqMpZTKN9rg.jpeg" /></figure><p>In this article lets see a <em>couple of software testing techniques:</em><br>1)<strong>Adhoc Testing: </strong>This is a type of software testing which is performed without proper planning and documentation.<br> *This testing is carried out with the knowledge of the tester about the application and the tester tests randomly without following the specifications/requirements.</p><p><strong>2)Monkey Testing:</strong>This is type of test in which the functionalities are tested randomly without any knowledge on the application and test cases.</p><p><strong>3)Re-Testing:</strong>When a test fails and we determine the cause of the failure which could be a software fault or any other and if the fault is reported then we can expect a new version of the software that has the fault fixed.</p><p>*In simple words, Retesting is testing a specific bug after it is fixed.</p><p>*When retesting, it is important to ensure that the test is executed in exactly the same way as it was the first time, using the same inputs, data and environment.</p><p><strong>4)Accessibility Testing</strong> : The aim of Accessibility Testing is to determine whether the software or application is accessible for disabled people or not.</p><p>Here, disability means deaf, color blind, mentally disabled, blind, old age and other disabled groups. Various checks are performed such as font size for visually disabled, color and contrast for color blindness, etc.</p><p><strong>5)Input Domain Coverage(BVA,ECP):</strong>During this input domain testing, test engineers validate data provided to the application with respect to values and length.<br>This has 2 techniques<br>a)Equivalence class partition.<br>b)Boundary value analysis.</p><p><strong>Example</strong>:<br>In a text box with field user name.<br>The requirements for the text box are:<br>a)It allows min 4 to max 8 charterers<br>b)It allows only lower case letters.</p><p><em>Based on the requirements we need to prepare the test data which have both positive and negative inputs.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*a3NKYOfjswn-Vkqqqn_NZw.png" /></figure><p><strong>6)Database Testing</strong>: In this testing,test engineers validates the data with respect to database.<br>Validates DML operations (Insert,update,delete)<br>SQL language: DDL,DML,DCL etc.,<br>We have seen more about this in the DBMS article series.</p><p><strong>7)Error Handling Testing</strong>:This validates error messages thrown by the application when we provide invalid data.<br> *The error message should be clear and easy to understand by the user</p><p><strong>8)Calculations/manipulations Coverage:</strong>This validates mathematical calculations.</p><p><strong>9)Links Existence &amp; Links Execution:</strong><br><strong>Links Existence </strong>: This checks if the links are placed in the appropriate location or not.<br><strong>Links Execution</strong>: This checks if the link is navigating to appropriate page or not.<br><strong>Types of links:</strong><br>a)Internal Links<br>b)External Links<br>c)Broken Links.</p><p><strong>10)Cookies &amp; Sessions</strong>:Cookie is a temporary internet file which is created at client side when we open the website and these files contain user data.<br>Sessions are time slots which are allocated to the user at the server side.</p><p><strong>11)End to end testing:</strong>This is a kind of testing where overall functionalities of the system including the data integration among all the modules is called end to end testing.</p><p><strong>12)Exploratory testing:</strong>In this testing we explore the application and understanding the functionalities adding or modifying the existing test cases for better testing is called Exploratory testing.</p><p><strong>13)Globalization testing or internationalization testing:</strong>In this we Check if the application has a provision of setting and changing languages date and time format and currency etc., if it is designed for global users, it is called Globalization testing.</p><p><strong>14)Localization Testing:</strong>This Checks default languages currency date and time format etc., if it is designed for a particular locality of users is called Localization Testing.</p><p><strong>15)Positive Testing:</strong>Testing conducted on the application in a positive approach to determine what system is supposed to do is called Positive Testing.<br> *This helps in checking if the customer requirements are justifying the application or not.</p><p><strong>16)Negative Testing:</strong>Testing a software application with a negative perception to check what system is not supposed to do is called negative testing.</p><p><strong>Note</strong>:</p><p>The above-mentioned Software Testing Types are just a part of testing. However, there is still a list of more than multiple testing techniques, but all testing types are not used in all types of projects.</p><p><strong>Software Testing Life Cycle STLC:<br></strong>STLC has the following phases as explained below.</p><ul><li>Phases are dependent on</li></ul><ol><li>Nature of the Software</li><li>Product</li><li>Time and resources allocated for the testing</li><li>The model of SDLC that is to be followed.</li></ol><p><strong>STLC phases:</strong></p><ol><li>Requirement Analysis</li><li>Test Planning</li><li>Test Designing</li><li>Test Execution</li><li>Defect reporting and Tracking</li><li>Test Closure</li></ol><p>*STLC starts as soon as requirements are defined or SRD (Software Requirement Document) is shared by stakeholders.<br> *STLC provides a step-by-step process to ensure quality software.<br> *In each phase we need different inputs and we perform different activities and get the outputs.</p><ol><li><strong>Requirement Analysis</strong>: During this phase, test team studies and analyzes the requirements from a testing perspective.</li></ol><p>*This phase helps to identify whether the requirements are testable or not.</p><p>*If any requirement is not testable, test team can communicate with various stakeholders (Client, Business Analyst, Technical Leads, System Architects etc) during this phase so that the mitigation strategy can be planned.</p><p>2. <strong>Test planning</strong>: In this phase test team plans the strategy and approach.<br>A document describing the scope,approach,resources and schedule of testing activities.<br>This step also involves <strong>Inputs </strong>like:<br>1)What to Test?<br>2)How to Test?<br>3)When to test?</p><p>*This step also involves activities like Identify the resources,team formation,test estimation,preparation of test plan,review on test plan,test plan sign-off.<br><strong>Output will be:<br></strong>Test Plan Document</p><p>A test plan contains the following list of details:<br>a)Objective<br>b)Features to be tested<br>c)Features not be tested<br>d)Test Approach<br>e)Entry and exit Criteria<br>f)Suspension and resumption <br>g)Test environment<br>h)Test deliverable’s &amp; milestones<br>i)Schedules<br>J)Risk and Mitigation<br>K)Approvals</p><p>3.<strong>Test Designing</strong> :In this phase we develop the test cases based on scope and criteria’s.<br>This step also includes <strong>Inputs </strong>like:<br>1)Project plan<br>2)Functional requirements<br>3)Test plan<br>4)Design documents<br>5)Use cases<br>It has <strong>Activities </strong>like:<br>a)Preparation of test scenarios,<br>b)Test cases,<br>c)Reviews on test cases,<br>d)Tractability matrix<br>e)Test cases sign off<br><strong>Output will be:<br></strong>Test case document<br>Tractability Matrix<br><br><strong>4.Test Execution</strong> :In this phase real-time validation of product and finding bugs is done.<br>This step also includes <strong>Inputs </strong>like:<br>1)Functional requirements<br>2)Test plan<br>3)Test Cases<br>4)Build from development team.<br>The following are the <strong>Activities </strong>involved in this phase:<br>a)Executing test cases<br>b)Preparation of test report/test log<br>c)Identifying defects<br><strong>Output will be:</strong><br>Status/test report</p><p><strong>5.Defect reporting and Tracking:</strong> Defect tracking is an important process in software engineering as complex and business critical systems have hundreds of defects. <br> *One of the challenging factors is Managing, Evaluating and Prioritizing these defects. <br> *The number of defects gets multiplied over a period of time and to effectively manage them, defect tracking system is used to make the job easier.<br>This phase includes <strong>Inputs </strong>like:<br>1)Test cases<br>2)Test reports/test log<br>Also, <strong>Activities </strong>like<br>a)Preparation of Defect report<br>b)Reporting defects to developers<br><strong>Output will be:<br></strong>Defect Report</p><p><strong>6.Test Closure/Sign Off :</strong>Once testing is completed, matrix, reports, results are documented.<br>The <strong>Inputs </strong>will be:<br>1.Test reports<br>2.Defect reports<br><strong>Activities are:</strong><br>a)Analyzing test report<br>b)Evaluating Exit Criteria.<br><strong>Output will be:<br></strong>Test Summary reports</p><p><strong>What is a use case?<br></strong>A use case is a list of actions or event steps, typically defining the interactions between a role and a system, to achieve a goal. The actor can be a human or other external system.</p><p><strong>What is a test scenario?<br></strong>The possible areas to be tested like what to test?</p><p>*This is a test procedure and are derived from use cases.</p><p><strong>What is test case?<br></strong>This is something that describes How to test and describes test steps,expected and actual results.<br> *Test case contain set of input values,execution precondition,expected results and executed condition,developed to cover certain test condition.</p><p><strong>Test Case Design Techniques :<br>1)</strong>Boundary value analysis<br>2)Equivalence class partitioning (we have seen these in the previous <a href="https://medium.com/p/137820878b21/edit">article </a>)</p><p><strong>Decision table testing </strong>: This has actions and conditions columns.<br> *If condition is valid action will be passed else it will be failed and will be listed in decision table.<br><strong>Example</strong>:</p><p>If an email id and password are valid then action is passed.<br>If an email id is valid and password is invalid then action is failed.<br><br><strong>State Transition:</strong></p><p><strong>What is this all about?<br></strong>Every time we do a action the state will be changed.</p><p>Testing an ATM machine this has 4 steps:<br>The procedure <strong>starts </strong>now</p><ol><li>User will insert the card first. Later the system will <strong>wait </strong>for pin and user will enter the pin (state is changed from start to wait for pin)</li><li>In the 1st attempt to enter the pin, if pin is valid user will get access to account and if invalid, 2nd attempt and 3rd attempt to enter the valid pin will be provided by the system.</li><li>In the 2nd attempt if pin is valid then the user will get access to account if invalid 3rd attempt will be provided by the system.</li><li>In the 3rd attempt if the pin is valid user will get access to account, if invalid card will blocked.<br> *Hence all the actions done by the system are called as states.<br> *Based on actions states can be changed.</li></ol><p><strong>Use Case Testing</strong>: This is a part of requirement document it contains actor action and outcome.This can be used to write a test case.<br><strong>Example</strong>:</p><p>Consider an ATM machine<br>Actor and system are interacting and performing actions.<br>A:Insert card<br>S: Validates card and ask for pin and validates the pin and allow access to account.<br><strong>Extensions </strong>is the 3rd part of use case after <strong>actor </strong>and <strong>system</strong>.<br><strong>Extension</strong>:<br>If the pin is not valid then?<br>S: Displays message and rejects the transaction.<br>If card is not valid then?<br>S: Displays message and rejects the card.<br>Pin invalid for 3 times then?<br>S: Cancels the transaction and exit.<br>So based on use case we can write the test cases.</p><p><strong>Test Suite</strong>: This is a group of test cases which belong to the same category.<br> *We have a test plan document with which we create more number of test cases.<br> *We can divide <strong>Sanity test cases</strong> as one category and <strong>Regression</strong> as one and <strong>Functional </strong>as other.<br>Every same category of test cases comes under one test suite like:<br>1)Regression test suite<br>2)Sanity test suite<br>3)Functional test suite.<br>When we get a new built after fixing the issues what test suite we need to execute?<br><strong>Regression</strong>.<br>When we get a new built what test suite we need to execute?<br><strong>Sanity test suite<br></strong>What next after sanity and regression test suits’s?<br><strong>Functional test suite.<br></strong> *We need to choose test suite based on test criteria.</p><p><strong>Test Case Contents:<br></strong>To prepare a test case we need the following details:<br><strong>Test case ID</strong>:Every test case has a unique id called test case ID.<br><strong>Test case title</strong>: Every test case has a title which explains/defines or gives an idea of the test case in single term.<br><strong>Description</strong>:This is in detail explanation of the test case.<br><strong>Pre condition</strong>: This specify the setup needed for a test case to be executed successfully.<br><strong>Priority</strong>(p0,p1,p2,p3):Every test case has a priority and based on priority we will decide when to execute the test case.<br> *All sanity test cases comes under p0 that is high priority test cases<br> *p1 is regression test cases<br> *p2and p3 are the functional test cases.<br><strong>Expected Result:</strong> The expected result of the test before executing the test.<br><strong>Actual Result</strong>: The actual result of the test to be filled after executing the test. *The Actual and Expected results should be the same.<br><strong>Test Data</strong>: Use of test data as an input for this test case. We can provide different data sets with exact values to be used as an input.<br>Status:Pass or Fail. Other statuses can be ‘Not Executed’ if testing is not performed and ‘Blocked’ if testing is blocked.<br><strong>Remarks </strong>: Any comments on the test case or test execution.<br><strong>Test Procedure</strong>:Step-by-step procedure to execute the test.</p><p><strong>Characteristics of good test case<br></strong>A good test case has certain Characteristics that are listed below:<br>1)Features of test cases must have a Unique.<br>2)Should be accurate and tests what it is intended to test.<br>3)It should be reusable.<br>4)It should be traceable to requirements and should be compliant to regulations.<br>5)It should be independent,clear,simple and understandable</p><p><strong>Test Execution:<br></strong>During this phase test team will carry out the testing based on the test plans and the test cases prepared.<br> *Also, bugs will be reported back to the development team for correction and retesting to be performed.</p><p><strong>Defect Reporting:<br></strong>Any mismatch in the functionality found in application is called Defect/bug/issue.<br><strong>Defect reporting tools:<br></strong>jira<br>bug jilla etc.,</p><p><strong>Defect/Bug Report Contents:<br></strong>While reporting the bug to developer, the Bug Report should contain the following information</p><ol><li><strong>Defect_ID</strong> : This is a Unique identification number for the defect.</li><li><strong>Defect Description</strong> : This has the detailed description of the Defect including information about the module in which Defect was found.</li><li><strong>Version</strong>: This will have the Version of the application in which defect was found.</li><li><strong>Steps : </strong>A detailed steps along with screenshots with which the developer can reproduce the defects.</li><li><strong>Date Raised</strong> :Date when the defect is raised</li><li><strong>Reference</strong>:This is where in you provide the reference to the documents like : requirements, design, architecture or maybe even screenshots of the error to help understand the defect</li><li><strong>Detected </strong>By :Name/ID of the tester who raised the defect</li><li><strong>Status </strong>:Status of the defect , more on this later</li><li><strong>Fixed by :</strong>Name/ID of the developer who fixed it</li><li><strong>Date Closed</strong>:Date when the defect is closed</li><li><strong>Severity</strong>: Which describes the impact of the defect on the application</li><li><strong>Priority </strong>:Which is related to defect fixing urgency.</li></ol><p>*<strong>Severity Priority</strong> could be <strong>High/Medium/Low </strong>based on the impact urgency at which the defect should be fixed respectively</p><h4>Defect Management Process in Software Testing (Bug Report Template)</h4><p>Defect management can be defined as a process of detecting bugs and fixing them. It is necessary to say that bugs occur constantly in the process of software development.</p><p>*Hence, every software development project requires a process that helps detect defects and fix them.</p><p>Defect management process is a step by step process as show below:</p><p>DISCOVER….&gt;CATEGORIZATION…..&gt;RESOLUTION….&gt;VERIFICATION…….&gt;CLOSURE……&gt;REPORTING</p><p><strong>1)Discovering </strong>:A defect is said to be discovered when it is brought to the attention of the developers and acknowledged (i.e., “Accepted”) to be valid one. <br>2)<strong>Categorization</strong>: Defect categorization help the software developers to prioritize their tasks.</p><p>*That means that this kind of priority helps the developers in fixing those defects first that are highly crucial.<br> *The defects are Categorization as Severity &amp; Priority.<br><strong>Severity</strong>: This described the seriousness of the defect.<br> *In software testing defect severity can be defined as the degree of impact a defect has on the development or operation of component application being testes.<br><strong>Defect Severity can be categorized into 4 classes:<br>Critical</strong>: This defect indicated complete shit down of the process.<br><strong>High</strong>: It is highly severe defect and collapse the system,however certain parts of the system remain functional.<br><strong>Medium</strong>: It causes some undesirable behavior but the system functioning remains constant.<br><strong>Low</strong>: It will not cause any major break down of the system.<br><strong>Priority </strong>: This describes the importance of defect and the order in which the defect should be fixed.<br><strong>Defect Priority can be categorized into 3 classes:<br>P1 High</strong>: The defect must be resolved as soon as possible as it effects the system severely and cannot be used until it is fixed.<br><strong>P2 Medium</strong>: During the normal course of the development activitied defect should be resolved. It can wait until a new version is created.<br><strong>P3 Low</strong>: The defect is an irritant but repair can be done once the more serious defect have been fixed.<br>Also, we have 4 types of classifications on <strong>Priority and Severity</strong> as explained below:<br><strong>Low Priority and Low Severity</strong> : A spelling mistake in a page which is not frequently navigated by user.<br><strong>Low Priority and High Severity</strong>: Application crashing.<br><strong>High Priority and Low Severity</strong>:Slight change in logo color or spelling mistake in company name.<br><strong>High Priority and High Severity</strong>:Issue with login functionality.</p><p><strong>3)Resolution</strong>:Once the defects are accepted and categorized, we can follow the following steps to fix the defect.<br>1)Assignment<br>2)Schedule fixing<br>3)Fix the defect<br>4)Report the resolution<br>4)<strong>Verification</strong>:After the development team fix and report the defect, the testing team verifies the defects if they are actually resolved.<br>5)<strong>Closure</strong>: Once a defect has been resolved and verified, the defect status will be changed as closed. If not, a notification has to be sent to the development team to recheck the defect.<br><br><strong>What is Defect Life Cycle?<br></strong>Defect Life Cycle or Bug Life Cycle is the specific set of states that a Bug goes through from discovery to defect fixation.</p><p><strong>Bug Life Cycle Status:<br></strong>The number of states that a defect goes through varies from project to project. Below life cycle structure which covers all possible states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*4NslvrGIpJ5KCkN3bpzTkg.png" /></figure><p>0)<strong>New</strong>: When a new defect is logged and posted for the first time. It is assigned a status as NEW.<br>Also, the bug is reported however it not yet assigned to the developer.<br>1)<strong>Assigned</strong>: In this step the tester would post the bug and once the approval is given by the lead the bug is assigned to the developing team.The bud is in process to be fixed.<br>2)<strong>Open</strong>: The developer starts analyzing and works on the defect to be fixed and the bug status will be open.<br>3)<strong>Fixed</strong>: The bug status is changed to fixed once it is resolved and will be waiting for validation.<br>4)<strong>Pending testing:</strong> Once the defect is fixed the developer gives a particular code for retesting the code to the tester. Since the software testing remains pending from the testers end, the status assigned is “pending retest.”<br>5)<strong>Retest</strong>: Tester does the retesting of the code at this stage to check whether the defect is fixed by the developer or not and changes the status to “Re-test.”<br>6)<strong>Verified</strong>: The tester re-tests the bug after it get fixed by the developer. If there is no bug detected in the software, then the bug is fixed and the status assigned is “verified.”<br>7)<strong>Closed</strong>: If the bug is no longer exists then tester assigns the bug status as “Closed.” <br>8)<strong>Reopen</strong>: If the bug persists even after the developer has fixed the bug, the tester changes the status to “reopened”. Once again the bug goes through the life cycle.<br>9a)<strong>Duplicate</strong>: If the defect is repeated twice or the defect corresponds to the same concept of the bug, the status is changed to “duplicate.”<br>9b)<strong>Rejected</strong>: If the developer feels the defect is not a genuine defect then it changes the defect to “rejected.”<br>9c)<strong>Deferred</strong>: If the present bug is not of a prime priority and if it is expected to get fixed in the next release, then status “Deferred” is assigned to such bugs<br>9d)<strong>Not a bug</strong>:If it does not affect the functionality of the application then the status assigned to a bug is “Not a bug”.</p><p>That is all about Testing types in software testing and STLC phases and details on Bug life cycle.</p><p>This is end of Software Testing(Manual).</p><p>Thank you for referring the entire article series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9de72b96ced" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/software-testing-part-5-types-of-software-testing-b9de72b96ced">Software Testing Part-5-Types of software testing.</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing Part-4- System Testing.]]></title>
            <link>https://medium.com/mindorks/software-testing-part-4-system-testing-137820878b21?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/137820878b21</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Tue, 03 Dec 2019 21:11:15 GMT</pubDate>
            <atom:updated>2019-12-03T21:11:15.786Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPkOz7lAWivt6cSyZ30t3Q.jpeg" /></figure><p>We have discussed in the previous <a href="https://medium.com/p/d6c7969e4b30/edit">article </a>that <em>System Testing focuses on</em> <em>4 main aspects.</em></p><p>Let’s understand more about these aspects.</p><p><strong>1)GUI </strong>: Graphical User Interface</p><p><strong>What is GUI?<br></strong>There are 2 types of interfaces in a computer application.<br><strong>CLI</strong>: Command Line Interface.<br>This is where we type text and computer responds to the commands, we have seen this in the DBMS <a href="https://medium.com/@gvnswetha1995/dbms-part-2-6926b0ef128a">article</a> <br><strong>GUI</strong>: Graphical user Interface.<br>This is where we interact with the computer using images rather than text.<br> *GUI involves checking the screens with the controls like Menus,Buttons,Icons and Tool bar,Menu bar,Dialog boxes and Windows etc.,</p><p>*During GUI testing, test engineers validates user interface of the application in following aspects<br>1)Look &amp; Feel.<br>2)Easy to use.<br>3)Navigation &amp; Shortcut Keys.</p><p><strong>GUI Objects :<br></strong>This includes Windows,Dialogue box, Push button,Radio button,Radio group,Tool bar,Edit box,Text box,Check box, Drop down box,Combo box,Tab,Tree view,Progress bar,Table,Scroll bar etc.,</p><p><strong>GUI Check List:<br> *</strong>This checks if all the basic elements are available in the page along with spelling and alignment of the objects.<br> *It also checks content display and mandatory fields along with background color and color font type.</p><p><strong>2)Usability Testing<br></strong>This checks how easily the end user is able to understand and operate the application.</p><p><strong>3)Functional Testing:</strong></p><p>This includes:</p><p>1)Unit Testing<br>2)Integration Testing<br>3)System Testing<br>4)Sanity Testing<br>5)Smoke Testing<br>6)Graphical User Interface<br>7)Regression Testing<br>8)Beta/Acceptance Testing</p><p>Lets check on the above listed <strong>Functions testings:</strong></p><p>We have seen about Unit,Integration,System,User Acceptance testing,Graphical User Interface test techniques in the previous <a href="https://medium.com/p/d6c7969e4b30/edit">article</a>.</p><p><strong>4)Sanity testing:</strong>This is a type of software testing which is conducted after receiving a software build, with minor changes in the code, or functionality. The aim is to make sure that the bugs have been fixed and to confirm that there are no further issues introduced due to the new changes.</p><p><strong>5)Smoke testing:</strong>This is a type of software testing which is usually performed on initial software builds to make sure that the critical functionalities of the program are working absolutely fine.</p><p><strong><em>Note</em></strong>:<br>A software build is a process by which source code is converted to a stand-alone form that can be run on any system. It is often referred to as a code build.</p><p><strong>7)Regression Testing </strong>: More specifically, the purpose of regression testing is to verify that modifications in the software or the environment have not caused unintended adverse side effects and that the system still meets it requirements.<br> *Regression tests are executed whenever the software changes, either as a result of fault fixes or new or changed functionality.It is also a good idea to execute them when some aspect of the environment changes, for example when a new version of a database management system is introduced or a new version of a source code compiler is used.</p><p>8)<strong>Beta Testing: </strong>Beta Testing is a formal type of Software Testing which is carried out by the customer. It is performed in the Real Environment<strong> </strong>before releasing the product to the market for the actual end-users.</p><p>This Testing is carried out to ensure that there are no major failures in the software or product and it satisfies the business requirements from an end-user perspective. Beta Testing is successful when the customer accepts the software.</p><p>4)<strong>Non functional Software Testing</strong>:</p><p>This includes:<br>1.Performance Testing<br>a)Load Testing<br>b)Stress Testing<br>c)Volume Testing<br>2.Security Testing<br>3.Recovery Testing<br>4.Compatibility Testing<br>5.Configuration Testing<br>6.Installation Testing<br>7.Sanitation Testing</p><p>Lets check on the above listed <strong>Non Functions testings:</strong><br>1)<strong>Performance Testing</strong>: This includes load,stress and volume testing’s.<br>We access an application and test at what speed the application is working and with how much stress and volume we are able to access an application. <br>a)<strong>Load Testing</strong> : Testing speed of the system while increasing the load gradually till it meets the customer expectation.<br>b)<strong>Stress Testing:</strong> Testing speed of the system while increasing/reducing the load on the system to check if it is able to handle and proceed or if it is causing any breaking issue.<br>c)<strong>Volume Testing</strong>: To check with how much volume of data is able to handle by the system.</p><p><strong>Why should we do the Performance testing?</strong><br>Consider a web application or an internet applications on which multiple user’s work and for multiple reasons like network speed etc., the application performance will get reduced, to meet the customer requirements and to avoid these issues we need to do the performance testing.</p><p><strong>2) Security Testing: </strong>Testing security provided by the system like:<br>a)Authentication<br>b)Access control.Authorization.<br>c)Encrypt/Decrypt</p><p><strong>Example</strong>:</p><p>Every application has its own security system.<br>In a banking application we have admin department,customer department,accounts etc.,when we develop an application we will have different modules in this application.</p><p><strong>Authentication </strong>:In this a valid user should be able to login and invalid user should be restricted.<br><strong>Access Control:</strong> can be tested for valid user.<br>The accounts department person should not be able to access the information of other departments. Similarly a customer should be able to access his own details not other customer or department details. Admin should be able to access all dept details.<br> *We need to test the above cases while using access control or authorization.<br><strong>Encryption/Decryption</strong>: We have a server and client machine.<br>1)Users interact from client end like sending and receiving the data which is done through network, there are chances to hack the data by 3rd party networks to avoid these 2 algorithms are maintained those are encryption and decryption.<br>2)Data is converted to some binary or non understandable language for security reasons this conversion is called E<strong>ncryption</strong>.<br>This conversion is done while the data is sent from source to destination.<br>Once this data reaches the destination the data will be <strong>Decrypted </strong>for further processing.</p><p><strong>3)Recovery Testing: </strong>Testing recovery provided by the system.<br>This is not supported by all the applications.</p><p><strong>Example</strong>:</p><p>While writing an email if the browser is closed due to some reason and when we re open the browser the email will be saved in drafts that is called as the recovery mechanism.</p><p><strong>4)Compatibility Testing &amp; Configuration Testing:</strong>This is done on :<br>a) Operating systems.<br>b)Hardware(configuration)<br>c)Browser<br>d)Forward and Backward compatibility.</p><p><strong>6)Installation Testing: </strong>In this type of testing we test on the following aspects:<br>1) Installation steps,<br>2)Navigation.<br>3)Memory Allocation <br>4)Uninstall.</p><p><strong>7)Sanitation Testing/Garbage Testing: </strong>In this type of testing we test the application if it is providing any extra/additional features beyond the customer requirements or expectation.</p><p>Apart from these software testing techniques we have few more software testing techniques in the next <a href="https://medium.com/p/b9de72b96ced/edit">article</a>.</p><p><strong>Example</strong>:</p><p>If a customer is having an application with 5 requirements and if we are providing 6 features then it is a defect to avoid these things, sanitation or garbage testing is done.</p><p>That is all about Different Types of System Testing.In the next <a href="https://medium.com/p/b9de72b96ced/edit">article </a>we will see different types of software testing, Test Case Design Techniques,Defect Management Process and Bug Life Cycle Status.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=137820878b21" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/software-testing-part-4-system-testing-137820878b21">Software Testing Part-4- System Testing.</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing Part-3-Levels of Software Testing & Testing Methodologies]]></title>
            <link>https://medium.com/mindorks/software-testing-part-3-levels-of-software-testing-testing-methodologies-d6c7969e4b30?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c7969e4b30</guid>
            <category><![CDATA[waterfall-model]]></category>
            <category><![CDATA[testing-methodologies]]></category>
            <category><![CDATA[quality-software]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 18:13:43 GMT</pubDate>
            <atom:updated>2019-12-02T18:13:43.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDBhGx2nVpLyGsooVfPxtA.jpeg" /></figure><p>In this article lets understand in details about different levels of Software testing and Testing methodologies.</p><h4>Levels of Software testing:</h4><p>In SDLC models there are characterized phases such as requirement gathering, analysis, design, coding or execution, testing, and deployment.</p><p>All these phases go through the process of software testing levels. There are mainly <em>four testing levels </em>are:</p><ol><li>Unit Testing</li><li>Integration Testing</li><li>System Testing</li><li>Acceptance Testing</li></ol><p><strong><em>1.Unit Testing</em></strong>:Unit Testing is done to check whether the individual modules of the source code are working properly. i.e. testing each and every unit of the application separately by the developer in the developer’s environment.</p><p><strong><em>2.Integration Testing</em></strong>:This is a process of testing the connectivity or data transfer between a couple of unit tested modules. <br> *In this testing individual software modules are integrated logically and tested as a group.</p><p>There are <strong><em>2 approaches</em></strong> for this model as explained below:</p><p><strong><em>2a)Top down Approach</em></strong> :The top-down way of solving a program is step-by-step process of breaking down the problem into chunks for organizing and solving the sole problem. <br>Below is the top down approach explained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlySSbGN-r2sBZ0DpJ8maw.png" /></figure><p>In this approach the top modules and the bottom modules are implemented and if the middle module that is module 2 is not ready but if we want to test all the modules, we will write a temporary program called as <strong>STUB </strong>.</p><p>*This temporary program/STUB will act as a module and help in performing integration testing.</p><p><strong><em>Stub</em></strong>: Is called by the module under test.<br>If any sub module is not yet developed, in that place we use a temporary program to assist the integration testing that is called stub.</p><p><strong><em>2b)Bottom Up Approach</em></strong>:In this strategy each module at lower levels is tested with higher modules until all modules are tested.It takes help of <strong>DRIVERS </strong>for testing.<br> *This works exactly opposite of how the top-down approach works. In this approach we start working from the most basic level of problem solving and moving up in conjugation of several parts of the solution to achieve required results.</p><p>*The most fundamental units, modules and sub-modules are designed and solved individually, these units are then integrated together.</p><p><strong><em>Driver: </em></strong>This calls the module to be tested.<br> *If any main module is not yet developed in that place we use a temporary program to assist the integration testing that is called driver.</p><p><strong><em>2c)Sandwich Approach</em></strong>: Combination of top down and bottom up approach is called sandwich approach.</p><p><strong><em>3.System Testing(End to End Testing)<br></em></strong>This is a black box testing. In this testing we test the fully integrated application and this is also called as an end to end scenario testing.</p><p>*To ensure that the software works in all intended target systems and to Verify thorough testing of every input in the application to check for desired outputs.</p><p><strong>System Testing focuses on below aspects.</strong></p><ol><li>Graphical User Interface</li><li>Functional Testing</li><li>Non Functional Testing</li><li>Usability Testing etc.,</li></ol><p>We will discuss more about these Testing’s in the next <a href="https://medium.com/p/137820878b21/edit">article</a>.</p><p><strong><em>4.User Acceptance Testing (UAT)</em></strong>:Customers perform this testing by using the software in their environment to check if that is working as per their requirement.<br> *During UAT, users test the software to make sure it can handle required tasks in real-world scenarios, according to specifications.<br> *This is one of the final and most critical software project procedures that must occur before newly developed software is rolled out to the market.<br> *This is also known as beta testing, application testing or end user testing.</p><p>This is conducted in 2 levels:</p><p><strong><em>Alpha Testing</em></strong>: The testing is done using the dummy data in the user environment.<br><strong><em>Beta Testing</em></strong>: The testing is done using the real time data in the user environment.</p><p>Apart from these software testing techniques we have few more software testing techniques in the next <a href="https://medium.com/p/b9de72b96ced/edit">article</a>.<br><br><strong>Testing Methodologies:</strong></p><p>Testing methodologies are approaches for testing.</p><p>Here are some common methodologies:</p><p><strong><em>a)White Box testing</em></strong>: Unit and integration testing comes under the white box testing techniques.</p><p>*The White box testing is a type of testing in which only internal structures or workings of an application is tested and it is usually performed by the developers.<br> *White box tests are mainly used to detect logical errors in the program code. *These tests focus on individual code units for e.g. classes. modules or subsystems.<br><strong><em>b)Black Box testing</em></strong>: System testing and UAT comes under black box testing.<br> *Black box testing is a type of testing in which the tester only focus on the inputs and the expected outputs, without knowing how the application works internally and how these inputs are processed.<br><strong><em>c)Grey Box Testing: </em></strong>This is the combination of black box and white box testing.</p><p>That is all about part 3.In the next <a href="https://medium.com/p/137820878b21/edit">article </a>we will understand more about System Testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c7969e4b30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/software-testing-part-3-levels-of-software-testing-testing-methodologies-d6c7969e4b30">Software Testing Part-3-Levels of Software Testing &amp; Testing Methodologies</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing Part-2 -Agile Methodology.]]></title>
            <link>https://medium.com/mindorks/software-testing-part-2-agile-methodology-1fa2cf57487d?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fa2cf57487d</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 18:12:14 GMT</pubDate>
            <atom:updated>2019-12-02T18:12:14.427Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOZ7JGo59sVpkj6BWRmpNg.jpeg" /></figure><p>In the previous <a href="https://medium.com/p/82e4a0d61345/edit">article </a>we have seen SDLC models and few basic concepts of Manual testing.</p><p>In this article let’s understand what changes did Agile methodology do to SDLC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*qd3L2Z2TM39RnGdpYCigFA.png" /></figure><p>*All the previous models are called the classical models.</p><p><strong>What is the reason behind introducing Agile Methodology?</strong></p><p><strong>Did Agile Methodology suffice the need?</strong></p><p>*Agile Methodology is a rapid chain of development and deployment.</p><p>In the past, software development used to happen so long that by the time projects were ready to be delivered, the business had moved ahead and the requirements had changed. Thus a project was not able to meet the business needs even if it was able to meet its defined objectives.</p><p>Hence different software engineering techniques got together and the end result was what they called the “agile manifesto’ which we will be discussing in detail in this article.</p><p>The existing waterfall techniques had no provision for feedback until the final product was ready to be delivered. This meant that there was no scope for correction and the customer had no view on the progress until the whole product was ready.</p><p>To avoid this and to make a difference in the existing SDLC models, this model is introduced.</p><p><strong>Agile methodology</strong> promotes continues iterations of development and testing throughout the SDLC. Both development and testing activities are concurrent unlike the Waterfall model.</p><p>That is why agile is also about being adaptive and continuous improvement, as much as it is about constant feedback and speed of delivery.</p><p>In this model the entire release process is divided into multiple parts.<br><strong>Example</strong>:</p><ol><li>If a customer is having 10 requirements and has given 2 months of time.</li><li>In the given time frame we will divide timelines into multiple blocks or pieces named as <strong>iterations</strong>.</li><li>Later we will pickup first few requirements and perform tasks like requirement analysis, design,development testing etc and deliver that part of the software to the customer, so that customer will start using them.</li><li>Next, we will start the <strong>2nd iteration</strong> and will pick and work on the requirements and deliver it, customer will start using those.</li><li>The same is done till the end of all the iterations.</li><li>At the last iteration all the iterations are integrated and the final software is delivered.<br><strong><em>This is at high level Agile Model.</em></strong></li><li>Even though customer changes the requirements we can accommodate them at any time.</li><li>If we are working on the 2nd iteration and customer want to add or change some requirements in the 1st iteration we can make the changes as per customer expectation in the 2nd iteration.</li><li>All the phases are included in every iteration.<br><strong>Note</strong>: Whatever part of software is completed we can deliver it to the customer and they will start using it and feedback will be shared and we can make the changes accordingly.<br><strong>Example 1</strong>:</li></ol><p>*Updates on applications in our mobiles.<br> *As per the market requirements, implementation is done and we are notified this is because of Agile Model.</p><p>This model emphasizes on four core values:</p><p>a)Individual and team interactions over processes and tools.</p><p>b)Working software over comprehensive documentation.</p><p>c)Customer collaboration over contract negotiation.</p><p>d)Responding to change over following a plan.</p><p><strong>What does this model do?</strong></p><p>Agile software development allows the team to work together more efficiently and effectively in developing complex projects. It consists of practices that exercise iterative and incremental techniques which are easily adopted and display great results.</p><p>Agile methods or Agile processes generally promote a disciplined project management process that encourages:</p><p>1)Frequent inspection and adaptation.</p><p>2)A leadership philosophy that encourages teamwork, self-organization and accountability, a set of engineering best practices intended to allow for rapid delivery of high-quality software, and a business approach that aligns development with customer needs and company goals.</p><p><strong>Terms used in Agile Methodology:</strong></p><p><strong>EPIC</strong>: This is a larger requirement.</p><p><strong>STORY:This </strong>is the smaller requirement.</p><p>*Requirement is the functionality of the application.</p><p><strong>Advantages of Agile:<br></strong>1)Persistent software delivery<br>2)Inspect and adapt<br>3)Design is important<br>4)Increased stakeholder satisfaction<br>5)Welcome to change at any stage<br>6)Daily interaction</p><p><strong>How to implement agile?<br></strong><em>List of few frameworks or philosophies:<br></em>SCRUM<br>KANBAN<br>CRYSTAL<br>LEAN<br>etc.,<br>The most popular one used by people is <strong>Scrum</strong>.</p><p><strong>1)Scrum</strong>:</p><p>*This is an iterative philosophy meaning, we iterate over changes and over the deployment in software development one at a time.</p><p>*Scrum is iteration of plan then build then test and then review.We will constantly be iterating over these aspects.</p><p>*Also, scrum is a software product development strategy that organizes software developers as a team to reach a common goal like creating a ready for market product. It is a widely used subset of Agile software development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLyZydmcJDfbPtQUsKQy0g.png" /></figure><p><strong>How Scrum Works?</strong></p><p>As a user we need to login and add a product to the cart and place the order.- This is an <strong>EPIC</strong>.</p><p>In this we have 3 <strong>STORIES </strong>login,add product to cart,purchase.</p><p>We do not have huge documentation like previous models.</p><p><em>Scrum implementation team has:</em></p><ol><li><strong>Product manager/owner</strong> :He/she will receive the requirements(epics/stories)from the customer/stakeholders and prepares the P<strong>roduct Backlog (</strong>which has the epics and stories captured from customers).He/She holds the responsibility to make sure that the application is deployed when committed at the same time the application is built exactly as the way it has to be build.<br> *He/she need not be a technical person or know development or the technicalities in details and can be from management team.<br> *All the accountability lies in him.</li></ol><p><strong>Note</strong>: The team with 5–10 people(Product owner/product manager/business analyst,developer,tester,scrum master)are assigned to work on a project.</p><p><strong>2.Scrum master</strong> manages the entire process, that is she/he is responsible for checking the status of the process and conduction meetings and addressing the challenges that are faced by the team.</p><ul><li>Also, updated the: Progress of the development,time management,communication with the management.He/she conducts the meeting on daily basis for 15 minutes called as <strong>Stand up Meeting/Scrum Meeting.</strong></li><li>In this meeting every team member should update the following details:</li></ul><p>a)What is achieved the previous day?(If not achieved anything then reasons and causes or challenges)</p><p>b)What is the plan for the Present day?</p><p>c)What is the plan for the Next day?</p><p><strong><em>Scrum master drives the process.</em></strong></p><p>3. Once the team is formed planning is done on:</p><p>a)Release planning.</p><p>b)Sprint plan/Iteration plan</p><p><strong>Example 2:</strong></p><p>a) Consider a project with time duration of 6 months and in project backlog we have 30 stories and there are 10 people(team).<br>b)Also, start date and end date of project are mentioned.<br>c)Entire release is divided into small parts each part is called <strong>sprint </strong>or <strong>iteration</strong>(a specific set of tasks that has to be completed in specific priority)<br>d)Each sprint will have a duration of 2 to 3 weeks.<br>e)For the 1st sprint we will take few or (5)stories based on customer priority,time,complexity,size of story and size of team.<br>f)Committed stories are called <strong>sprint backlog</strong>(stories committed by testers and developer to complete within the sprint)<br>g)The stories committed are implemented,tested and the product is given to the customer, based on customer feedback the changes are done or the next stories are processed.<br>h)Customer changes and bugs not fixed in 1 st iteration can be fixed in 2nd iteration and the process continues.<br>i)<strong>Intraspective Analysis</strong>: After completion of a sprint the discussion is made on challenges faced in that sprint that is called intraspective analysis.<br>j)The same is done till the end of the iterations.<br><strong>Sprint Backlog</strong>: In a sprint if there are 3 stories and if 2 stories are implemented the rest are listed for future iterations that is <strong>sprint backlog.</strong></p><p><strong>Sprint Review:</strong> At the end of the sprint backlog that we are working on,(2 weeks or so as per the company)there will have a sprint review in which a demo is given to the customer or some kind of verification is done to make sure that the sprint is completed and we can move to the next sprint or new user story to work on.</p><p><strong>2)Kanban:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*MrwP5K4Phf7auTLPPAcVCA.png" /></figure><p>*Unlike Scrum, Kanban is not time-based. Rather, it is based solely on priority.</p><ul><li>Kanban is a continues process in which we have list of tasks to be done.</li><li>This process is nothing but a Board, which is called “Kanban Board”,which plays a vital role in displaying the task workflow.</li><li>On this board we have Build(TO DO), Test(DOING) and ship(DONE)queues.</li><li>Under build we have 2 services(green and red)to be built once the 1st service(green) is build it will move to the test queue and the service 1 will be occupied by service 2(gray).</li><li>Meanwhile if the service 1 in the test queue is built it will move to the ship queue.</li><li>And the same continues till all the services are processed.</li><li>The idea is,what ever tasks are achieved it will move to the next queue and place which is empty will be replaced by the other service.</li></ul><p>*When a developer is ready for the next task, he/she pulls it from the to-do list. Since there are fewer planning meetings, this approach means the team needs to be extremely close.</p><p>*It helps to optimize the flow of task between different teams. It is a method for defining, managing and improving services for delivering knowledge work.</p><p>*In this method, work items are printed visually. It allows team members to see the state of every piece of work at every development stage. Moreover, a team member gets overview who’s doing what and can identify and eliminate problem areas in the process.</p><p>*This methodology allows re prioritizing work as per the need of stakeholders. As work moves from one state to another, some extra work also added until the flow is steady. The team collaborates with each other to improve the flow of work throughout the project.</p><p>*Kanban process is never restricted to set process and defined sprint backlog. So, it offers flexibility for developers.</p><ul><li>Kanban process visualizes the workflow which is easy to understand.</li><li>Encourage acts of leadership at all levels</li><li>It helps to measure and improve Collaboration</li><li>Respect the current process, roles &amp; responsibilities</li><li>Helps team to make process easy and explicit</li></ul><p>That is all about Agile Methodology. In the next <a href="https://medium.com/p/d6c7969e4b30/edit">article </a>we will see different levels of software testing &amp; Testing methodologies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fa2cf57487d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/software-testing-part-2-agile-methodology-1fa2cf57487d">Software Testing Part-2 -Agile Methodology.</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing Part-1 -Introduction to Manual Testing.]]></title>
            <link>https://medium.com/mindorks/software-testing-part-1-introduction-to-manual-testing-82e4a0d61345?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/82e4a0d61345</guid>
            <category><![CDATA[manual-testing]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 18:11:24 GMT</pubDate>
            <atom:updated>2019-12-02T18:11:24.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBlspELFPHcVwzrLphktzA.jpeg" /></figure><p>In this article series we will understand basics of manual testing and SDLC models.</p><h4>What is software?</h4><p>A software is a collection of computer programs that help us to perform a task.<br><strong><em>Types of software:</em></strong></p><p><strong>System Software</strong> : This include Device drivers,OS,servers,utilities etc.,<br><strong>Programming Software</strong>: This includes Compiler.debugging,interpreters etc.,<br><strong>Application Software</strong>:This includes Industrial automation, business software,games,telecoms etc.,</p><p><strong>What is software testing?<br></strong>Software testing is a part of software development process, this is an activity to detect and identify defects in the software.<br> *The main objective is to release a quality product to the client.</p><p><strong>What is the need for testing?<br></strong>This ensures that a software is bug free.<br> *Also, to make sure that system meets customer requirements and software specifications and meets end user expectations.<br> *Fixing the bugs identified after release is expensive.</p><p><strong>What is software quality?<br></strong>This is defined as justification of all the requirements in a product.<br><strong>Quality software includes:<br>1)</strong>Bug Free<br>2)Delivered on time<br>3)Within budget and meeting requirements and/or expectations.<br>4)Maintainable</p><p><strong><em>How do we differentiate product and project:<br></em></strong>If software application is developed for specific customer requirement then it is called <strong>project</strong>.<br>If software application is developed for multiple customer requirements then it is called <strong>product</strong>.</p><p><strong>How we do differentiate between an Error,Bug and the Failure?<br><em>Error</em></strong>: Ant incorrect human action that produces a problem in the system is called an error.<br><strong><em>Defect/Bug</em></strong>: Deviation from the expected behavior to the actual behavior of the system is called defect.<br><strong><em>Failure</em></strong>: The deviation identified by end user while using the system is called a failure.</p><p>In short a mistake in coding is called <strong>Error</strong>, an error found by tester is called <strong>Defect</strong>, a defect accepted by development team then it is called <strong>Bug</strong>, build does not meet the requirements then it Is <strong>Failure</strong>.</p><p>The bugs in the software may arise due to may reasons few of them are:<br>1)Miscommunication or no communication<br>2)Software complexity<br>3)Programming errors<br>4)Changing requirements<br>5)Lack of skilled testers etc.,</p><h4>Software Development Life Cycle:</h4><p>SDLC, is a process used by software industry to design, develop and test high quality software’s.<br> *The life cycle defines a methodology for improving the quality of software and the overall development process.</p><p>The following figure is a various stages of SDLC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQqPIL3fz3lf8k_Ps4O2yw.png" /></figure><p>Lets understand the importance of each phase.</p><p><strong>Stage 1: Requirement Analysis</strong></p><p>This phase involves collection of inputs from the customer.This information is then used to plan the basic project approach and to conduct product feasibility study in the economical, operational and technical areas.</p><p><strong>Stage 2: Defining Requirements</strong></p><p>Once the requirement analysis is done the next step is to clearly define and document the product requirements and get them approved from the customer or the market analysts. This is done through an SRS (Software Requirement Specification) document which consists of all the product requirements to be designed and developed during the project life cycle.</p><p><strong>Stage 3: Designing the Product Architecture</strong></p><p>Based on the requirements specified in SRS, usually more than one design approach for the product architecture is proposed and documented in a DDS — Design Document Specification.</p><p>This DDS is reviewed by all the important stakeholders and based on various parameters as risk assessment, product robustness, design modularity, budget and time constraints, the best design approach is selected for the product.</p><p><strong>Stage 4: Building or Developing the Product/Coding</strong></p><p>In this stage of SDLC the actual development starts and the product is built. The programming code is generated as per DDS during this stage. If the design is performed in a detailed and organized manner, code generation can be accomplished without much hassle.</p><p>Developers must follow the coding guidelines defined by their organization and programming tools like compilers, interpreters, debuggers, etc. are used to generate the code. Different high level programming languages such as C, are used for coding. The programming language is chosen with respect to the type of software being developed.</p><p><strong>Stage 5: Testing the Product</strong></p><p>After the code is generated, it is tested against the requirements to make sure that the products are solving the needs addressed and gathered during the requirements stage.</p><p><strong>Stage 6: Deployment in the Market</strong></p><p>Once the software is certified, and no bugs or errors are stated, then it is deployed. Sometimes product deployment happens in stages as per the business strategy of that organization. The product may first be released in a limited segment and tested in the real business environment (UAT- User acceptance testing).</p><p><strong>Stage 7: Maintenance</strong></p><p>Once when the client starts using the developed systems, then the real issues come up and requirements to be solved from time to time.This procedure where the care is taken for the developed product is known as maintenance.</p><p>We have few <strong>SDLC models</strong> like<br>1)Waterfall Mode<br>2)Incremental Model<br>3)Spiral Model<br>4)V-Model<br>5)Agile Model //this is the latest model</p><p><strong>Waterfall model:</strong><br>This model is a popular version of the systems development life cycle model for software engineering which describes a development method that is linear and sequential.<br> *In this model each activity takes place one after the other and the output of every phase becomes input of next phase.<br> *This has <strong>multiple phases </strong>as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LoT9HDjSWRtqhyecyqS-cw.png" /></figure><p><strong><em>We will use this model when:</em><br></strong>*Requirements are very well known, clear and fixed and product definition is stable.<br> *Technology is understood and no ambiguous requirements.<br> *Ample resources with required expertise are available freely<br> *The project is short.</p><p>Lets see that <strong><em>advantages </em></strong>of this model:<br> *For each phase a clear documentation is maintained.<br> *This is suitable for long term projects.<br> *This is simple and easy to understand and use.<br> *Phases are processed and completed one at a time.<br><strong><em>Disadvantages:<br> *</em></strong>This model doesn&#39;t allow for much reflection or revision.<br> *High amounts of risk and uncertainty.<br> *It is very difficult to go back and change something and this is a dependency model that is each phase is dependent on other phase.</p><p><strong><em>Example</em></strong>:</p><p>As there are 6 phases and if 5 people are allocated for every phase.Until the first phase is complete the people allocated in the next phase will be idle and are paid by the company which is a drawback.</p><p><strong>Incremental/Iterative Model</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-BwgKnH9NMxe1-X3nZ1Sw.png" /></figure><p>This somehow overcomes the problems in the waterfall model.<br> *Iterative process starts with a simple implementation of a subset of the software requirements and enhances the evolving versions until the full system is implemented. <br> *At each iteration, design modifications are made and new functional capabilities are added. <br> *The basic idea behind this method is to develop a system through repeated cycles (iterative) and in smaller portions at a time (incremental).</p><p><strong><em>Example</em></strong>:</p><p>If a customer is having 10 requirements but he gave only 3 requirements. For those requirements we have started the process. Later if he gave few more requirements and we can start the process which goes in parallel with the past cycle. Same is implemented till all the requirements are processes hence every one is engaged in every phase.</p><p>In waterfall model until we get all the requirements we need to wait.<br>but in this model as soon as we get few requirements we can start the process and we do not have to wait to get all the requirements.</p><p><strong><em>Advantages of this model are listed below:</em></strong></p><p>*Some working functionality can be developed quickly and early in the life cycle.<br> *Results are obtained early and periodically.<br> *Parallel development can be planned.<br> *Progress can be measured.<br> *Less costly to change the scope/requirements.<br> *Testing and debugging during smaller iteration is easy.</p><p><strong><em>Disadvantages</em></strong></p><p>*More resources may be required.<br> *Although cost of change is lesser, but it is not very suitable for changing requirements.<br> *More management attention is required.<br> *System architecture or design issues may arise because not all requirements are gathered in the beginning of the entire life cycle.<br> *Not suitable for smaller projects.</p><h4>Spiral Model</h4><p>The spiral model has four phases as shown below.</p><p>A software project repeatedly passes through these phases in iterations (called Spirals in this model).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_DqpQGDGBVATf2YI1RPUA.png" /></figure><p>Let’s see how each phase works:</p><p><strong>Planning Phase: </strong>Requirements are gathered during the planning phase. Requirements like Business Requirement Specifications’ and System Requirement specifications.</p><p><strong>Risk Analysis:</strong> In this phase, a process is undertaken to identify risk and alternate solutions. If any risk is found during the risk analysis then alternate solutions are suggested and implemented.</p><p><strong>Engineering Phase:</strong> In this phase software is developed, along with testing at the end of the phase. Hence in this phase the development and testing is done.</p><p><strong>Evaluation phase: </strong>This phase allows the customer to evaluate the output of the project a day before the project continues to the next spiral.</p><p><strong>Advantages:</strong></p><p>*High amount of risk analysis hence, avoidance of Risk is enhanced.<br> *Strong approval and documentation control.<br> *Additional Functionality can be added at a later date.</p><p><strong>Disadvantages :</strong></p><p>*Can be a costly model to use.<br> *Risk analysis requires highly specific expertise.<br> *Project’s success is highly dependent on the risk analysis phase.<br> *Doesn’t work well for smaller projects.</p><h4>V model:</h4><p>This model is introduced to overcome all the problems in the previous models.<br> *In the previous models there is only one testing phase so if we find any issues in the later phases we need to go back and change or check all the previous phases, in order to avoid all these V model came into picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*18fS60Asv28djlyzP9fxsw.png" /></figure><p>*In this model the the left side is the verification part and the right is called validation part.<br> *All the development activities are taken care on the verification side and the testing activities are taken care on the validation side.<br> *Hence development and testing are done in parallel.<br> *In each and every step there is a testing phase which is the main advantage.</p><h4>How this works?</h4><p>If the testing is done in the requirement phase then there are less changes of issues/errors/defects to occur in the design phase and the same is followed till the end of the process.<br> *Avoiding or clearing the issues in the earlier stages is also an advantage in this V model.<br> *In the requirement and design phases we have only the documentation hence testing is done on the same.</p><h4>How is the testing done on requirement and design phase?</h4><p>Through walk through,reviews etc.,<br> *Documents are tested to ensure correctness and completeness of the documents.<br> *Also, as there are multiple test phases at multiple levels testing is done by different teams.</p><p>Let’s see how different stages of <strong><em>Verification </em></strong>works:<br> *BRS/CRS/URS/SRS : This comes under the requirement phase.<br> *BRS: Business requirement specification.<br> *CRS: Customer requirement specification.<br> *URS: User requirement specification.<br> *SRS: System requirement specification.<br> *BRS,CRS,URS are given by the customer which is not in a technical way.<br> *In SRS all the requirements are converted to technical terms which is understandable by the project team.</p><p>Let’s see how different stages of <strong><em>Validation </em></strong>works:<br> *Integration testing is done on HLD AND LLD (High level and low level document).<br> *HLD and LLD comes under the design phase.<br> *Coding is done by developers and unit testing is also done by the developers on programs or the code.</p><p>*<strong><em>Unit testing </em></strong>is testing the individual programs or parts of code divided as units.<br> *<strong><em>Integration testing</em></strong> is combining all the unit test cases and testing.<br> *<strong><em>System testing</em></strong> is testing the end to end application based on customer requirements.<br> *<strong><em>User acceptance testing </em></strong>and system testing comes under <strong><em>black box </em></strong>testing.Testing is done on the application to check if that has met customer requirements,where code is not involved.<br>Unit testing and integration testing comes under <strong><em>white box testing</em></strong> where internally create programs are tested.</p><p>We will discuss more about these testing in coming <a href="https://medium.com/p/d6c7969e4b30/edit">article</a>.</p><h4>What is Verification and Validation?</h4><p><strong><em>*Verification </em></strong>involves static analysis technique done without executing code this is a process of evaluation of the product development phase to find whether specified requirements meet.Verification checks whether we are building the right system.<br> *<strong><em>Validation </em></strong>involves dynamic analysis technique(functional and non functional)testing done by executing code.this is a process to evaluate the software after the completion of development phase to determine whether software meets customer expectations and requirements.Validation checks whether we are building the system right.This takes place after verification.</p><p><strong><em>Static testing </em></strong>is an approach to test project documents in the form of reviews,walk through and inspection.<br><strong><em>Dynamic testing</em></strong> is an approach to test the actual software by giving inputs and observing the results.</p><p><strong><em>Reviews</em></strong>:<br>This is conducted on documents to ensure correctness and completeness.<br><strong><em>Examples</em></strong>:<br>Requirement Review<br>Design Review<br>Code Review<br>Test Plan Review<br>Test case Reviews etc.,</p><p><strong>Walk through</strong>:<br>This is a formal review and we can raise/discuss the issues at peer level.</p><p><strong><em>Inspection:</em></strong><br>It is a formal approach to the requirements schedule.</p><p><strong><em>Advantages of V-Model are:</em></strong></p><p>*Easy to use.<br> *Testing activities like planning, test designing happens well before coding.<br> *Time saving and quick.<br> *Defects are found at early stage.<br> *Works well for small projects where requirements are easily understood.</p><p><strong><em>Disadvantages of V-Model are:</em></strong></p><p>*Very rigid.<br> *Least flexible.<br> *If any changes happen in midway, then the test documents along with requirement documents has to be updated.</p><p>Note:</p><ol><li>The main drawback with this model is, it cannot accommodate frequently changed requirements.</li><li>If customer wish to change the existing requirement or want to add new requirements that will be an issue, hence to over come this let’s see what is done in the next article.</li></ol><p>That’s all about part-1. In the next <a href="https://medium.com/p/1fa2cf57487d/edit">article </a>lets see how Agile methodology works.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82e4a0d61345" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/software-testing-part-1-introduction-to-manual-testing-82e4a0d61345">Software Testing Part-1 -Introduction to Manual Testing.</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBMS Part-11-AutoIncrement, Limit Class and views in SQL]]></title>
            <link>https://medium.com/mindorks/dbms-part-11-e24893fd97c6?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e24893fd97c6</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 17:03:32 GMT</pubDate>
            <atom:updated>2019-11-25T17:39:59.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNfn1teoIORiAiGI9Dn23A.jpeg" /></figure><h4>Auto Increment.</h4><p>This is a function that is operated on numeric data types.<br> *This automatically generates sequential numeric values every time that a record is inserted into a table for a field defined as auto increment.</p><p><strong><em>Command</em></strong>:</p><p>CREATE TABLE STUDENT<br>(sno int(5) primary_key AUTO_INCREMENT, //this should have unique and not null values.<br>sname varchar(),<br>marks int(5));</p><p>ALTER TABLE student AUTO_INCREMENT=100;</p><p>Insert into student(sname,marks) values (‘x’,60);<br>Insert into student(sname,marks) values (‘y’,40);<br>Insert into student(sname,marks) values (‘z,105); //We have not mentiones sno value anywhere in columns.</p><p>Select * from student;// When we execute this the sno value will be displayed in the output with an increment.</p><p><strong><em>Output:</em></strong><br>sna sname marks<br>1 x 60<br>2 y 40<br>3 z 105<br>Delete from student WHERE sno=2;//record will be deleted we have only 2 records<br>Select * from student; // the deleted record will be deleted and a record with new number will be displayed.</p><p><strong><em>Output:</em></strong><br>sno sname marks<br>1 x 60<br>3 z 105<br>4 y 45 //next number is generated when old reocrd 2 is deleted.</p><p><strong><em>Note</em></strong>: <br>We need to use primary key in that column when ever AUTO_INCREMENT is used.<br> *Bi default the sno would start from 1 and the increment is done.<br> *If we want to give a diff number then we can give the command as</p><p><strong><em>Command </em></strong>:<br>SET_SAFE_UPDATES=0;<br>Delete from student; //Empty records</p><p>CREATE TABLE STUDENT<br>(sno int(5) primary_key AUTO_INCREMENT, //this should have unique and not null values.<br>sname varchar(),<br>marks int(5));</p><p>ALTER TABLE student AUTO_INCREMENT=100;</p><p>Insert into student(sname,marks) values (‘x’,60);<br>Insert into student(sname,marks) values (‘y’,40);<br>Insert into student(sname,marks) values (‘z,105);</p><p>Select * from student</p><p><strong><em>Output :</em></strong></p><p>sno sname marks<br>100 x 60<br>102 y 45<br>103 z 105 //next number is generated when old reocrd 2 is deleted.</p><p>This is not a constriction, it is a class to increase values.</p><h4>LIMIT CLASS</h4><p>This is used to display limited rows from a table.</p><p><strong><em>Command</em></strong>:<br>Select * from employees limit 10;<br>Select * from employees limit 5,10;//5th row to 10th row records</p><p>When we retrieve data from table we get the complete data bi default.<br>If we want to view only few records like first 5 or 10 then we can execute the above commands.</p><p><strong><em>Note</em></strong>: There is an option in MySQL Workbench however we can do this through command as well.</p><h4>VIEWS:</h4><p>A view is a virtual table based on a result set of an SQL statement.<br> *It contains rows and columns just like a real tables.<br> *The fields in a view are from one or more real tables in the database.<br> *Also, we can add SQL functions WHERE AND JOIN statements to a view and present the data as if the data were coming from one single table.<br> *View is a logical structure of a table which have a logical data and this is a mirror image of a table.<br> *This is used to maintain security of the data in the tables.<br><strong><em>Note</em></strong>:</p><p>If we make any changes to the table, the changes will be made on view as well, but the changes made in view will not effect anything in the table.</p><p><strong><em>Example</em></strong>:<br>Let us consider a table with 3 columns and multiple rows.<br>If we perform some action on the data in the table there will be some results.<br>We will store the result in a view and provide the access of the view to the user.</p><p>*Now, instead of providing the complete access of the table to the user we can create a view and provide the access of the view so that any changes made on the view will not effect the actual data in the table.</p><p><strong><em>Example</em></strong>:<br>use hr;<br>SELECT * from EMPLOYEES;</p><p><strong><em>Creating a view: <br></em>Syntax:<br></strong>CREATE VIEW viewname AS SQL query. //what ever records the SQL query returns those will be present in the view.</p><p><strong><em>Command</em></strong>:<br>CREATE VIEW employees_V1 AS SELECT EMPLOYEE_ID,FIRST_NAME,SALARY FROM EMPLOYEES; //in the employees table views is created with view name.<br>SELECT * from employees_v1; //data from the view will be displayed.</p><p><strong><em>Dropping view:<br>Syntax:</em></strong></p><p>DROP VIEW viewname<br>command:<br>DROP VIEW WMPLOYEE_V1;</p><h4>INDEX:</h4><p>These are used to retrieve data from the database very fast.<br>Users cannot see the indexes they ate just used to speed up searches/queries.<br>Insex are usually created on the columns with huge and complex data.<br>creating index<br><strong><em>Syntax:</em></strong></p><p>CREATE INDEX name of the index On table name( columnname ); //when we refresh the databases under tables and under particulate table the index will be created with the specified name.<br>CREATE INDEX idx_employees ON Employess(First_Name);</p><p><strong><em>Dropping Index:<br>Syntax:<br></em></strong>DROP INDEX INDEXNAME ON TABLENAME<br>drop index index_employees on EMPLOYEES;</p><p>That is all about final part 11.</p><p>Thank you for referring the entire article series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e24893fd97c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/dbms-part-11-e24893fd97c6">DBMS Part-11-AutoIncrement, Limit Class and views in SQL</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBMS Part-10 — Integrity Constraints in SQL]]></title>
            <link>https://medium.com/mindorks/dbms-part-10-55d3c586706b?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/55d3c586706b</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 17:02:34 GMT</pubDate>
            <atom:updated>2019-11-25T17:41:45.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TxcpzzdIS1Nm_dVyfbXqFw.jpeg" /></figure><h4>Integrity Constraints in SQL</h4><p>In this article let us understand the classification and usage of Integrity Constraints in SQL.</p><p>Integrity Constraints are a kind of conditions or rules which we can specify on data in a table.</p><p>*Constraints can be specified when the table is created with the CREATE TABLE statement, or after the table is created with the ALTER table statement.</p><p><strong><em>Example</em></strong>:<br> *In a table we have salary column we need to insert all the records in the table, at that time we can apply a condition that salary should be greater than certain value.<br> *Similarly, if we have cities column we can give a condition that only certain cities should be inserted in the table.</p><p><strong><em>SQL constraints:</em></strong></p><p><strong><em>NOT NULL:</em></strong></p><p>This constraint ensures that a column cannot have a null value.<br>However you can apply NOT NULL on any number of columns.</p><p><strong><em>Example</em></strong>: <br>We are trying to create table and insert values into the table student.</p><p><strong><em>Using NOT NULL:</em></strong></p><p>USE mydb;<br>CREATE TABLE STUDENT<br>(sno int(3), NOT NULL, sname varchar(10), marks int(30));<br>Note: While creating the table we have given not null as a value.<br>INSERT into student values(NULL,’KIRAN’,70); //ERROR says column sno cannot be null.<br> *Internally we have given a column as NOTNULL while creating the table hence we cannot pass null value while inserting the values.<br> *we cannot specify one or more columns as not null.</p><p><strong><em>UNIQUE</em></strong>:</p><p>This constraint ensures that all the values in a column are different and this can be applies on both column and table level.</p><p><strong><em>Column level : <br></em></strong>CREATE TABLE STUDENT (sno int(3) Unique, sname varchar(10),marks int(3));//sno will not allow duplicate values</p><p><strong><em>Table level:<br></em></strong>CREATE TABLE STUDENT (sno int(3), sname varchar(10), marks int(3), Unique(sno));</p><p><strong><em>Note:<br> *</em></strong>Table level doesn&#39;t support any constraints hence we will perform the constraints on column level.<br> *If we specify the constraint immediately after the column definition that is column level.</p><p>*If we specify the constraint after completion of all the columns at the end that is called table level.</p><p><strong><em>Example</em></strong>:<br>INSERT into STUDENT values(101.’swetha’,10);<br>INSERT into STUDENT values (101,’abcd’,20); // this gives an error as sno cannot be duplicated.<br><strong><em>Note</em></strong>: It allows NULL values.<br>INSERT into STUDENT values(null,’suresh’,20);<br>INSERT into STUDENT values(null,’mahesh’,30); // this doesnot give any error when we pass null value multiple times as null is not a number or value.</p><p><strong><em>Primary Key:</em></strong></p><p>This is a combination of a NOTNULL and UNIQUE constraints and this key uniquely identifies each row in a table<br> *This will not allow duplicate values and also null values.<br> *This can create constraint both in column level and table level.<br><strong><em>Note</em></strong>: for one table we can have only one primary key</p><p><strong><em>Command</em></strong>:</p><p>USE mydb;<br>drop table student;<br>create table student<br>(sno int(3) not null,unique,<br>sname varchar(10),<br>marks int(3));</p><p><strong><em>Note</em></strong>: Instead of this we can say primary key in the place of unique+not null as shown below.</p><p><strong><em>Command</em></strong>:</p><p>Create table student<br>(sno int(3) Primary key,<br>sname varchar(10),<br>marks int(3)); // this is for column level</p><p><strong><em>Command:</em></strong></p><p>Create table student<br>(sno int(3).<br>sname varchar(10),<br>marks int(3),<br>Primary key(sno)); // this is for Tablelevel</p><p><strong><em>Note</em></strong>: We can create primary key on combination of two columns called as <strong><em>composite primary key.</em></strong><br> *Composite key can be applied only at table level.</p><p>Insert into student values(101,’swetha’,50); //valid<br>Insert into student values(101,’suresh’,60); //invalid..sno should be unique<br>Insert into student values(null,’suresh’,50); //invalid ..NULL is not allowed.</p><p><strong><em>Consider a table</em></strong></p><p>SNAME GRADE //are the columns<br>A a <br>B b<br>X a<br>A b //are the values in columns</p><p><strong><em>Note</em></strong>: Every record is a unique record like the combination of Aa,Bb,Xa,Ab is not repeated anywhere in the table so when a primary key is applied on 2 columns then it is called composite key.</p><p><strong><em>Example</em></strong>:</p><p>Create table student<br>(sno int(3),<br>class int(3),<br>sname varchar(10),<br>marks int(3),<br>Primary key(sno,class)); // Combination of columns. This is valid.</p><p><strong><em>FOREIGN KEY:</em></strong></p><p>*This is used to link two tables.<br> *This is a field or collection of fields in one table, that refers to the primary key in the another table.<br> *The table containing the foreign key is called the <strong><em>child table</em></strong> and the table containing the candidate key is called the referenced or <strong><em>parent</em></strong> <strong><em>table</em></strong>.</p><p><strong>Consider</strong>,</p><p>There are 2 tables <br> *Table 1 is a child table. That is the employee table.</p><p>This has the columns empid, empname, salary, department number.</p><p>*Table 2 is a parent table.That is the department table.</p><p>This has the columns department number, department name.</p><p>*The data entered in department number in employee table should be a part of department number in department table.</p><p>*Also, if we want to remove a record from department table from department number column it will not allow us as employee table records are dependent on department table records.</p><p>*Further, if we want to remove any record from department table we need to first remove all the dependent records from employee table.</p><p>*If we remove the records from parent table, corresponding child records should be removed but bi default, which is not possible.</p><p>In order to combine these 2 tables we need to have some relationship between the tables.So we need to locate common column in the tables.Sometimes if the column name is different that is not an issue but <strong><em>datatype </em></strong>should be same.</p><p><strong><em>Note</em></strong>: Sno from library table should be referring to sno from school table.</p><p>//Parent table<br>CREATE TABLE SCHOOL(<br>sno int(3),<br>sname varchar(15),<br>marks int(3),<br>primary key(sno));<br>INSERT into school values(101,’swetha’,90);<br>INSERT into school values(102,’John’,70);<br>INSERT into school values(103,’King’,80);<br>Select * from school;</p><p>//Child table<br>CREATE TABLE LIBRARY<br>(sno int(3), FOREIGN KEY (sno) REFERENCES school(sno),<br>book_name varchar(10));<br>INSERT into library values(102,’java’);<br>INSERT into library values(108,’c’);//not allowed<br>INSERT into library values(null,’dot net’);// this is allowed.</p><p><strong><em>Note</em></strong>:</p><p>*When we are trying to insert sno as 102 in library table it will check if the same sno 102 is present in student table and it should match then it will allow us to enter the data in child table(library table).<br> *When we try to insert sno as 108 in library table it will give an error as the value is not there in parent table.<br> *Also,Null as a value is accepted.</p><p><strong><em>Now</em></strong>,</p><p>1)When we try to insert a record into child table, that column will be referred in parent table.<br>2) If we try remove parent table record directly without deleting records from child table this will not be possible.</p><p>3) To make this possible, first, we need to delete dependent record from child table and then we need to delete the record from parent table.</p><h4>On delete cascade :</h4><p><strong><em>How this works?</em></strong></p><p>If we try to delete a record from parent table directly, it will be removed and the corresponding records will also be deleted from the child table.</p><p><strong><em>Note</em></strong>:</p><p>When we remove the parent record child records will be removed automatically.</p><p>*Usually we cannot delete rows from parent table unless we delete corresponding row from child table.<br> *We can delete rows from the parent table and corresponding child table row as well(at the same time) by using ONDELETECASCASCADE option.</p><p>//Parent table<br>CREATE TABLE SCHOOL(<br>sno int(3),<br>sname varchar(15),<br>marks int(3),<br>primary key(sno));<br>INSERT into school values(101,’swetha’,90);<br>INSERT into school values(102,’John’,70);<br>INSERT into school values(103,’King’,80);<br>Select * from school;<br>delete from school where sno=101;</p><p>//Child table<br>CREATE TABLE LIBRARY<br>(sno int(3), FOREIGN KEY (sno) REFERENCES school(sno) ON DELETE CASCADE,<br>book_name varchar(10));<br>INSERT into library values(102,’java’);<br>INSERT into library values(101,’c’);<br>Select * from library;</p><p><strong><em>Check</em></strong>:</p><p>This constraint ensures that all values in a column satisfies a specific condition.</p><p><strong><em>Command</em></strong>:</p><p>Create table student(<br>sno int(5),<br>sname varchar(15),<br>marks int(5) check(marks between 50 and 100));</p><p>INSERT into student values(101,’swetha’,90);//valid<br>INSERT into student values(102,’John’,40); //in valid<br>INSERT into student values(103,’King’,105);//invalid as marks should be between 50 and 100 as per condition.</p><p>select * from student;<br><strong><em>Example 2:</em></strong></p><p>Create table loc<br>(city varchar(15) check (city in(‘HYDERABAD’,’CHENNAI’,’DELHI’)),<br>country varchar(15),<br>pin int(8));</p><p>insert into values(‘HYDERABAD’,’INDIA’,12345); //valid<br>insert into values(‘MUMBAI’,’INDIA’,644566);// invalid<br>insert into values(‘DELHI’,’INDIA’,678445); //valid<br>select * from loc;</p><p><strong><em>Default:</em></strong></p><p>This constraint sets a default value for a column when no value is specifies.</p><p>The default value will be added to all new records If no other value is specified.</p><p><strong><em>Command:</em></strong></p><p>CREATE TABLE Orders<br>(ID int(5), <br>orderNumber int(5),<br>OrderDate datetime DEFAULT now());<br>//NOW() is a in built function which returns current date and time in MySQL.<br>//Everytime we do not have to enter date and time as DEFAULT constraint is given.<br>Insert into Orders values(101,1342342,’2019–05–21 15:25:10&#39;);// We have passed these values manually but we want these values to be displayed bi default.<br>Insert into Orders(ID,Ordernumber) values(101,2456);<br>Insert into Orders(ID,OrderNumber) values(102,2457);<br>select * from Orders;// when we execute this the output should have updated values that is time and date.</p><p>That is all about constraints in SQL. In the <a href="https://medium.com/@gvnswetha1995/dbms-part-11-e24893fd97c6">next and final part</a>, we will be learning about <a href="https://medium.com/@gvnswetha1995/dbms-part-11-e24893fd97c6">AutoIncrement, Limit class and view in SQL</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55d3c586706b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/dbms-part-10-55d3c586706b">DBMS Part-10 — Integrity Constraints in SQL</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SUB Queries Part 9]]></title>
            <link>https://medium.com/mindorks/sub-queries-part-9-d49c1735efda?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d49c1735efda</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Sun, 24 Nov 2019 08:33:48 GMT</pubDate>
            <atom:updated>2019-11-25T17:38:21.859Z</atom:updated>
            <content:encoded><![CDATA[<h3>DBMS Part -9 — SubQueries in SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2RVZFK8WPRNCpjQnQgiUQ.jpeg" /></figure><h4>Sub Queries</h4><p>In this article let’s see how Sub Queries work.</p><p><strong><em>What is a Sub Query?</em></strong></p><p>*Sub Query is a query within a Query.<br> *This is also called as nested queries.</p><p>*Sub Query has 2 parts:<br>1)Outer Query<br>2)Inner Query</p><p>*The output of the inner query is become input of outer query.</p><p>*There are 2 types of sub queries:<br>1)Single row query &lt;=,&gt;=,|=<br>2)Multi row query IN,ANY,ALL</p><p><strong><em>Example:</em></strong></p><p><strong><em>Query</em></strong>: Display employees whose salary is less than the salary of X . <br><strong><em>Note</em></strong>: We have not mentioned the salary of the X, hence we should know the salary of X first.</p><p><strong><em>Command</em></strong>:</p><p>SELECT SALARY FROM EMPLOYEES WHERE FIRST_NAME =’X’; — 100//X’s salary<br>SELECT SALARY FROM EMPLOYEES WHERE SALARY&lt;100;</p><p>Instead of writing 2 queries we can write one query as:</p><p><strong><em>Command</em></strong>:</p><p>SELECT SALARY FROM EMPLOYEES WHERE SALARY&lt;(SELECT SALARY FROM EMPLOYEES WHERE FIRST_NAME =’X’); //Inner query will execute first.</p><p><strong><em>Example 2:</em></strong></p><p><strong><em>Query</em></strong>: To know the 2nd maximum salary from employees table.</p><p><strong><em>Command</em></strong>:</p><p>SELECT SALARY FROM EMPLOYEES;<br>SELECT MAX(SALARY) FROM EMPLOYEES; //gives the max salary<br>SELECT MAX(SALARY) FROM EMPLOYEES WHERE SALARY &lt; (SELECT MAX(SALARY) FROM EMPLOYEES); //this gives the 2nd max salary from the table.</p><p>Also,</p><p>SELECT MAX(SALARY) FROM EMPLOYEES WHERE SALARY &lt; SELECT MAX(SALARY) FROM EMPLOYEES WHERE SALARY &lt; (SELECT MAX(SALARY) FROM EMPLOYEES)); //this gives 3rd max salary</p><p><strong><em>Single row Sub Query:</em></strong></p><p><strong><em>Query:<br></em></strong>1) Find the salary of the employee whose salary is greater than the salary of employee whose EMPLOYEE_ID is 150.</p><p>we can write this as:</p><p><strong><em>Command:</em></strong></p><p>SELECT SALARY FROM EMPLOYEE WHERE EMPLOYEE_ID=150; // salary of employee with id 150 is 1000<br>SELECT SALARY FROM EMPLOYEE WHERE SALARY&gt;1000; //the output of the above query is input for this query.</p><p><strong><em>Note</em></strong>: We have written 2 queries for one statement.Instead of this we can write the 1st statement as sub query as shown below.</p><p><strong><em>Command:</em></strong></p><p>SELECT SALARY FROM EMPLOYEES WHERE SALARY&gt;(SELECT SALARY FROM EMPLOYEES WHERE EMPLOYEE_ID=150);</p><p>2)Display the employees who all are earning the highest salary.</p><p>We can write this as:</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM EMPLOYEE WHERE SALARY=(SELECT MAX(SALARY) FROM EMPLOYEES);</p><p><strong><em>Multi row sub query:</em></strong> If the sub query is written in multiple rows and in multiple values that is multi row sub query.<br><strong><em>Single row sun query:</em></strong> If inner query returns single value at a time then it is called single row sub query.</p><p><strong><em>Multi Row Sub Query:<br></em></strong> 1)Display employees whose salary is equal to the salary of at least one employee in department id 30.</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM EMPLOYEE WHERE SALARY IN( SELECT SALARY FROM EMPLOYEE WHERE DEPARTMENT_ID=30);</p><p>2)Display the employees whose salary is greater than at least on employee in department id 30</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM EMPLOYEE WHERE SALARY&gt;ANY (SELECT SALARY FROM EMPLOYEES WHERE DEPARTMENT_ID=30);</p><p>That is all about Sub queries. In the next part, we will discuss about <a href="https://medium.com/@gvnswetha1995/dbms-part-10-55d3c586706b">Integrity Constraints in SQL</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d49c1735efda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/sub-queries-part-9-d49c1735efda">SUB Queries Part 9</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBMS Part-8 — The ‘JOINS’ Keyword in SQL]]></title>
            <link>https://medium.com/mindorks/dbms-part-8-7c8dc9a01cb1?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c8dc9a01cb1</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Sun, 24 Nov 2019 08:33:36 GMT</pubDate>
            <atom:updated>2019-11-25T17:34:55.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QVN4ilBzJS1NF4xh7M_46w.jpeg" /></figure><h4>SQL Joins</h4><p>In this article lets understand in detail about Joins.</p><p>* Joins help us in retrieving the data from two or more database tables.<br> *The tables are mutually related using primary and foreign keys.</p><h4>Type of Joins:</h4><p>1)Equal Join/inner Join/Simple Join<br>2)Right Join<br>3)Left Join<br>4)Full Join<br>5)Self Join</p><p><strong><em>Note</em></strong>: In order to establish relation between these 2 tables there must be at least one common column.</p><p><strong><em>Consider </em></strong><br>Table 1 with data 10,11,12,14<br>Table 2 with data 11,12,13,15<br><strong><em>Inner Join</em></strong></p><p>This will return the common data from tables.<br>*In both the Tables NUMID column is common hence we can use the common Column Name while using Inner Join Condition.</p><p><strong><em>Command</em></strong>:</p><p>SELECT * FROM TABLE1 INNER JOIN TABLE2 ON TABLE1.NUMID=TABLE2.NUMID;</p><p>*The output will be (11,12) as per the data given in above tables.<br> *Also, if we do not want the common data to be the output then we can use not equal to ‘&lt;&gt;’ symbol.</p><p><strong><em>Command</em></strong>:</p><p>SELECT * FROM TABLE1 INNER JOIN TABLE2 ON TABLE1.NUMID&lt;&gt;TABLE2.NUMID;</p><h4>LEFT Join:</h4><p>In this, data will be retrieved from the left table.</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.NUMID=TABLE2.NUMID;<br> *The output will be (10,11,12,14)</p><h4>RIGHT Join:</h4><p>Data will be retrieved from the right table.</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM TABLE1 RIGHT JOIN TABLE2 ON TABLE1.NUMID=TABLE2.NUMID<br> *The output will be (13,15,11,12)</p><h4>FULL Join:</h4><p>This is a combination of right and left join. However this is not supported by MySQL.</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM TABLE1 FULL JOIN TABLE2 T2 ON T1.NUMID=T2.NUMID;<br> *The output will be (10,11,12,14,13,15)</p><p><strong><em>Note</em></strong>:</p><p>If there is a common column in 2 tables while executing the command there will be an error and the output will not be displayed.</p><p><strong><em>Example</em></strong>: In EMPLOYEE AND DEPARTMENT tables there is a common column called DEPARTMENT_ID and if we execute the below command we will get an error.</p><p><strong><em>Command</em></strong>:</p><p>SELECT EMPLOYEE_ID,FIRST_NAME,JOB_ID,DEPARTMENT_ID,DEPARTMENT_NAME,LOCATION_ID<br>FROM EMPLOYEES LEFT JOIN DEPARTMENTS<br>ON (DEPARTMENT_ID=DEPARTMENT_ID);<br> *However in order to have the right output the <strong><em>command </em></strong>would be</p><p>SELECT EMPLOYEE_ID,FIRST_NAME,JOB_ID,DEPARTMENT.DEPARTMENT _ID,DEPARTMENT_NAME,LOCATION_ID<br>FROM EMPLOYEES LEFT JOIN DEPARTMENTS<br>ON (EMPLOYEES .DEPARTMENT_ID=DEPARTMENTS.DEPARTMENT_ID); // we have mentioned the table name before the common column name in both the tables.</p><p><strong><em>Similarly</em></strong>,</p><p>EMPLOYEE_ID,FIRST_NAME,JOB_ID,DEPARTMENT.DEPARTMENT_ID,DEPARTMENT_NAME,LOCATION_ID<br>FROM EMPLOYEES RIGHT JOIN DEPARTMENTS<br>ON (EMPLOYEES .DEPARTMENT_ID=DEPARTMENTS.DEPARTMENT_ID); // we have mentioned the table name before the common column name in both the tables.</p><p><strong><em>Note </em></strong>:</p><p>If there are no matching records available then it would display as NULL.<br>SELF Join:</p><p>We will have single table and if we want to join the single table with the same table.</p><p>*Lets say we have employee table and empid, first name, manager name as column names<br>empid firstname manager<br>101 a 103<br>102 b 106<br>103 c 100</p><p>*Every manager has a empid hence if the value in the empid is matching with the value in the manager column then they are the managers.</p><p>*Let us understand that 103 is a manager as the manager is one of the employee of the organization he has an empid.</p><p>*That is 103 is listed under empid and manager column hence he comes under manager the same is not with 101,102.</p><p>*Now the query is print the employee details who is manager of other employees</p><p>*In this case we need to split the table into 2 parts that is create ALIAS(ANOTHER NAME FOR THE TABLE)of the table lets say E AND M.</p><p><strong><em>Command</em></strong>:</p><p>SELECT E.EMPLOYEE_ID,M.MANAGER_ID,E.FIRST_NAME,M.FIRST_NAME<br> FROM EMPLOYEES E,EMPLOYEES M WHERE E.EMPLOYEE_ID=M.MANAGER_ID;</p><p>That is all about Joins. In the <a href="https://medium.com/@gvnswetha1995/sub-queries-part-9-d49c1735efda">next part</a> we will learn about <a href="https://medium.com/@gvnswetha1995/sub-queries-part-9-d49c1735efda">Sub Queries in SQL.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c8dc9a01cb1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/dbms-part-8-7c8dc9a01cb1">DBMS Part-8 — The ‘JOINS’ Keyword in SQL</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBMS Part-7 -Operators in SQL]]></title>
            <link>https://medium.com/mindorks/dbms-part-7-991e67636fcb?source=rss-45d1cd46e49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/991e67636fcb</guid>
            <dc:creator><![CDATA[Gvnswetha]]></dc:creator>
            <pubDate>Sun, 24 Nov 2019 08:33:18 GMT</pubDate>
            <atom:updated>2019-11-25T17:31:56.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9yiuwxHsdY_Ct6fB-MTDQ.jpeg" /></figure><h4>Set Operators</h4><p>In this article let’s understand how to work with multiple tables.</p><p>There are 4 SET OPERATORS:<br>1)UNION Operator<br>2) Union All<br>3)Intersect<br>4)Minus</p><p><strong><em>Note</em>:</strong></p><p>MySQL doesn&#39;t support Minus and Intersect.</p><h4>Why do we use these SET Operators?</h4><p>*These operators are used to join multiple data’s and we can retrieve data from multiple tables with single queries.</p><p>*So far we have worked with single tables.Now we will be able to work with multiple tables.</p><p>*In order to retrieve the data from multiple tables we use 3 concepts Union/Union All,Joints,sub queries.</p><p>Lets see how <strong><em>Union </em></strong>and <strong><em>Union all</em></strong> works:<br>1)Union operator is used to combine the results of 2 or more SELECT statements.<br>2)Each SELECT statement within UNION must have the same number of columns.<br>3)The columns must also have similar data type.<br>4)The column in each SELECT statement must also be in the same order.</p><p><strong><em>Example</em></strong>: If there are 2 tables Table 1 and Table 2.</p><p>*Table 1 has 1 columns with column name NumberId and values as 123,<br>similarly Table 2 has 1 column with column name as NumId and values as 356.<br> *Now the union operator will extract the data from 2 tables and will eliminate the duplicates.Hence the output would be 12356.</p><p><strong><em>*Union All</em></strong><em> </em>gives the content or the data in the tables as it is that is it gives the duplicate data.<br><strong>Output</strong> would be 123356.<br> *<strong><em>Intersect</em></strong> will give the common data from both the tables.That is 3.<br> *<strong><em>Minus</em></strong> : T1-T2 will return the date that is present in T1 and not present in T2.<br><strong>Output </strong>will be 12.<br>Similarly for T2-T1 the output will be 56.</p><p>Let’s <strong><em>CREATE </em></strong>2 tables.</p><p><strong><em>Command:</em></strong></p><p>CREATE TABLE A(SNAME VARCHAR(10),NUM INT(20));<br>CREATE TABLE B(NUM INT(20),GRADE VARCHAR(30));<br>INSERT INTO A VALUES(‘ABC’,10);<br>INSERT INTO A VALUES(‘XYZ’,11);<br>INSERT INTO A VALUES(‘PQR’,12);<br>INSERT INTO A VALUES(‘MNO’,14);<br>COMMIT;<br>INSERT INTO B VALUES(11,’A’);<br>INSERT INTO B VALUES(12,’B’);<br>INSERT INTO B VALUES(13,’C’);<br>INSERT INTO B VALUES(14,’D’);<br>COMMIT;</p><p>Let’s now perform UNION and Union ALL operations on above created tables.</p><p><strong><em>Command:</em></strong></p><p>SELECT * FROM A;<br>SLECT * FROM B;<br>SELECT NUM FROM A UNION SELECT NUM FROM B;//Displays all the records from multiple tables without duplicates.<br>SELECT NUM FROM A UNION ALL SELECT NUM FROM B;//Displays all the records from multiple tables including duplicates.</p><p>That is all about part 7.In the <a href="https://medium.com/@gvnswetha1995/dbms-part-8-7c8dc9a01cb1">next article</a> let’s see <a href="https://medium.com/@gvnswetha1995/dbms-part-8-7c8dc9a01cb1">how the keyword ‘Joins’ works.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=991e67636fcb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/dbms-part-7-991e67636fcb">DBMS Part-7 -Operators in SQL</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>