<?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 Sourabhadixit on Medium]]></title>
        <description><![CDATA[Stories by Sourabhadixit on Medium]]></description>
        <link>https://medium.com/@sourabhadixit2000?source=rss-9152ebf7e6ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Awh1YluUVcxBqyQv</url>
            <title>Stories by Sourabhadixit on Medium</title>
            <link>https://medium.com/@sourabhadixit2000?source=rss-9152ebf7e6ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:09:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sourabhadixit2000/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(Manual Testing)]]></title>
            <link>https://medium.com/@sourabhadixit2000/software-testing-manual-testing-e9d3dd432e3e?source=rss-9152ebf7e6ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9d3dd432e3e</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[jira]]></category>
            <dc:creator><![CDATA[Sourabhadixit]]></dc:creator>
            <pubDate>Tue, 27 Sep 2022 04:38:39 GMT</pubDate>
            <atom:updated>2022-09-27T04:43:32.544Z</atom:updated>
            <content:encoded><![CDATA[<p>Refer to the below link to know more about my journey:</p><p><a href="https://medium.com/@sourabhadixit2000/entering-the-online-technical-training-f29b1ef9d73f">My journey to the corporate world</a></p><p>To know about java for automation testing, click on the below link</p><p><a href="https://medium.com/@sourabhadixit2000/java-basics-and-oops-concepts-1d9c7ba8c5e9">JAVA Basics and OOPS concepts</a></p><p>To know about automation testing with the selenium tool, click the below link:</p><p><a href="https://medium.com/@sourabhadixit2000/automation-testing-ed30930f2e49">Automation Testing</a></p><p><strong>Software testing:</strong></p><p><strong>Software Testing</strong> is a method to check whether the actual software product matches expected requirements and to ensure that the software product is<a href="https://www.guru99.com/defect-management-process.html"> </a>defect free. It involves the execution of software/system components using manual or automated tools to evaluate one or more properties of interest. The purpose of software testing is to identify errors, gaps or missing requirements in contrast to actual requirements.</p><p>Why Software Testing is Important?</p><p><strong>Software Testing is Important</strong> because if there are any bugs or errors in the software, they can be identified early and can be solved before the delivery of the software product. Properly tested software product ensures reliability, security and high performance which further results in time-saving, cost-effectiveness and customer satisfaction.</p><p>Here are the benefits of using software testing:</p><ul><li><strong>Cost-Effective: </strong>It is one of the important advantages of software testing. Testing any IT project on time helps you to save your money for the long term. In case the bugs are caught in the earlier stage of software testing, it costs less to fix.</li><li><strong>Security: </strong>It is the most vulnerable and sensitive benefit of software testing. People are looking for trusted products. It helps in removing risks and problems earlier.</li><li><strong>Product quality: </strong>It is an essential requirement of any software product. Testing ensures a quality product is delivered to customers.</li><li><strong>Customer Satisfaction: </strong>The main aim of any product is to give satisfaction to its customers. UI/UX Testing ensures the best user experience.</li></ul><p>S<strong>oftware Development Life Cycle(SDLC):</strong></p><p>— It is a model that represents all the methods required to make a software product. The development team must determine a suitable life cycle model for a particular plan and observe it.</p><p>— When a team is developing a software product, there must be a clear understanding among team representatives about when and what to do. Otherwise, it would a failure.</p><p>Mainly it consists of 7 phases. Those are:</p><p><strong>— Ideation:</strong> In this phase planning will happen. The senior members of the team perform it with input from all the stakeholders and domain experts. Here an effective outline for the upcoming development cycle is built.</p><p><strong>— Requirements:</strong> Requirement Analysis is the most important and necessary stage in SDLC. Business analysts and Project organizers set up a meeting with the client to gather all the data like what the customer wants to build, who will be the end user, and what is the objective of the product. Before creating a product, a core understanding or knowledge of the product is very necessary. Once the requirement is understood, the SRS (Software Requirement Specification) document is created.</p><p><strong>— Design: </strong>Once the requirement analysis is done, the next stage is to design the product. Here using an effective outline and requirements collected from various sources which are documented in SRS is considered and various architecture or designs are built. based on various opinions, a good design is picked.</p><p><strong>— Development: </strong>After the design phase, the development or building of the product is done. Here programmers will choose what are the programming languages to be used based on requirements and also different tools will be chosen and a product is built.</p><p><strong>— Testing:</strong> After a product is built, in this phase testing is done. 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>— Deployment:</strong> Once the software is certified, and no bugs or errors are stated, then it is deployed. Then based on the assessment, the software may be released as it is or with suggested enhancement in the object segment.</p><p><strong>— Maintenance: </strong>After the software is deployed, then its maintenance begins. Once when the client starts using the developed systems, then the real issues come up and requirements are to be solved from time to time. This procedure where care is taken for the developed product is known as maintenance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*_be5uo3f5ZyhO3Vw.jpeg" /></figure><p>SDLC Phases</p><p>T<strong>here are five SDLC models:</strong></p><ol><li><strong>Waterfall Model:</strong></li></ol><p>— Each stage relies on information from the previous stage and has its own project plan. The waterfall is easy to understand and simple to manage.</p><p>— It is a sequential model. The waterfall Model illustrates the software development process in a linear sequential flow. This means that any phase in the development process begins only if the previous phase is complete. In this waterfall model, the phases do not overlap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*APQ8EJ3ADZIQErAC.jpeg" /></figure><p>Waterfall model</p><p>The sequential phases in the Waterfall model are −</p><ul><li><strong>Requirement Gathering and analysis</strong> − All possible requirements of the system to be developed are captured in this phase and documented in a requirement specification document.</li><li><strong>System Design</strong> − The requirement specifications from the first phase are studied in this phase and the system design is prepared. This system design helps in specifying hardware and system requirements and helps in defining the overall system architecture.</li><li><strong>Implementation</strong> − With inputs from the system design, the system is first developed in small programs called units, which are integrated with the next phase. Each unit is developed and tested for its functionality, which is referred to as Unit Testing.</li><li><strong>Integration and Testing</strong> − All the units developed in the implementation phase are integrated into a system after testing each unit. Post integration the entire system is tested for any faults and failures.</li><li><strong>Deployment of system</strong> − Once the functional and non-functional testing is done; the product is deployed in the customer environment or released into the market.</li><li><strong>Maintenance</strong> − There are some issues that come up in the client environment. To fix those issues, patches are released. Also to enhance the product some better versions are released. Maintenance is done to deliver these changes in the customer environment.</li></ul><p><strong>The advantages of the waterfall model:</strong></p><ul><li>It is simple and easy to understand and use.</li><li>Phases are processed and completed one at a time.</li><li>Works well for smaller projects where requirements are very well understood.</li><li>Clearly defined stages.</li><li>Easy to arrange tasks.</li><li>Process and results are well documented.</li><li>It is very useful for short-term projects.</li></ul><p><strong>The disadvantage of the waterfall model:</strong></p><ul><li>High amounts of risk and uncertainty.</li><li>Not a good model for complex and object-oriented projects.</li><li>Poor model for long and ongoing projects.</li><li>It is difficult to measure progress within stages.</li><li>Cannot accommodate changing requirements.</li><li>Adjusting scope during the life cycle can end a project.</li></ul><p><strong>2. V-Shaped Model:</strong></p><p>— The V-model is an SDLC model where the execution of processes happens in a sequential manner in a V-shape. It is also known as Verification and Validation model.</p><p>— The V-Model is an extension of the waterfall model and is based on the association of a testing phase for each corresponding development stage. This means that for every single phase in the development cycle, there is a directly associated testing phase. Here also the next phase starts only after the completion of the previous phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*WZSYE1EGUyinYV6u.png" /></figure><p>V-shape model</p><p><strong>Verification:</strong> Here the review is done without executing code. It is the process of evaluation of the product development phase to find whether specified requirements meet.</p><p><strong>Validation:</strong> It involves a dynamic analysis technique (functional, non-functional), and testing is done by executing code. Validation is the process to evaluate the software after the completion of the development phase to determine whether the software meets the customer’s expectations and requirements.</p><p>So V-Model contains Verification phases on one side and the Validation phases on the other side. The verification and Validation phases are joined by the coding phase in V-shape. Thus it is called V-Model.</p><p><strong>Design Phase:</strong></p><ul><li><strong>Requirement Analysis:</strong> This phase contains detailed communication with the customer to understand their requirements and expectations. This stage is known as Requirement Gathering.</li><li><strong>System Design:</strong> This phase contains the system design and the complete hardware and communication setup for developing the product.</li><li><strong>Architectural Design:</strong> System design is broken down further into modules taking up different functionalities.</li><li><strong>Module Design:</strong> In this phase, the system breaks down into small modules. The detailed design of modules is specified, also known as Low-Level Design (LLD).</li></ul><p><strong>Testing Phases:</strong></p><ul><li><strong>Unit Testing:</strong> Unit Test Plans are developed during the module design phase. These Unit Test Plans are executed to eliminate bugs at the code or unit level.</li><li><strong>Integration testing:</strong> After completion of unit testing Integration testing is performed. In integration testing, the modules are integrated and the system is tested. Integration testing is performed in the Architecture design phase. This test verifies the communication of modules among themselves.</li><li><strong>System Testing:</strong> System testing test the complete application with its functionality, interdependency, and communication. It tests the functional and non-functional requirements of the developed application.</li><li><strong>User Acceptance Testing (UAT):</strong> UAT is performed in a user environment that resembles the production environment. UAT verifies that the delivered system meets the user’s requirement and system is ready for use in the real world.</li></ul><p>3. <strong>Iterative Model:</strong></p><p>— An iterative life cycle model does not attempt to start with a full specification of requirements. Instead, development begins by specifying and implementing just part of the software, which is then reviewed to identify further requirements. This process is then repeated, producing a new version of the software at the end of each iteration of the model.</p><p>— The iterative process starts with a simple implementation of a subset of the software requirements and iteratively enhances the evolving versions until the full system is implemented. At each iteration, design modifications are made and new functional capabilities are added. The basic idea behind this method is to develop a system through repeated cycles (iterative) and in smaller portions at a time (incremental).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*5ykICu-kbJWo0g04.jpeg" /></figure><p>Iterative and Incremental model</p><p>Iterative and Incremental development is a combination of both iterative design or iterative method and incremental build model for development. “During software development, more than one iteration of the software development cycle may be in progress at the same time.” This process may be described as an “evolutionary acquisition” or “incremental build” approach.”</p><p>In this incremental model, the whole requirement is divided into various builds. During each iteration, the development module goes through the requirements, design, implementation, and testing phases. Each subsequent release of the module adds a function to the previous release. The process continues till the complete system is ready as per the requirement.</p><p><strong>The advantages of the Iterative and Incremental Model :</strong></p><ul><li>Some working functionality can be developed quickly and early in the life cycle.</li><li>Results are obtained early and periodically.</li><li>Parallel development can be planned.</li><li>Progress can be measured.</li><li>Less costly to change the scope/requirements.</li><li>Testing and debugging during smaller iterations is easy.</li><li>Easier to manage risk — High-risk part is done first.</li><li>Risk analysis is better.</li><li>It supports changing requirements.</li></ul><p><strong>The disadvantages of the Iterative and Incremental Model:</strong></p><ul><li>More resources may be required.</li><li>More management attention is required.</li><li>System architecture or design issues may arise because not all requirements are gathered at the beginning of the entire life cycle.</li><li>Not suitable for smaller projects.</li><li>Highly skilled resources are required for risk analysis.</li></ul><p>4. <strong>Spiral Model:</strong></p><p>— The spiral model has four phases. A software project repeatedly passes through these phases in iterations called Spirals.</p><p>— It implements the potential for rapid development of new versions of the software. Using the spiral model, the software is developed in a series of incremental releases.</p><p>— During the early iterations, the additional release may be a paper model or prototype. During later iterations, more and more complete versions of the engineered system are produced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/0*H4e3qk4fwrbdIInk.png" /></figure><p>Each cycle in the spiral is divided into four parts:</p><p><strong>Objective setting:</strong> Each cycle in the spiral starts with the identification of purpose for that cycle, the various alternatives that are possible for achieving the targets, and the constraints that exists.</p><p><strong>Risk Assessment and reduction:</strong> The next phase in the cycle is to calculate these various alternatives based on the goals and constraints. The focus of evaluation in this stage is mainly based on identifying the risk of the project.</p><p><strong>Development and validation:</strong> The next phase is to develop strategies that resolve uncertainties and risks. This process may include activities such as benchmarking, simulation, and prototyping.</p><p><strong>Planning:</strong> Finally, the next step is planned. The project is reviewed, and a choice made whether to continue with a further period of the spiral. If it is determined to keep, plans are drawn up for the next step of the project.</p><p>The development phase depends on the remaining risks. For example, if performance or user-interface risks are treated more essential than the program development risks, the next phase may be an evolutionary development that includes developing a more detailed prototype for solving the risks.</p><p><strong>The advantages of the Spiral Model :</strong></p><ul><li>Changing requirements can be accommodated.</li><li>Allows extensive use of prototypes.</li><li>Requirements can be captured more accurately.</li><li>Users see the system early.</li><li>Development can be divided into smaller parts and the risky parts can be developed earlier which helps in better risk management.</li></ul><p><strong>The disadvantages of the Spiral Model :</strong></p><ul><li>Management is more complex.</li><li>The end of the project may not be known early.</li><li>Not suitable for small or low-risk projects and could be expensive for small projects.</li><li>Process is complex</li></ul><p>5. <strong>Agile Model:</strong></p><p>— Agile process model refers to a software development approach based on iterative development. Agile methods break tasks into smaller iterations, or parts do not directly involve long term planning.</p><p>— Each iteration is considered as a short time “frame” in the Agile process model, which typically lasts from one to four weeks. The division of the entire project into smaller parts helps to minimize the project risk and to reduce the overall project delivery time requirements.</p><p>— Each iteration involves a team working through a full software development life cycle including planning, requirements analysis, design, coding, and testing before a working product is demonstrated to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*Ggbu7wpfwfyb33iB.png" /></figure><p><strong>Phases of Agile Model:</strong></p><p>Following are the phases in the Agile model are as follows:</p><p><strong>1. Requirements gathering:</strong> In this phase, you must define the requirements. You should explain business opportunities and plan the time and effort needed to build the project. Based on this information, you can evaluate technical and economic feasibility.</p><p><strong>2. Design the requirements:</strong> When you have identified the project, work with stakeholders to define requirements. You can use the user flow diagram or the high-level UML diagram to show the work of new features and show how it will apply to your existing system.</p><p><strong>3. Construction/ iteration:</strong> When the team defines the requirements, the work begins. Designers and developers start working on their project, which aims to deploy a working product. The product will undergo various stages of improvement, so it includes simple, minimal functionality.</p><p><strong>4. Testing:</strong> In this phase, the Quality Assurance team examines the product’s performance and looks for the bug.</p><p><strong>5. Deployment:</strong> In this phase, the team issues a product for the user’s work environment.</p><p><strong>6. Feedback:</strong> After releasing the product, the last step is feedback. In this, the team receives feedback about the product and works through the feedback.</p><p><strong>Agile Testing Methods:</strong></p><ul><li>Scrum</li><li>Crystal</li><li>Dynamic Software Development Method(DSDM)</li><li>Feature Driven Development(FDD)</li><li>Lean Software Development</li><li>eXtreme Programming(XP)</li></ul><p><strong>Advantages of Agile Method:</strong></p><ol><li>Face-to-Face Communication with clients.</li><li>Efficient design and fulfils the business requirement.</li><li>Anytime changes are acceptable.</li><li>It reduces total development time.</li></ol><p><strong>Disadvantages of Agile Model:</strong></p><ol><li>Due to the shortage of formal documents, it creates confusion and crucial decisions taken throughout various phases can be misinterpreted at any time by different team members.</li><li>Due to the lack of proper documentation, once the project completes and the developers allotted to another project, maintenance of the finished project can become a difficulty.</li></ol><p>R<strong>equirement Analysis Process:</strong></p><p>Requirement analysis is the process of determining user expectations for a new or modified product and is vital for effective QA software testing as it lays down the basic foundation for various stages of the SDLC. A typical Requirement Analysis process should identify testable requirements through frequent interactions with various stakeholders (Client, Business Analyst Technical Leads, etc.). The intent is to brainstorm and clarify any ambiguous requirements before getting to the next phase and to precisely define the Automation needs for the project.</p><p>— Requirements Gathering Steps:</p><p><strong>Step 1: Understand Pain Behind The Requirement</strong></p><p>Before building a digital solution for a business challenge, developers should understand the analog process in intimate detail. The developer should also understand the challenges the business faces without such a feature.</p><p><strong>Step 2: Eliminate Language Ambiguity</strong></p><p>The client could be using the phrase “login form” to describe complex functionality, such as charging users a subscription fee for premium content. While Step 1 should help alleviate a potential gap in understanding, one technique for clarification while gathering the requirements.</p><p><strong>Step 3: Identify Corner Cases</strong></p><p>Developers need time to consider the impact of the new ideas on the rest of the system. Corner cases are rare circumstances in which a feature may not work as expected and may be difficult. It’s essential to build in time to discuss the requirement in detail to identify and separate corner cases into additional features.</p><p><strong>Step 4: Write User Stories</strong></p><p>When it comes to things such as requirements gathering techniques, work with the team to document and save it into your project management system.</p><p><strong>Step 5: Create a Definition Of “Done”</strong></p><p>Outline the steps which will demonstrate to both the developer and the client that the requirement has been met to the client’s satisfaction. If the requirements aren’t tested at regular intervals, both parties may be in an unpleasant surprise when the project is delivered.</p><p><strong>Types of software testing:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*S1n8nEYNeBWgDjum.png" /></figure><p>1. White Box Testing: Testing performed based on knowledge of the internal program design and code.</p><p>2. Black Box Testing: Testing performed based on requirements and functionalities.</p><p>3. Grey Box Testing: Grey Box Testing is a software testing method, which is a combination of both White Box Testing and</p><p>Black Box Testing method.</p><p>1. Functional Testing: Type of Black Box Testing performed to verify and validate the application against the given</p><p>requirements.</p><p>1. Unit Testing: Type of testing performed by developers to test individual unit/components of a software.</p><p>2. Integration Testing: Type of testing to test integration between different modules of an application.</p><p>3. System Testing: Type of testing to test the entire system as per the requirements.</p><p>2. Non Functional Testing: Type of Black Box Testing performed to test the performance, load and reliability.</p><p>1. Performance Testing: Type of testing performed to test response time, stability and stress.</p><p>2. Load Testing: Testing the application under a range of load to determine the threshold point where the system response</p><p>time deviates or fails from normal behaviour.</p><p>3. Stress Testing: Testing the application with abnormal situations.</p><p>4. Compatibility Testing: Testing the behaviour of an application on different hardware/OS/Software</p><p>5. Scalability Testing: Type of Performance testing, where we test the flexibility of the application to scale up in proportion to</p><p>the increasing demand of the user workload.</p><p>6. Stability Testing: Type of Non Functional testing performed to measure the quality and efficiency of a software application.</p><p>7. Usability Testing: Is also known as User Experience(UX) Testing and it is a method of measuring how easy is the</p><p>application to use</p><p>8. Regression Testing: Testing is performed when there is a code change in the application.</p><p>9. Smoke Testing: High-level testing is performed after the build and before the release.</p><p>10. Sanity Testing: Testing is performed to test if the build is working fine after the code change.</p><p><strong>7 Principles of Software Testing:</strong></p><ol><li>Testing shows the presence of defects</li><li>Exhaustive testing is not possible</li><li>Early testing</li><li>Defect clustering</li><li>Pesticide paradox</li><li>Testing is context dependent</li><li>Absence of errors fallacy</li></ol><p><strong>1) Exhaustive testing is not possible</strong></p><p>Exhaustive testing is not possible. Instead, we need the optimal amount of testing based on the risk assessment of the application.</p><p><strong>2) Defect Clustering</strong></p><p>Defect Clustering states that a small number of modules contain most of the defects detected. This is the application of the Pareto Principle to software testing: approximately 80% of the problems are found in 20% of the modules. By experience, we can identify such risky modules. But this approach has its own problems. If the same tests are repeated over and over again, eventually the same test cases will no longer find new bugs.</p><p><strong>3) Pesticide Paradox</strong></p><p>Repetitive use of the same pesticide mix to eradicate insects during farming will over time lead to the insects developing resistance to the pesticide . Thereby ineffective pesticides on insects. The same applies to software testing. If the same set of repetitive tests is conducted, the method will be useless for discovering new defects. To overcome this, the test cases need to be regularly reviewed &amp; revised, adding new &amp; different test cases to help find more defects. Testers cannot simply depend on existing test techniques. He must look out continually to improve the existing methods to make testing more effective.</p><p><strong>4) Testing shows a presence of defects</strong></p><p>Hence, testing principle states that , Testing talks about the presence of defects and don’t talk about the absence of defects. i.e. Software Testing reduces the probability of undiscovered defects remaining in the software but even if no defects are found, it is not a proof of correctness. But what if, you work extra hard, taking all precautions &amp; make your software product 99% bug-free. And the software does not meet the needs &amp; requirements of the clients. This leads us to our next principle, which states that- Absence of Error</p><p><strong>5) Absence of Error — fallacy</strong></p><p>It is possible that software which is 99% bug-free is still unusable. This can be the case if the system is tested thoroughly for the wrong requirement. Software testing is not mere finding defects, but also to check that software addresses the business needs. The absence of Error is a Fallacy i.e. Finding and fixing defects does not help if the system build is unusable and does not fulfill the user’s needs &amp; requirements. To solve this problem, the next principle of testing states that Early Testing</p><p><strong>6) Early Testing</strong></p><p>Early Testing — Testing should start as early as possible in the Software Development Life Cycle. So that any defects in the requirements or design phase are captured in early stages. It is much cheaper to fix a Defect in the early stages of testing. But how early one should start testing? It is recommended that you start finding the bug the moment the requirements are defined.</p><p><strong>7) Testing is context dependent</strong></p><p>Testing is context dependent which basically means that the way by testing an e-commerce site will be different from the way testing a commercial off-the-shelf application. All the developed software’s are not identical. So one might use a different approach, methodologies, techniques, and types of testing depending upon the application type. For instance testing, any POS system at a retail store will be different than testing an ATM machine.</p><p><strong>Software Testing Life Cycle (STLC):</strong></p><p>Software Testing Life Cycle (STLC)<strong> </strong>is a sequence of specific activities conducted during the testing process to ensure software quality goals are met. STLC involves both verification and validation activities.</p><p>STLC Model Phases</p><ol><li>Requirement Analysis</li><li>Test Planning</li><li>Test case development</li><li>Test Environment setup</li><li>Test Execution</li><li>Test Cycle closure</li></ol><p><strong>1)Requirement Phase Testing</strong> also known as Requirement Analysis in which test team studies the requirements from a testing point of view to identify testable requirements and the QA team may interact with various stakeholders to understand requirements in detail. Requirements could be either functional or non-functional. Automation feasibility for the testing project is also done in this stage.</p><p><strong>Activities in Requirement Phase Testing</strong></p><ul><li>Identify types of tests to be performed.</li><li>Gather details about testing priorities and focus.</li><li>Prepare the Requirement traceability matrix.</li><li>Identify test environment details where testing is supposed to be carried out.</li><li>Automation feasibility analysis (if required).</li></ul><p><strong>2) Test Planning in STLC</strong> is a phase in which a Senior QA manager determines the test plan strategy along with efforts and cost estimates for the project. Moreover, the resources, test environment, test limitations, and testing schedule are also determined. The Test Plan gets prepared and finalized in the same phase.</p><p><strong>Test Planning Activities</strong></p><ul><li>Preparation of test plan/strategy document for various types of testing</li><li>Test tool selection</li><li>Test effort estimation</li><li>Resource planning and determining roles and responsibilities.</li><li>Training requirement</li></ul><p>4) <strong>Test Case Development Phase</strong> involves the creation, verification and rework of test cases &amp; test scripts after the test plan is ready. Initially, the Test data is identified then created and reviewed and then reworked based on the preconditions. Then the QA team starts the development process of test cases for individual units.</p><p><strong>Test Case Development Activities</strong></p><ul><li>Create test cases, automation scripts (if applicable)</li><li>Review and baseline test cases and scripts</li><li>Create test data (If Test Environment is available)</li></ul><p><strong>5) Test Environment Setup</strong> decides the software and hardware conditions under which a work product is tested. It is one of the critical aspects of the testing process and can be done in parallel with the Test Case Development Phase. Test team may not be involved in this activity if the development team provides the test environment. The test team is required to do a readiness check (smoke testing) of the given environment.</p><p><strong>Test Environment Setup Activities</strong></p><ul><li>Understand the required architecture, environment set-up and prepare hardware and software requirement list for the Test Environment.</li><li>Setup test Environment and test data</li><li>Perform smoke test on the build</li></ul><p><strong>6) Test Execution Phase</strong> is carried out by the testers in which testing of the software build is done based on test plans and test cases prepared. The process consists of test script execution, test script maintenance, and bug reporting. If bugs are reported then it is reverted back to the development team for correction and retesting will be performed.</p><p><strong>Test Execution Activities</strong></p><ul><li>Execute tests as per plan</li><li>Document test results, and log defects for failed cases</li><li>Map defects to test cases in RTM</li><li>Retest the defect fixes</li><li>Track the defects to closure</li></ul><p><strong>7) Test Cycle Closure</strong> phase isthe completion of test execution which involves several activities like test completion reporting, collection of test completion matrices and test results. Testing team members meet, discuss and analyze testing artifacts to identify strategies that have to be implemented in future, taking lessons fromthe current test cycle. The idea is to remove process bottlenecks for future test cycles.</p><p><strong>Test Cycle Closure Activities</strong></p><ul><li>Evaluate cycle completion criteria based on Time, Test coverage, Cost,Software, Critical Business Objectives, Quality</li><li>Prepare test metrics based on the above parameters.</li><li>Document the learning out of the project</li><li>Prepare Test closure report</li><li>Qualitative and quantitative reporting of quality of the work product to the customer.</li><li>Test result analysis to find out the defect distribution by type and severity.</li></ul><p><strong>Manual Testing:</strong></p><p>In is a type of software testing in which test cases are executed manually by a tester without using any automated tools. The purpose of Manual Testing is to identify the bugs, issues, and defects in the software application. Manual software testing is the most primitive technique of all testing types and it helps to find critical bugs in the software application.</p><p><strong>Automation Testing:</strong></p><p>In is a software testing technique that performs using special automated testing software tools to execute a test case suite. On the contrary, Manual Testing is performed by a human sitting in front of a computer carefully executing the test steps.</p><p>The automation testing software can also enter test data into the System Under Test, compare expected and actual results and generate detailed test reports. Software Test Automation demands considerable investments of money and resources.</p><p>Successive development cycles will require execution of same test suite repeatedly. Using a test automation tool, it’s possible to record this test suite and replay it as required. Once the test suite is automated, no human intervention is required. This improved ROI of Test Automation.</p><p><strong>Black box Software Testing Technique:</strong></p><p>Software Testing Techniques help you design better test cases. Since exhaustive testing is not possible; Manual Testing Techniques help reduce the number of test cases to be executed while increasing test coverage. They help identify test conditions that are otherwise difficult to recognize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*NwuxVA2djONAFC-b.png" /></figure><p>Black box testing techniques</p><p><strong>Boundary Value Analysis (BVA):</strong></p><p>Boundary value analysis is based on testing at the boundaries between partitions. It includes maximum, minimum, inside or outside boundaries, typical values and error values.</p><p>It is generally seen that a large number of errors occur at the boundaries of the defined input values rather than the center. It is also known as BVA and gives a selection of test cases which exercise bounding values.</p><p>This black box testing technique complements equivalence partitioning. This software testing technique is base on the principle that, if a system works well for these particular values then it will work perfectly well for all values which comes between the two boundary values.</p><p><strong>Guidelines for Boundary Value analysis</strong></p><ul><li>If an input condition is restricted between values x and y, then the test cases should be designed with values x and y as well as values which are above and below x and y.</li><li>If an input condition is a large number of values, the test case should be developed which need to exercise the minimum and maximum numbers. Here, values above and below the minimum and maximum values are also tested.</li><li>Apply guidelines 1 and 2 to output conditions. It gives an output which reflects the minimum and the maximum values expected. It also tests the below or above values.</li></ul><p><strong>Equivalence Class Partitioning:</strong></p><p>Equivalent Class Partitioning allows you to dividea set of test condition into a partition which should be considered the same. This software testing method divides the input domain of a program into classes of data from which test cases should be designed.</p><p>The concept behind this Test Case Design Technique is thatthe test case of a representative value of each class is equal to a test of any other value of the same class. It allows you to Identify valid as well as invalid equivalence classes.</p><p><strong>Decision Table based on testing:</strong></p><p>A decision table is also known as to Cause-Effect table. This software testing technique is used for functions which respond to a combination of inputs or events. For example, a submit button should be enabled if the user has entered all required fields.</p><p>The first task is to identify functionalities where the output depends on a combination of inputs. If there are large input set of combinations, then divide it into smaller subsets which are helpful for managing a decision table.</p><p>For every function, you need to create a table and list down all types of combinations of inputs and its respective outputs. This helps to identify a condition that is overlooked by the tester.</p><p><strong>State Transition:</strong></p><p>In State Transition technique changes in input conditions change the state of the Application Under Test (AUT). This testing technique allows the tester to test the behavior of an AUT. The tester can perform this action by entering various input conditions in a sequence. In State transition technique, the testing team provides positive as well as negative input test values for evaluating the system behavior.</p><p><strong>Guideline for State Transition:</strong></p><ul><li>State transition should be used when a testing team is testing the application for a limited set of input values.</li><li>The Test Case Design Technique should be used when the testing team wants to testthe sequence of events which happen in the application under test.</li></ul><p><strong>Error Guessing:</strong></p><p>Error Guessing is a software testing technique based on guessing the error which can prevail in the code. The technique is heavily based on the experience where the test analysts use their experience to guess the problematic part of the testing application. Hence, the test analysts must be skilled and experienced for better error guessing.</p><p>The technique counts a list of possible errors or error-prone situations. Then tester writes a test case to expose those errors. To design test cases based on this software testing technique, the analyst can use past experiences to identify the conditions.</p><p><strong>Guidelines for Error Guessing:</strong></p><ul><li>The test should use the previous experience of testing similar applications</li><li>Understanding of the system under test</li><li>Knowledge of typical implementation errors</li><li>Remember previously troubled areas</li><li>Evaluate Historical data &amp; Test results</li></ul><p>T<strong>est Plan:</strong></p><p>A <strong>Test Plan</strong> is a detailed document that describes the test strategy, objectives, schedule, estimation, deliverables, and resources required to perform testing for a software product. Test Plan helps us determine the effort needed to validate the quality of the application under test. The test plan serves as a blueprint to conduct software testing activities as a defined process, which is minutely monitored and controlled by the test manager.</p><h3>What is the Importance of a Test Plan?</h3><p>Making a Test Plan document has multiple benefits</p><ul><li>Help people outside the test team such as developers, business managers, and customers <strong>understand</strong> the details of testing.</li><li>Test Plan <strong>guides</strong> our thinking. It is like a rule book, which needs to be followed.</li><li>Important aspects like test estimation, test scope, and test strategy are <strong>documented</strong> in Test Plan, so they can be reviewed by Management Team and re-used for other projects.</li></ul><h3>How to write a Test Plan</h3><p>You already know that making a <strong>Test Plan</strong> is the most important task of Test Management Process. Follow the seven steps below to create a test plan as per IEEE 829</p><ol><li>Objectives</li><li>Scope</li></ol><p>2.1 feature to be tested</p><p>2.2 feature not to be tested</p><p>3. Testing methodology</p><p>4. Approach</p><p>5. Assumption</p><p>6. Risk</p><p>7. Back up/mitigation</p><p>8. Roles and responsibilities</p><p>9. Scheduling</p><p>10. Defect tracking</p><p>11. Test environment</p><p>12. Entry/exit criteria</p><p>12.1. Entry criteria</p><p>12.2. Exit criteria</p><p>13. Test automation</p><p>14. Deliverables</p><p>15. Templets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*B9HnwZ3tTyRaIUzX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/0*5Hb5osHyQJLUC6Qr.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*-0c-pHEnUt6-Bve0.png" /></figure><h3>Requirements Traceability Matrix (RTM):</h3><p>A Traceability Matrix is a document that co-relates any two-baseline documents that require a many-to-many relationship to check the completeness of the relationship.</p><p><strong>Requirement Traceability Matrix (RTM)</strong> is a document that maps and traces user requirement with test cases. It captures all requirements proposed by the client and requirement traceability in a single document, delivered at the conclusion of the Software developement life cycle. The main purpose of Requirement Traceability Matrix is to validate that all requirements are checked via test cases such that no functionality is unchecked during Software testing.</p><h3>Which Parameters to include in Requirement Traceability Matrix?</h3><ul><li>Requirement ID</li><li>Requirement Type and Description</li><li>Test Cases with Status</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/0*i3Exp_83bFSh_PSb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*RJZlDOKIqA7A7PUf.png" /></figure><p>RTM</p><h3>Types of Traceability Test Matrix</h3><p>In Software Engineering, traceability matrix can be divided into three major component as mentioned below:</p><ul><li><strong>Forward traceability</strong>: This matrix is used to check whether the project progresses in the desired direction and for the right product. It makes sure that each requirement is applied to the product and that each requirement is tested thoroughly. It maps requirements to test cases.</li><li><strong>Backward or reverse traceability:</strong> It is used to ensure whether the current product remains on the right track. The purpose behind this type of traceability is to verify that we are not expanding the scope of the project by adding code, design elements, test or other work that is not specified in the requirements. It maps test cases to requirements.</li><li><strong>Bi-directional traceability ( Forward+Backward): </strong>This traceability matrix ensures that all requirements are covered by test cases. It analyzes the impact of a change in requirements affected by the<a href="https://www.guru99.com/defect-management-process.html"> Defect </a>in a work product and vice versa.</li></ul><h3>Advantage of Requirement Traceability Matrix</h3><ul><li>It confirms 100% test coverage</li><li>It highlights any requirements missing or document inconsistencies</li><li>It shows the overall defects or execution status with a focus on business requirements</li><li>It helps in analyzing or estimating the impact on the QA team’s work with respect to revisiting or re-working on the test cases</li></ul><h3>Defect in Software Testing:</h3><p>A <strong>Defect in Software Testing</strong> is a variation or deviation of the software application from the end user’s requirements or original business requirements.</p><p>A software defect is an error in coding which causes incorrect or unexpected results from a software program that does not meet actual requirements.</p><h3>Bug Report in Software Testing</h3><p>A <strong>Bug Report in Software Testing</strong> is a detailed document about bugs found in the software application. Bug report contains each detail about bugs like description, date when bug was found, name of tester who found it, name of developer who fixed it, etc. Bug report helps to identify similar bugs in future so it can be avoided.</p><p>While reporting the bug to developer, your Bug Report should contain the following information</p><ul><li><strong>Defect_ID</strong> — Unique identification number for the defect.</li><li><strong>Defect Description</strong> — Detailed description of the Defect including information about the module in which Defect was found.</li><li><strong>Version</strong> — Version of the application in which defect was found.</li><li><strong>Steps</strong> — 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>– where in you Provide reference to the documents like . requirements, design, architecture or maybe even screenshots of the error to help understand the defect</li><li><strong>Detected By</strong> — 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. Severity Priority could be High/Medium/Low based on the impact urgency at which the defect should be fixed respectively.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/0*8oIUHBqsc6ymP1jN.png" /></figure><p><strong>Jira:</strong></p><p>— JIRA is a tool developed by the Australian Company Atlassian. This software is used for bug tracking, issue tracking, and project management.</p><p>— The JIRA full form is actually inherited from the Japanese word “Gojira” which means “Godzilla”. The basic use of this tool is to track issue and bugs related to your software and Mobile apps.</p><p>— It is also used for project management. The JIRA dashboard consists of many useful functions and features which make handling issues easy.</p><p><strong>Jira software can be used for the following purposes:</strong></p><ul><li>Requirements and Test case management</li><li>In Agile Methodology</li><li>Project Management</li><li>Software Development</li><li>Product Management</li><li>Task Management</li><li>Bug Tracking</li></ul><p>— We can use Jira in an easy way. Here is a step-by-step process on how to use Jira software:</p><p><strong>Step 1)</strong> Open Jira software and navigate to the Jira Home icon</p><p><strong>Step 2)</strong> Select Create project option</p><p><strong>Step 3)</strong> Choose a template from the library</p><p><strong>Step 4)</strong> Set up the columns as per your need from the Board settings</p><p><strong>Step 5)</strong> Create an issue</p><p><strong>Step 6)</strong> Invite your Team members and start working</p><p><strong>JIRA Issue: </strong>JIRA issue is nothing but a task. It would track bug or issue that underlies the project. Once we have imported the project then we can create issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*4nTV84NLTT0ROE1S.png" /></figure><p>Image of creating issue in a project</p><p><strong>Story: </strong>It is a user story.<strong> </strong>A user story general explanation of a software feature written from the perspective of the end user. Its purpose is to articulate how a software feature will provide value to the customer. These stories use non-technical language to provide context for the development team and their efforts. After reading a user story, the team knows why they are building, what they’re building, and what value it creates.</p><p><strong>Story Points: </strong>Story points are units of measure for expressing an estimate of the overall effort required to fully implement a product backlog item or any other piece of work. Teams assign story points relative to work complexity, the amount of work, and risk or uncertainty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6mKTRlCsXTDwiHyh.png" /></figure><p>Jira issue image</p><p><strong>Scrum in Jira: </strong>The scrum framework enables software teams to manage complex projects by creating a culture of collaboration. The Jira scrum board is the tool that unites teams around a single goal and promotes iterative, incremental delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*pYQFnfCpsUe1wg-9.png" /></figure><p>Story is tested</p><p><strong>JIRA Scrum vs. JIRA Kanban:</strong></p><p>— Scrum Reports: The Burndown chart shows all the changes and scope changed while the sprint is still on, other charts include Sprint Report, Velocity Chart, Epic Report, etc.</p><p>— Scrum Agile Board: It allows the team to see the progress of sprints. This is the work mode, where you can see the board itself broken down into different statuses.</p><p>— Scrum backlog: This is where team will plan sprints and estimate stories that will go into each sprint.</p><p>— Kunban reports: The Control chart allows you to measure the cycle time for issues, showing the meantime and actual time taken to complete issues.</p><p>— Kanban constraints: Team can decide whether to increase or decrease the number of issues that should be displayed in each status.</p><p>— Kanban workflow: You can map columns to the statuses of your workflow. Simply by adding or removing columns the workflow can be changed when required.</p><p>In this section we started from creating test type issues for our test cases, then executed them and updated in our RTM format and finally we detected and raised the issues as type of “BUG” and updated same after the execution of test cases. A series of progress from the session is attached below-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*W3Sv2dAGC5RCFJb1.png" /></figure><p>Gmail sprint</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*4KjSJ55FANtkrpUG.png" /></figure><p>User story, test case and bug</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*4mFVCTCAfCZK6NqG.png" /></figure><p>Login test case steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*3aAtsAFtMKzEx8gh.png" /></figure><p>Reporting bug to developer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*nO6mNOF9mlEP3oDl.png" /></figure><p>Executing test cases</p><p><strong>Jira execution on the luma website(manual testing):</strong></p><p>Here luma website is manually tested using Jira tool.</p><p><strong>Issues</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*sVOaVX1CmqIw3KFL.png" /></figure><p>In this all the test cases are present</p><p><strong>Backlog — Luma sprint 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*0xUW1MHEGBaDIcXr.png" /></figure><p>In this backlog, Luma sprint 1 is present and there are 5 user story and their related test cases.</p><p><strong>Backlog — Luma sprint 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*dzzeeG_CFvKxRqRT.png" /></figure><p>In this backlog, Luma sprint 2 is present and there are 6 user story and their related test cases.</p><p><strong>Active sprint</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*XyUiSQQheLdA2xYJ.png" /></figure><p>Here active sprint is present.</p><p><strong>Test cases</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*ZoI0H2ySqkDKlHB3.png" /></figure><p>Here in this all the test cases are present.</p><p>Luma test cycle 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*TS9bjHihM44B_NY8.png" /></figure><p>In this luma test cycle 1 we can see the 5 user stories’ test cases and by manually executing every test case we can pass or fail the test cases.</p><p><strong>Luma test cycle 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Fr3dinKZjd-DZhVv.png" /></figure><p>In this luma test cycle 2, we can see the 6 user stories’ test cases and by manually executing every test case we can pass or fail the test cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9d3dd432e3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JAVA Basics and OOPS concepts]]></title>
            <link>https://medium.com/@sourabhadixit2000/java-basics-and-oops-concepts-1d9c7ba8c5e9?source=rss-9152ebf7e6ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d9c7ba8c5e9</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Sourabhadixit]]></dc:creator>
            <pubDate>Tue, 27 Sep 2022 04:25:08 GMT</pubDate>
            <atom:updated>2022-09-27T04:47:43.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Refer to the below link to know more about my journey:</p><p><a href="https://medium.com/@sourabhadixit2000/entering-the-online-technical-training-f29b1ef9d73f">My journey to the corporate world</a></p><p>To know about software testing , manual testing and the Jira tool, click on the below link:</p><p><a href="https://medium.com/@sourabhadixit2000/software-testing-manual-testing-e9d3dd432e3e">Software Testing(Manual Testing)</a></p><p>To know about automation testing with the selenium tool, click the below link:</p><p><a href="https://medium.com/@sourabhadixit2000/automation-testing-ed30930f2e49">Automation Testing</a></p><p><strong>Java:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*d85VmP2efktaVI4o.jpeg" /></figure><p>Java is a popular programming language, created in 1995.</p><p>It is used for:</p><ul><li>Mobile applications (especially Android apps)</li><li>Desktop applications</li><li>Web applications</li><li>Web servers and application servers</li><li>Games</li><li>Database connection</li><li>And much, much more</li></ul><p>The main() method is required and you will see it in every Java program:</p><pre>public static void <strong>main</strong>(String[] args)</pre><h3>Java Variables</h3><p>Variables are containers for storing data values.</p><p>In Java, there are different <strong>types</strong> of variables, for example:</p><ul><li>String - stores text, such as &quot;Hello&quot;. String values are surrounded by double quotes</li><li>int - stores integers (whole numbers), without decimals, such as 123 or -123</li><li>float - stores floating point numbers, with decimals, such as 19.99 or -19.99</li><li>char - stores single characters, such as &#39;a&#39; or &#39;B&#39;. Char values are surrounded by single quotes</li><li>boolean - stores values with two states: true or false</li></ul><h3>Declaring (Creating) Variables:</h3><p>Where <em>type</em> is one of Java’s types (such as int or String), and <em>variableName</em> is the name of the variable (such as <strong>x</strong> or <strong>name</strong>). The <strong>equal sign</strong> is used to assign values to the variable.</p><h3>Display Variables</h3><p>The println() method is often used to display variables.</p><p>To combine both text and a variable, use the + character:</p><pre>String name = &quot;John&quot;;<br>System.out.println(&quot;Hello &quot; + name);</pre><p><strong>To ADD two double variables.</strong></p><p>package javabasics;</p><p>public class AddDouble {</p><p>public static void main(String[] args) {</p><p>double a = 2.3, b = 4.6;</p><p>double sum = a+b;</p><p>System.out.println(“Sum of two double values = “+sum);</p><p>}</p><p>}</p><h3>Java Data Types:</h3><pre>int myNum = 5;               // Integer (whole number)<br>float myFloatNum = 5.99f;    // Floating point number<br>char myLetter = &#39;D&#39;;         // Character<br>boolean myBool = true;       // Boolean<br>String myText = &quot;Hello&quot;;     // String</pre><p>Data types are divided into two groups:</p><ul><li>Primitive data types — includes byte, short, int, long, float, double, boolean and char</li><li>Non-primitive data types — such as <a href="https://www.w3schools.com/java/java_strings.asp">String</a>, <a href="https://www.w3schools.com/java/java_arrays.asp">Arrays</a> and <a href="https://www.w3schools.com/java/java_classes.asp">Classes</a> (you will learn more about these in a later chapter)</li></ul><h3>Java If … Else:</h3><p>Java supports the usual logical conditions from mathematics:</p><ul><li>Less than: a &lt; b</li><li>Less than or equal to: a &lt;= b</li><li>Greater than: a &gt; b</li><li>Greater than or equal to: a &gt;= b</li><li>Equal to a == b</li><li>Not Equal to: a != b</li></ul><p>You can use these conditions to perform different actions for different decisions.</p><p>Java has the following conditional statements:</p><ul><li>Use if to specify a block of code to be executed, if a specified condition is true</li><li>Use else to specify a block of code to be executed, if the same condition is false</li><li>Use else if to specify a new condition to test, if the first condition is false</li><li>Use switch to specify many alternative blocks of code to be executed</li></ul><h3>The if Statement</h3><p>Use the if statement to specify a block of Java code to be executed if a condition is true.</p><pre>if (20 &gt; 18) {<br>  System.out.println(&quot;20 is greater than 18&quot;);<br>}</pre><h3>Java Short Hand If…Else:</h3><pre>int time = 20;<br>if (time &lt; 18) {<br>  System.out.println(&quot;Good day.&quot;);<br>} else {<br>  System.out.println(&quot;Good evening.&quot;);<br>}</pre><p><strong>Program to print even numbers:</strong></p><p>package javabasics;</p><p>public class OddEven {</p><p>public static void main(String[] args) {</p><p>int a=8;</p><p>if(a%2==0) {</p><p>System.out.println(“Number is even”);</p><p>}</p><p>else</p><p>System.out.println(“Number is odd”);</p><p>}</p><p>}</p><h3>Java Switch Statements</h3><p>Use the switch statement to select one of many code blocks to be executed.</p><p>Syntax:</p><pre>switch(<em>expression</em>) {<br>  case x:<br>    <em>// code block</em><br>    break;<br>  case y:<br>    <em>// code block</em><br>    break;<br>  default:<br>    <em>// code block</em><br>}</pre><p>This is how it works:</p><ul><li>The switch expression is evaluated once.</li><li>The value of the expression is compared with the values of each case.</li><li>If there is a match, the associated block of code is executed.</li><li>The break and default keywords are optional</li></ul><pre>int day = 4;<br>switch (day) {<br>  case 1:<br>    System.out.println(&quot;Monday&quot;);<br>    break;<br>  case 2:<br>    System.out.println(&quot;Tuesday&quot;);<br>    break;<br>  case 3:<br>    System.out.println(&quot;Wednesday&quot;);<br>    break;<br>  case 4:<br>    System.out.println(&quot;Thursday&quot;);<br>    break;<br>  case 5:<br>    System.out.println(&quot;Friday&quot;);<br>    break;<br>  case 6:<br>    System.out.println(&quot;Saturday&quot;);<br>    break;<br>  case 7:<br>    System.out.println(&quot;Sunday&quot;);<br>    break;<br>}<br>// Outputs &quot;Thursday&quot; (day 4)</pre><h3>Java While Loop:</h3><p>Syntax:</p><pre>while (<em>condition</em>) {<br><em>  // code block to be executed</em><br>}</pre><p>In the example below, the code in the loop will run, over and over again, as long as a variable (i) is less than 5:</p><pre>int i = 0;<br>while (i &lt; 5) {<br>  System.out.println(i);<br>  i++;<br>}</pre><p>Program to print factorial of a number:</p><p>package javabasics;</p><p>public class Factorial {</p><p>public static void main(String[] args) {</p><p>int i=1, fact = 1;</p><p>int num = 4;</p><p>while(i&lt;=num) {</p><p>fact = fact * i;</p><p>i++;</p><p>}</p><p>System.out.println(“Factorial of “+num+” is “+fact);</p><p>}</p><p>}</p><h3>Java For Loop:</h3><p>Syntax:</p><pre>for (<em>statement 1</em>;<em> statement 2</em>;<em> statement 3</em>) {<br>  <em>// code block to be executed</em><br>}</pre><p><strong>Statement 1</strong> is executed (one time) before the execution of the code block.</p><p><strong>Statement 2</strong> defines the condition for executing the code block.</p><p><strong>Statement 3</strong> is executed (every time) after the code block has been executed.</p><p>The example below will print the numbers 0 to 4:</p><pre>for (int i = 0; i &lt; 5; i++) {<br>  System.out.println(i);<br>}</pre><p>Program to reverse a string:</p><p>package javabasics;</p><p>public class ReverseString {</p><p>public static void main(String[] args) {</p><p>String str =”Sourabha”;</p><p>System.out.println(“Original String:”+str);</p><p>for(int i=str.length();i&gt;0;i — ) {</p><p>char ch = str.charAt(i-1);</p><p>System.out.print(“”+ch);</p><p>}</p><p>}</p><p>}</p><h3>Java Arrays:</h3><p>Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.</p><p>To declare an array, define the variable type with <strong>square brackets</strong>:</p><pre>String[] cars;</pre><p>We have now declared a variable that holds an array of strings. To insert values to it, you can place the values in a comma-separated list, inside curly braces:</p><pre>String[] cars = {&quot;Volvo&quot;, &quot;BMW&quot;, &quot;Ford&quot;, &quot;Mazda&quot;};</pre><p>To create an array of integers, you could write:</p><pre>int[] myNum = {10, 20, 30, 40};</pre><p>Example:</p><p>Printing the number in descending order:</p><p>package javabasics;</p><p>public class ArrayDes {</p><p>public static void main(String[] args) {</p><p>int [] arr = new int [] {5, 2, 8, 7, 1};</p><p>int temp = 0;</p><p>System.out.println(“Original elements : “);</p><p>for (int i = 0; i &lt; arr.length; i++) {</p><p>System.out.print(arr[i] + “ “);</p><p>}</p><p>for (int i = 0; i &lt; arr.length; i++) {</p><p>for (int j = i+1; j &lt; arr.length; j++) {</p><p>if(arr[i] &lt; arr[j]) {</p><p>temp = arr[i];</p><p>arr[i] = arr[j];</p><p>arr[j] = temp;</p><p>}</p><p>}</p><p>}</p><p>System.out.println(“\nElements of array sorted in descending order: “);</p><p>for (int i = 0; i &lt; arr.length; i++) {</p><p>System.out.print(arr[i] + “ “);</p><p>}</p><p>}</p><p>}</p><h3>Java Methods:</h3><p>A <strong>method</strong> is a block of code which only runs when it is called.</p><p>You can pass data, known as parameters, into a method.</p><p>Methods are used to perform certain actions, and they are also known as <strong>functions</strong>.</p><p>A method must be declared within a class. It is defined with the name of the method, followed by parentheses ()<strong>.</strong></p><h3>Example</h3><p>Create a method inside Main:</p><pre>public class Main {<br>  static void myMethod() {<br>    // code to be executed<br>  }<br>}</pre><h3>Call a Method</h3><p>To call a method in Java, write the method’s name followed by two parentheses <strong>()</strong> and a semicolon<strong>;</strong></p><p>Example:</p><p>Program to perform add, subtract , division and multiplication:</p><p>package javabasics;</p><p>public class Fuctions {</p><p>public static void main(String[] args) {</p><p>Fuctions obj = new Fuctions();</p><p>int total_sum= obj.add(10,20);</p><p>int total_difference = obj.sub(20,10);</p><p>System.out.println(“sum = “+total_sum+”, Difference = “+total_difference);</p><p>obj.div(7,2);</p><p>obj.mul(4,5);</p><p>}</p><p>int add(int a, int b) {</p><p>return(a+b);</p><p>}</p><p>int sub(int x, int y) {</p><p>return(x-y);</p><p>}</p><p>void div(int p, int q) {</p><p>int division = (p/q);</p><p>System.out.println(“Division = “+division);</p><p>}</p><p>void mul(int t, int s) {</p><p>int multi = t*s;</p><p>System.out.println(“Multiplication = “+multi);</p><p>}</p><p>}</p><p>J<strong>ava OOPs Concepts:</strong></p><p>OOP stands for <strong>Object-Oriented Programming</strong>.</p><p>Procedural programming is about writing procedures or methods that perform operations on the data, while object-oriented programming is about creating objects that contain both data and methods.</p><p>Object-oriented programming has several advantages over procedural programming:</p><ul><li>OOP is faster and easier to execute</li><li>OOP provides a clear structure for the programs</li><li>OOP helps to keep the Java code DRY “Don’t Repeat Yourself”, and makes the code easier to maintain, modify and debug</li><li>OOP makes it possible to create full reusable applications with less code and shorter development time</li></ul><h3>Java Classes/Objects</h3><p>Java is an object-oriented programming language.</p><p>Everything in Java is associated with classes and objects, along with its attributes and methods. For example: in real life, a car is an object. The car has <strong>attributes</strong>, such as weight and color, and <strong>methods</strong>, such as drive and brake.</p><p>A Class is like an object constructor, or a “blueprint” for creating objects.</p><h3>Constructors in Java:</h3><p>In <a href="https://www.javatpoint.com/java-tutorial">Java</a>, a constructor is a block of codes similar to the method. It is called when an instance of the <a href="https://www.javatpoint.com/object-and-class-in-java">class</a> is created. At the time of calling constructor, memory for the object is allocated in the memory.</p><p>It is a special type of method which is used to initialize the obj.</p><p>package javaoopsconcepts;</p><p>public class EmployeeConstructor {</p><p>String empname;</p><p>int empid;</p><p>long empsalary;</p><p>String empdesig;</p><p>public static void main(String[] args) {</p><p>EmployeeConstructor emp1 = new EmployeeConstructor(“Sanvi”,1, 800000,”Associate”);</p><p>emp1.display();</p><p>EmployeeConstructor emp2 = new EmployeeConstructor(“Sathvik”,2, 500000,”Trainee”);</p><p>emp2.display();</p><p>EmployeeConstructor emp3 = new EmployeeConstructor(“Hemanth”,3, 600000,”Associate”);</p><p>emp3.display();</p><p>}</p><p>//Constructor</p><p>EmployeeConstructor(String empname_temp, int empid_temp, int empsalary_temp, String empdesig_temp) {</p><p>empname = empname_temp;</p><p>empid = empid_temp;</p><p>empsalary = empsalary_temp;</p><p>empdesig = empdesig_temp;</p><p>}</p><p>void display() {</p><p>System.out.println(“Employee name : “+empname);</p><p>System.out.println(“Employee ID : “+empid);</p><p>System.out.println(“Employee salary : “+empsalary);</p><p>System.out.println(“Employee designation : “+empdesig);</p><p>}</p><p>}</p><h3>Java Modifiers:</h3><p>The public keyword is an <strong>access modifier</strong>, meaning that it is used to set the access level for classes, attributes, methods and constructors.</p><p>We divide modifiers into two groups:</p><ul><li><strong>Access Modifiers</strong> — controls the access level</li><li><strong>Non-Access Modifiers</strong> — do not control access level, but provides other functionality</li></ul><p>Private Access specifier:</p><p>package javaoopsconcepts;</p><p>class A{</p><p>private int x=90; //Private variable</p><p>private void m1() { //Private Method</p><p>System.out.println(“This is private method &amp; belongs to Class A “);</p><p>}</p><p>void m2() {//This method acts as a default access modifier</p><p>System.out.println(“This is not private method &amp; belongs to Class A “);</p><p>}</p><p>A(){ // if we create this as private constructor it will be out of scope and object cannot be created outside this class</p><p>System.out.println(“This is private constructor”);</p><p>}</p><p>}</p><p>public class PrivateAccess {</p><p>public static void main(String[] args) {</p><p>A obj =new A();</p><p>//System.out.println(obj.x); // OUT OF SCOPE AS ITS PRIVATE</p><p>//obj.m1(); // OUT OF SCOPE AS ITS PRIVATE</p><p>obj.m2(); // WITH IN SCOPE AS ITS PRIVATE</p><p>}</p><p>}</p><p>Protected access specifier:</p><p>package javaoopsconcepts;</p><p>import pack1.*;</p><p>public class ProtectedAccess {</p><p>public static void main(String[] args) {</p><p>ProtectedAccess1 obj = new ProtectedAccess1();</p><p>int s= obj.add(90, 550);</p><p>System.out.println(“”+s);</p><p>}</p><p>}</p><h3>Java Packages:</h3><p>A package in Java is used to group related classes. Think of it as <strong>a folder in a file directory</strong>. We use packages to avoid name conflicts, and to write a better maintainable code. Packages are divided into two categories:</p><ul><li>Built-in Packages (packages from the Java API)</li><li>User-defined Packages (create your own packages)</li></ul><pre>import <em>package</em>.<em>name</em>.<em>Class</em>;   // Import a single class<br>import <em>package</em>.<em>name</em>.*;   // Import the whole package</pre><h3>Java Inheritance:</h3><p>In Java, it is possible to inherit attributes and methods from one class to another. We group the “inheritance concept” into two categories:</p><ul><li><strong>subclass</strong> (child) — the class that inherits from another class</li><li><strong>superclass</strong> (parent) — the class being inherited from</li></ul><p>To inherit from a class, use the extends keyword.</p><p>In the example below, the Car class (subclass) inherits the attributes and methods from the Vehicle class (superclass):</p><pre>class Vehicle {<br>  protected String brand = &quot;Ford&quot;;        // Vehicle attribute<br>  public void honk() {                    // Vehicle method<br>    System.out.println(&quot;Tuut, tuut!&quot;);<br>  }<br>}</pre><pre>class Car extends Vehicle {<br>  private String modelName = &quot;Mustang&quot;;    // Car attribute<br>  public static void main(String[] args) {</pre><pre>    // Create a myCar object<br>    Car myCar = new Car();</pre><pre>    // Call the honk() method (from the Vehicle class) on the myCar object<br>    myCar.honk();</pre><pre>    // Display the value of the brand attribute (from the Vehicle class) and the value of the modelName from the Car class<br>    System.out.println(myCar.brand + &quot; &quot; + myCar.modelName);<br>  }<br>}</pre><h3>The final Keyword:</h3><p>If we don’t want other classes to inherit from a class, use the final keyword:</p><pre>final class Vehicle {<br>  ...<br>}</pre><pre>class Car extends Vehicle {<br>  ...<br>}</pre><h3>Java Polymorphism:</h3><p>Polymorphism means “many forms”, and it occurs when we have many classes that are related to each other by inheritance.</p><p>Inheritance means, inherit attributes and methods from another class. <strong>Polymorphism</strong> uses those methods to perform different tasks. This allows us to perform a single action in different ways.</p><p>For example, think of a superclass called Animal that has a method called animalSound(). Subclasses of Animals could be Pigs, Cats, Dogs, Birds - And they also have their own implementation of an animal sound (the pig oinks, and the cat meows, etc.):</p><pre>class Animal {<br>  public void animalSound() {<br>    System.out.println(&quot;The animal makes a sound&quot;);<br>  }<br>}</pre><pre>class Pig extends Animal {<br>  public void animalSound() {<br>    System.out.println(&quot;The pig says: wee wee&quot;);<br>  }<br>}</pre><pre>class Dog extends Animal {<br>  public void animalSound() {<br>    System.out.println(&quot;The dog says: bow wow&quot;);<br>  }<br>}</pre><p>Program for single inheritance:</p><p>package javaoopsconcepts;</p><p>public class Inheritance {</p><p>public static void main(String[] args) {</p><p>Benificiary a = new Benificiary();</p><p>//Single inheritance</p><p>a.user();</p><p>a.addBeni();</p><p>System.out.println(“***********************”);</p><p>//Multilevel inheritance</p><p>TransferFunds user = new TransferFunds();</p><p>user.user();</p><p>user.addBeni();</p><p>user.transfer();</p><p>}</p><p>}</p><p>class Login{</p><p>void user(){</p><p>System.out.println(“User has login”);</p><p>}</p><p>}</p><p>class Benificiary extends Login{</p><p>void addBeni() {</p><p>System.out.println(“Benificiary added”);</p><p>}</p><p>}</p><p>class TransferFunds extends Benificiary{</p><p>void transfer() {</p><p>System.out.println(“Amount has been transferred to Benificiary”);</p><p>}</p><p>}</p><h3>Java Abstraction:</h3><p>Data <strong>abstraction</strong> is the process of hiding certain details and showing only essential information to the user.<br>Abstraction can be achieved with either <strong>abstract classes</strong> or <a href="https://www.w3schools.com/java/java_interface.asp"><strong>interfaces</strong></a> (which you will learn more about in the next chapter).</p><p>The abstract keyword is a non-access modifier, used for classes and methods:</p><ul><li><strong>Abstract class:</strong> is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class).</li><li><strong>Abstract method:</strong> can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).</li></ul><p>Example:</p><p>package javaoopsconcepts;</p><p>abstract class car{</p><p>abstract void run();</p><p>void gear() {</p><p>System.out.println(“Maruti car has 5 geras”);</p><p>}</p><p>}</p><p>public class MarutiAbstract extends car {</p><p>public static void main(String[] args) {</p><p>MarutiAbstract obj = new MarutiAbstract();</p><p>obj.run();</p><p>obj.gear();</p><p>}</p><p>void run() {</p><p>System.out.println(“Maruti car is running safely”);</p><p>}</p><p>}</p><h3>Java Interface:</h3><p>Another way to achieve abstraction in Java, is with interfaces.</p><p>An interface is a completely &quot;<strong>abstract class</strong>&quot; that is used to group related methods with empty bodies.</p><p>To access the interface methods, the interface must be “implemented” (kinda like inherited) by another class with the implements keyword (instead of extends). The body of the interface method is provided by the &quot;implement&quot; class</p><p>Example:</p><p>package javaoopsconcepts;</p><p>interface draw{</p><p>void pencil();</p><p>}</p><p>interface draw1{</p><p>void paint();</p><p>}</p><p>public class InterfaceDrwa implements draw, draw1 {</p><p>public static void main(String[] args) {</p><p>InterfaceDrwa obj = new InterfaceDrwa();</p><p>obj.pencil();</p><p>obj.paint();</p><p>}</p><p>public void pencil() {</p><p>System.out.println(“Drawing circle with pencil”);</p><p>}</p><p>public void paint() {</p><p>System.out.println(“Drawing and painting circle with pencil and brushes”);</p><p>}</p><p>}</p><h3>Exception Handling in Java:</h3><p>The <strong>Exception Handling in Java</strong> is one of the powerful mechanism to handle the runtime errors so that the normal flow of the application can be maintained.</p><p>The core advantage of exception handling is <strong>to maintain the normal flow of the application</strong>. An exception normally disrupts the normal flow of the application; that is why we need to handle exceptions.</p><h3>Types of Java Exceptions</h3><p>There are mainly two types of exceptions: checked and unchecked. An error is considered as the unchecked exception. However, according to Oracle, there are three types of exceptions namely:</p><ol><li>Checked Exception</li><li>Unchecked Exception</li><li>Error</li></ol><h3>Difference between Checked and Unchecked Exceptions</h3><h3>1) Checked Exception</h3><p>The classes that directly inherit the Throwable class except RuntimeException and Error are known as checked exceptions. For example, IOException, SQLException, etc. Checked exceptions are checked at compile-time.</p><h3>2) Unchecked Exception</h3><p>The classes that inherit the RuntimeException are known as unchecked exceptions. For example, ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException, etc. Unchecked exceptions are not checked at compile-time, but they are checked at runtime.</p><h3>3) Error</h3><p>Error is irrecoverable. Some example of errors are OutOfMemoryError, VirtualMachineError, AssertionError etc.</p><h3>Java Exception Handling Example</h3><p>Let’s see an example of Java Exception Handling in which we are using a try-catch statement to handle the exception.</p><p>package javaoopsconcepts;</p><p>public class ExceptionHandling {</p><p>public static void main(String[] args) {</p><p>try {</p><p>int a = 11/0;</p><p>}</p><p>catch(ArithmeticException e){</p><p>System.out.println(“Value cannot be divided by zero.”);</p><p>}</p><p>}</p><p>}</p><h3>Java Catch Multiple Exceptions</h3><h3>Java Multi-catch block</h3><p>A try block can be followed by one or more catch blocks. Each catch block must contain a different exception handler. So, if you have to perform different tasks at the occurrence of different exceptions, use java multi-catch block.</p><p>package javaoopsconcepts;</p><p>public class MultipleCatch {</p><p>public static void main(String[] args) {</p><p>int x[]=new int[6];</p><p>try {</p><p>x[7]=10/1;</p><p>}</p><p>catch(ArithmeticException e){</p><p>System.out.println(“Exception code”);</p><p>}</p><p>catch(ArrayIndexOutOfBoundsException e){</p><p>System.out.println(“Exception code where array index is out of boundary”);</p><p>}</p><p>}</p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lFADx-HrXLPOgLhQ.png" /></figure><h3>Java throw Exception</h3><p>In Java, exceptions allows us to write good quality codes where the errors are checked at the compile time instead of runtime and we can create custom exceptions making the code recovery and debugging easier.</p><h3>Java throw keyword</h3><p>The Java throw keyword is used to throw an exception explicitly.</p><p>We specify the <strong>exception</strong> object which is to be thrown. The Exception has some message with it that provides the error description. These exceptions may be related to user inputs, server, etc.</p><p>package javaoopsconcepts;</p><p>class Throw</p><p>{</p><p>static void validate(int age)</p><p>{</p><p>if(age&lt;18)</p><p>throw new ArithmeticException(“not valid”);</p><p>else</p><p>System.out.println(“welcome to apply for driving license”);</p><p>}</p><p>}</p><p>public class ThroeException {</p><p>public static void main(String[] args) {</p><p>validate(16);</p><p>System.out.println(“rest of the code”);</p><p>}</p><p>private static void validate(int i) {</p><p>}</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d9c7ba8c5e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation Testing]]></title>
            <link>https://medium.com/@sourabhadixit2000/automation-testing-ed30930f2e49?source=rss-9152ebf7e6ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed30930f2e49</guid>
            <category><![CDATA[selenium-test-automation]]></category>
            <dc:creator><![CDATA[Sourabhadixit]]></dc:creator>
            <pubDate>Thu, 22 Sep 2022 06:50:16 GMT</pubDate>
            <atom:updated>2022-10-05T14:31:32.261Z</atom:updated>
            <content:encoded><![CDATA[<p>Refer to the below link to know more about my journey:</p><p><a href="https://medium.com/@sourabhadixit2000/entering-the-online-technical-training-f29b1ef9d73f">My journey to the corporate world</a></p><p>To know about java for automation testing, click on the below link</p><p><a href="https://medium.com/@sourabhadixit2000/java-basics-and-oops-concepts-1d9c7ba8c5e9">JAVA Basics and OOPS concepts</a></p><p>To know more about software testing and jira tool, refer to below link:</p><p><a href="https://medium.com/@sourabhadixit2000/software-testing-manual-testing-e9d3dd432e3e">Software Testing(Manual Testing)</a></p><p><strong>Selenium:</strong></p><p>Selenium is the first thing that comes to mind when one is planning to automate the testing of web applications. Selenium is a beneficial tool because it is not only open source but also a portable software testing framework for web applications that support multiple languages like Java, C#, Ruby, and Python.</p><p>Selenium Software is not just a single tool but a suite of software, each piece catering to different Selenium QA testing needs of an organization. Here is the list of tools</p><ul><li>Selenium Integrated Development Environment (IDE)</li><li>Selenium Remote Control (RC)</li><li>WebDriver</li><li>Selenium Grid</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*41AUVbmy3eVlWjvx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*vmzncscbhXlxci2x.png" /></figure><h3>Selenium Grid</h3><p>Selenium Grid is a tool used together with Selenium RC to run a parallel test<strong> </strong>across different machines and different browsers all at the same time. Parallel execution means running multiple tests at once.</p><p><strong>Features:</strong></p><ul><li>Enables simultaneous running of tests in multiple browsers and environments.</li><li>Saves time enormously.</li><li>Utilizes the hub-and-nodes concept. The hub acts as a central source of Selenium commands to each node connected to it.</li></ul><h3>What is Selenium Webdriver?</h3><p><strong>Selenium Webdriver</strong> is an open-source collection of APIs which is used for testing web applications. The Selenium Webdriver tool is used for automating web application testing to verify that it works as expected or not. It mainly supports browsers like Firefox, Chrome, Safari and Internet Explorer. It also permits you to execute cross-browser testing.</p><p>WebDriver also enables you to use a programming language in creating your test scripts (not possible in Selenium IDE).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*QSSrx7LCgv1w8ve7.jpg" /></figure><h3>Difference between Selenium RC and Webdriver</h3><p>Before the advent of WebDriver in 2006, there was another, <strong>automation tool called Selenium Remote Control. </strong>Both WebDriver and Selenium RC have the following features:</p><ul><li>They both allow you to <strong>use a programming language</strong> in designing your test scripts.</li><li>They both allow you to <strong>run your tests against different browsers.</strong></li></ul><h3>1. Architecture</h3><p><strong>WebDriver’s architecture is simpler than Selenium RC’s</strong>.</p><ul><li>It controls the browser from the OS level</li><li>All you need are your programming language’s IDE (which contains your Selenium commands) and a browser.</li><li>Selenium RC’s architecture is way more complicated.</li><li>You first need to launch <strong>a separate application called Selenium Remote Control (RC) Server</strong> before you can start testing</li><li>The Selenium RC Server <strong>acts as a “middleman” between your Selenium commands and your browser</strong></li><li>When you begin testing, Selenium RC Server “injects” a <strong>Javascript program called Selenium Core</strong> into the browser.</li><li>Once injected, Selenium Core will start receiving instructions relayed by the RC Server from your test program.</li><li>When the instructions are received, <strong>Selenium Core will execute them as Javascript commands.</strong></li><li>The browser will obey the instructions of Selenium Core and will relay its response to the RC Server.</li><li>The RC Server will receive the response of the browser and then display the results to you.</li><li>RC Server will fetch the next instruction from your test script to repeat the whole cycle.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/0*sEPwEU2l_g1y-AUw.jpg" /></figure><h3>2. Speed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/0*bUbSzWyDlhmFho_i.jpg" /></figure><p><strong>WebDriver is faster than Selenium RC since it </strong>speaks directly to the browser and uses the browser’s own engine to control it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*Wk7mVkwh49h75a7L.jpg" /></figure><p><strong>Selenium RC is slower since it uses a Javascript program called Selenium Core. </strong>This Selenium Core is the one that directly controls the browser, not the user.</p><h3>3. Browser Support:</h3><p><strong>WebDriver can support the headless HtmlUnit browser</strong></p><p>HtmlUnit is termed as “headless” because it is an invisible browser — it is GUI-less.</p><p>It is a very fast browser because no time is spent in waiting for page elements to load. This accelerates your test execution cycles.</p><p>Since it is invisible to the user, it can only be controlled through automated means.</p><p><strong>Selenium RC cannot support the headless HtmlUnit browser. </strong>It needs a real, visible browser to operate on.</p><ul><li>WebDriver is a tool for testing web applications <strong>across different browsers</strong> using different programming languages.</li><li>You are now able to make powerful tests because WebDriver <strong>allows you to use a programming language</strong> of your choice in designing your tests.</li><li>WebDriver is <strong>faster than Selenium RC</strong> because of its simpler architecture.</li><li>WebDriver <strong>directly talks to the browser</strong> while Selenium RC needs the help of the RC Server in order to do so.</li><li>WebDriver’s API is more<strong> concise</strong> than Selenium RC’s.</li><li>WebDriver <strong>can support HtmlUnit</strong> while Selenium RC cannot.</li><li>The only drawbacks of WebDriver are:</li><li>It <strong>cannot readily support new browsers</strong>, but Selenium RC can.</li><li>It <strong>does not have a built-in command</strong> for the automatic generation of test results.</li></ul><h3>How to Download &amp; Install Selenium WebDriver:</h3><p>Selenium installation is a 3 step process:</p><ol><li>Install Java SDK</li><li>Install Eclipse</li><li>Install Selenium Webdriver Files</li></ol><ul><li><strong>Java Development Kit (JDK): </strong><a href="https://www.oracle.com/java/technologies/javase-downloads.html">https://www.oracle.com/java/technologies/javase-downloads.html</a></li><li><strong>Eclipse IDE</strong> — <a href="https://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></li><li><strong>Java Client Driver</strong> — <a href="https://www.selenium.dev/downloads/">https://www.selenium.dev/downloads/</a></li></ul><h3>Locators:</h3><p>Locator is a command that tells Selenium IDE which GUI elements ( say Text Box, Buttons, Check Boxes etc) its needs to operate on. Identification of correct GUI elements is a prerequisite to creating an automation script.</p><h3>Locating by Name</h3><p>In locating elements by name we use the <strong>“name=”</strong> prefix instead.</p><p><strong>Target Format: </strong>name=<em>name of the element</em></p><p>In the following demonstration, we will now use Mercury Tours because all significant elements have names.</p><p><strong>Step 1.</strong> Navigate to <a href="https://www.facebook.com/signup">https://www.facebook.com/signup</a> and use Firebug to inspect the “First Name” text box. Take note of its name attribute.</p><p>Step 2. Do the same thing as above for Last Name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qddA7zOHLbFAV3haNrjJ1g.png" /></figure><h3>Locating by XPath</h3><p>XPath is the language used when locating XML (Extensible Markup Language) nodes. Since HTML can be thought of as an implementation of XML, we can also use XPath in locating HTML elements.</p><p><strong>Advantage:</strong> It can access almost any element, even those without class, name, or id attributes.</p><p><strong>Disadvantage:</strong> It is the most complicated method of identifying elements because of too many different rules and considerations.</p><p><strong>Step 1.</strong> Navigate to Mercury Tours Homepage and use Firebug to inspect the orange rectangle to the right of the yellow “Links” box. Refer to the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwQMWGBie5vH5AUeJ_RGTg.png" /></figure><h3>The different locators in Selenium are as follows:</h3><ul><li>By CSS ID: <em>find_element_by_id: </em>This is by far the simplest method of locating an element. The CSS ID, stored in the <em>id</em> attribute of an HTML DOM element, is unique for every element in the page by design. Thus, an ID can uniquely identify an element.</li><li>To use this feature, one needs to call the <em>.find_element_by_id()</em> method of the <em>webdriver</em> class. Here is the usage for it.</li></ul><pre>from selenium import webdriver</pre><pre>driver = webdriver.Chrome(&#39;./chromedriver&#39;)<br>driver.get(&quot;https://www.python.org&quot;)</pre><pre>search_bar = driver.find_element_by_id(&quot;id-search-field&quot;)</pre><ul><li>By CSS class name: <em>find_element_by_class_name.</em></li><li>By name attribute: <em>find_element_by_name.</em></li><li>By DOM structure or xpath: <em>find_element_by_xpath.</em></li><li>By link text: <em>find_element_by_link_text.</em></li><li>By partial link text: <em>find_element_by_partial_link_text.</em></li><li>By HTML tag name: <em>find_element_by_tag_name.</em></li></ul><p>Program to automate facebook registration page:</p><p>package seleniumexamples;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.chrome.ChromeDriver;</p><p>public class FacebookRegister {</p><p>public static void main(String[] args) throws InterruptedException {<br> System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);<br> WebDriver driver = new ChromeDriver();<br> driver.get(“<a href="https://www.facebook.com/signup">https://www.facebook.com/signup</a>&quot;);<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS);<br> driver.findElement(By.xpath(“//div/input[<a href="http://twitter.com/name">@name</a>=’firstname’]”)).sendKeys(“Sourabha”);<br> driver.findElement(By.xpath(“//div/input[<a href="http://twitter.com/name">@name</a>=’lastname’]”)).sendKeys(“Dixit”);<br> driver.findElement(By.name(“reg_email__”)).sendKeys(“9591805848”);<br> driver.findElement(By.name(“reg_passwd__”)).sendKeys(“SouSaw24!02000”);<br> driver.findElement(By.name(“birthday_day”)).sendKeys(“24”);<br> driver.findElement(By.name(“birthday_month”)).sendKeys(“Oct”);<br> driver.findElement(By.name(“birthday_year”)).sendKeys(“2000”);<br> driver.findElement(By.xpath(“//input[<a href="http://twitter.com/value">@value</a>=’1&#39;]”)).click();<br> driver.findElement(By.name(“websubmit”)).click();</p><p>}</p><p>}</p><p>We consider the HRM login website and automated by using meth overloading:</p><p>package seleniumexamples;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.openqa.selenium.By;</p><p>import org.openqa.selenium.WebDriver;</p><p>import org.openqa.selenium.WebElement;</p><p>import org.openqa.selenium.chrome.ChromeDriver;</p><p>import org.openqa.selenium.support.ui.Select;</p><p>public class SearchHRMEmployee {</p><p>WebDriver driver = new ChromeDriver();</p><p>void login() {</p><p>driver.navigate().to(“https://opensource-demo.orangehrmlive.com/web/index.php/auth/login&quot;);</p><p>driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS);</p><p>WebElement username = driver.findElement(By.xpath(“//input[@name=’username’]”));</p><p>username.sendKeys(“Admin”);</p><p>WebElement password = driver.findElement(By.xpath(“//input[@type=’password’]”));</p><p>password.sendKeys(“admin123”);</p><p>WebElement login = driver.findElement(By.xpath(“//button[@type=’submit’]”));</p><p>login.click();</p><p>driver.findElement(By.xpath(“//a/span”)).click();</p><p>}</p><p>void search(String username) {</p><p>driver.findElement(By.xpath(“//form//div[2]//input”)).sendKeys(username);</p><p>driver.findElement(By.xpath(“//form//div//button[2]”)).click();</p><p>}</p><p>void search(String username, String empName) {</p><p>driver.findElement(By.xpath(“//form//div[2]//input”)).sendKeys(username);</p><p>driver.findElement(By.xpath(“//div/div[2]/div/div/input”)).sendKeys(empName);</p><p>driver.findElement(By.xpath(“//form//div//button[2]”)).click();</p><p>}</p><p>public static void main(String[] args) {</p><p>System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);</p><p>SearchHRMEmployee obj = new SearchHRMEmployee();</p><p>obj.login();</p><p>//obj.search(“Admin”);</p><p>obj.search(“Admin”,”Paul Collings”);</p><p>}</p><p>}</p><p><strong>Automate web table:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h26pnUqatAz5rSyg9T1t3w.png" /></figure><p>package seleniumexamples;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.WebElement;<br>import org.openqa.selenium.chrome.ChromeDriver;</p><p>public class AutomateColumnOfTable {</p><p>public static void main(String[] args) {<br> System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);<br> WebDriver driver = new ChromeDriver();<br> driver.navigate().to(“<a href="https://www.w3schools.com/html/html_tables.asp">https://www.w3schools.com/html/html_tables.asp</a>&quot;);<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS); <br> WebElement name = driver.findElement(By.xpath(“//table/tbody/tr[3]/td[1]”));<br> <br> System.out.println(name.getText());</p><p>}</p><p>}</p><p><strong>To Automate HRM application:</strong></p><p>Searching the employee in various methods using the overload concept.</p><p>package seleniumexamples;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.WebElement;<br>import org.openqa.selenium.chrome.ChromeDriver;<br>import org.openqa.selenium.support.ui.Select;</p><p>public class SearchHRMEmployee {<br> WebDriver driver = new ChromeDriver();<br> void login() {<br> driver.navigate().to(“<a href="https://opensource-demo.orangehrmlive.com/web/index.php/auth/login">https://opensource-demo.orangehrmlive.com/web/index.php/auth/login</a>&quot;);<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS); <br> WebElement username = driver.findElement(By.xpath(“//input[<a href="http://twitter.com/name">@name</a>=’username’]”));<br> username.sendKeys(“Admin”);<br> WebElement password = driver.findElement(By.xpath(“//input[<a href="http://twitter.com/type">@type</a>=’password’]”));<br> password.sendKeys(“admin123”);<br> WebElement login = driver.findElement(By.xpath(“//button[<a href="http://twitter.com/type">@type</a>=’submit’]”));<br> login.click();<br> driver.findElement(By.xpath(“//a/span”)).click();<br> }<br> void search(String username) {<br> driver.findElement(By.xpath(“//form//div[2]//input”)).sendKeys(username);<br> driver.findElement(By.xpath(“//form//div//button[2]”)).click();<br> } <br> void search(String username, String empName) {<br> <br> driver.findElement(By.xpath(“//form//div[2]//input”)).sendKeys(username);<br> driver.findElement(By.xpath(“//div/div[2]/div/div/input”)).sendKeys(empName);<br> driver.findElement(By.xpath(“//form//div//button[2]”)).click();<br> <br> <br> }</p><p>public static void main(String[] args) {<br> System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);<br> SearchHRMEmployee obj = new SearchHRMEmployee();<br> obj.login();<br> //obj.search(“Admin”);<br> obj.search(“Admin”,”Paul Collings”);<br> }</p><p>}</p><p><strong>Cucumber:</strong><br>Cucumber is a testing framework which supports Behaviour Driven Development (BDD). It lets us define application behaviour in plain meaningful English text using a simple grammar defined by a language called Gherkin. Cucumber itself is written in Ruby, but it can be used to “test” code written in Ruby or other languages including but not limited to Java, C# and Python.</p><p><strong>FeatureFile </strong>— the same Spec document that describes the system’s behavior. In this file, we will write the Gherkin language with the Feature, the Scenarios, and with the keywords mentioned above.<br><strong>Step Definitions </strong>— a class or collection of classes in which we translate the Gherkin language into code that executes automatic actions on the tested product.</p><p>Let us consider one example:</p><p>Logging in to the HRM website:</p><p>Here it will automatically it will login to HRM and it will log out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZzZnzxEw7WSt0lUsIV3dg.png" /><figcaption>Feature file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJdjE8QEirjLNuSsWnDLAw.png" /><figcaption>Java file</figcaption></figure><p>package stepdefinations;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.junit.Assert;<br>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.chrome.ChromeDriver;</p><p>import io.cucumber.java.en.Given;<br>import io.cucumber.java.en.Then;<br>import io.cucumber.java.en.When;</p><p>public class Cucumber {<br> <br> <br> private static WebDriver driver = null;<br> <br> // TODO Auto-generated method stub<br> <a href="http://twitter.com/Given">@Given</a>(“browser is open and application is in login page”) <br> public void browser_is_open_and_application_is_in_login_page(){<br> System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);<br> driver = new ChromeDriver();<br> driver.get(“<a href="https://opensource-demo.orangehrmlive.com/web/index.php/auth/login">https://opensource-demo.orangehrmlive.com/web/index.php/auth/login</a>&quot;);<br> //throw new io.cucumber.java.PendingException();<br> }<br> <a href="http://twitter.com/When">@When</a>(“user enters user name and password”)<br> public void user_enters_user_name_and_password() {<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS);<br> driver.findElement(By.xpath(“//div/input[<a href="http://twitter.com/name">@name</a> = ‘username’] “)).sendKeys(“Admin”);<br> driver.findElement(By.xpath(“//input[<a href="http://twitter.com/type">@type</a>= ‘password’] “)).sendKeys(“admin123”);<br> driver.findElement(By.xpath(“//button”)).click();<br> //throw new io.cucumber.java.PendingException();<br> }<br> <br> <a href="http://twitter.com/Then">@Then</a> (“home page is displayed”) <br> public void home_page_is_displayed() {<br> //String actualResult, expectedResult = “PIM”;<br> //actualResult = driver.findElement(By.xpath(“//img[<a href="http://twitter.com/alt">@alt</a> = \”client brand banner\”]”)).getText();<br> <br> //Assert.assertEquals(actualResult, expectedResult);<br> //throw new io.cucumber.java.PendingException();<br> }<br> <a href="http://twitter.com/Then">@Then</a> (“user is loggedout”) <br> public void user_logout() {<br> driver.findElement(By.xpath(“//span[<a href="http://twitter.com/class">@class</a>=’oxd-userdropdown-tab’]”)).click();<br> driver.findElement(By.linkText(“Logout”)).click();<br> }</p><p>}</p><p><strong>TestNG:</strong></p><p>TestNG:</p><p>TestNG is an open source automated testing framework; where NG of TestNG means Next Generation. TestNG is similar to JUnit, but its not a JUnit extension. Its inspired by JUnit. It is designed to be better than JUnit, especially when testing integrated classes.</p><p>TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration.</p><p>Requirements</p><p>TestNG requires JDK version 5 or higher.</p><p>What are the benefits of using annotations?</p><p>Following are some of the benefits of using annotations:</p><p>TestNG identifies the methods it is interested in by looking up annotations. Hence, method names are not restricted to any pattern or format.</p><p>We can pass additional parameters to annotations.</p><p>Annotations are strongly typed, so the compiler will flag any mistakes right away.</p><p>Test classes no longer need to extend anything</p><p>What are the different ways in which TestNG can be invoked?</p><p>You can invoke TestNG in several different ways:</p><p>Using Eclipse</p><p>With ant OR Maven</p><p>From the command line</p><p>Maven dependency to add in POM.xml file</p><p>&lt;dependency&gt;</p><p>&lt;groupId&gt;org.testng&lt;/groupId&gt;</p><p>&lt;artifactId&gt;testng&lt;/artifactId&gt;</p><p>&lt;version&gt;6.14.3&lt;/version&gt;</p><p>&lt;scope&gt;test&lt;/scope&gt;</p><p>&lt;/dependency&gt;</p><p>How can you disable a test case in TestNG?</p><p>Annotation @Test(enabled = false) helps to disable the test case which you want to ignore.</p><p>Installation of TestNg frame work:</p><p>1. Launch Eclipse IDE &amp; under Help menu click on “Install New Software” option.</p><p>2. Install dialog box will be appeared</p><p>3. In the install dialog box, enter URL as “ https://testng.org/testng-eclipse-update-site” in Work with text box &amp; press keyboard enter key.</p><p>4. Under Name column TestNG check box will be displayed</p><p>5. Select the “TestNG” check box &amp; click on Next button</p><p>6. On Install Details screen, make sure that TestNG is selected &amp; then click on Next button</p><p>7. On Review Licenses screen read license agreement &amp; select “I accept…”</p><p>8. Ensure that Installing Software dialog appear</p><p>9. One security warning message will appear during installation. Ensure that you click on Ok button if same security dialog is appeared.</p><p>10. Once the installation process is completed then Eclipse ask you to Restart, click on Yes button</p><p>11. Once the Eclipse is restarted, to make sure whether TestNG is installed or not. Just under Run menu click on “Run As” option &amp; check new option is added called “TestNG Test”</p><p>Annotations:</p><p>@BeforeSuite: The annotated method will run before all tests in this suite have.</p><p>@AfterSuite: The annotated method will run after all tests in this suite have.</p><p>@BeforeTest: The annotated method will run before any test method belonging to the classes inside the &lt;test&gt; tag is run.</p><p>@AfterTest: The annotated method will run after all the test methods belonging to the classes inside the &lt;test&gt; tag have run.</p><p>@BeforeGroups: The list of groups that this configuration method will run before. This method is guaranteed to run shortly before the first test method that belongs to any of these groups is invoked.</p><p>@AfterGroups: The list of groups that this configuration method will run after. This method is guaranteed to run shortly after the last test method that belongs to any of these groups is invoked.</p><p>@BeforeClass: The annotated method will run before the first test method in the current class is invoked.</p><p>@AfterClass: The annotated method will be run after all the test methods in the current class have been run.</p><p>@BeforeMethod: The annotated method will be run before each test method.</p><p>@AfterMethod: The annotated method will be run after each test method.</p><p>@Test: This we need to use for test cases</p><p>@DataProvider: Marks a method as supplying data for a test method. The annotated method must return an Object[][] where each Object[] can be assigned the parameter list of the test method. The @Test method that wants to receive data from this DataProvider needs to use a dataProvider name equals to the name of this annotation.</p><p>name: The name of this data provider. If it’s not supplied, the name of this data provider will automatically be set to the name of the method.</p><p>parallel: If set to true, tests generated using this data provider are run in parallel. Default value is false.</p><p>package Pk1;</p><p>import org.testng.annotations.Test;</p><p>import org.testng.annotations.BeforeMethod;</p><p>import org.testng.annotations.AfterMethod;</p><p>import org.testng.annotations.BeforeClass;</p><p>import org.testng.annotations.AfterClass;</p><p>import org.testng.annotations.BeforeTest;</p><p>import org.testng.annotations.AfterTest;</p><p>import org.testng.annotations.BeforeSuite;</p><p>import org.testng.annotations.AfterSuite;</p><p>public class TestNGExampleTest {</p><p>@Test</p><p>public void testCase1() {</p><p>System.out.println(“in test case 1”);</p><p>}</p><p>// test case 2</p><p>@Test</p><p>public void testCase2() {</p><p>System.out.println(“in test case 2”);</p><p>}</p><p>@BeforeMethod</p><p>public void beforeMethod() {</p><p>System.out.println(“in beforeMethod”);</p><p>}</p><p>@AfterMethod</p><p>public void afterMethod() {</p><p>System.out.println(“in afterMethod”);</p><p>}</p><p>@BeforeClass</p><p>public void beforeClass() {</p><p>System.out.println(“in beforeClass”);</p><p>}</p><p>@AfterClass</p><p>public void afterClass() {</p><p>System.out.println(“in afterClass”);</p><p>}</p><p>@BeforeTest</p><p>public void beforeTest() {</p><p>System.out.println(“in beforeTest”);</p><p>}</p><p>@AfterTest</p><p>public void afterTest() {</p><p>System.out.println(“in afterTest”);</p><p>}</p><p>@BeforeSuite</p><p>public void beforeSuite() {</p><p>System.out.println(“in beforeSuite”);</p><p>}</p><p>@AfterSuite</p><p>public void afterSuite() {</p><p>System.out.println(“in afterSuite”);</p><p>}</p><p>}</p><p>Example: To log in to HRM application and log out of it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dO2gWa8j0AJt_duzbU48CA.png" /></figure><p>package testng;</p><p>import java.util.concurrent.TimeUnit;</p><p>import org.openqa.selenium.By;<br>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.chrome.ChromeDriver;<br>import org.testng.annotations.Test;</p><p>public class HRMApplication {<br> private static WebDriver driver = null;<br> <a href="http://twitter.com/Test">@Test</a><br> public void login() {<br> System.setProperty(“webdriver.chrome.driver”, “C:\\Sourabha\\chromedriver.exe”);<br> driver = new ChromeDriver();<br> driver.navigate().to(“<a href="https://opensource-demo.orangehrmlive.com/web/index.php/auth/login">https://opensource-demo.orangehrmlive.com/web/index.php/auth/login</a>&quot;);<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS); <br> driver.findElement(By.xpath(“//div/input[<a href="http://twitter.com/name">@name</a>=’username’]”)).sendKeys(“Admin”);<br> driver.findElement(By.xpath(“//input[<a href="http://twitter.com/type">@type</a>=’password’]”)).sendKeys(“admin123”);<br> driver.findElement(By.xpath(“//button[<a href="http://twitter.com/type">@type</a>=’submit’]”)).click();<br> }</p><p><a href="http://twitter.com/Test">@Test</a><br> public void logout() {<br> driver.manage().timeouts().implicitlyWait(1000, TimeUnit.MILLISECONDS); <br> driver.findElement(By.xpath(“//span[<a href="http://twitter.com/class">@class</a>=’oxd-userdropdown-tab’]”)).click();<br> driver.findElement(By.linkText(“Logout”)).click();<br> }<br>}</p><p><strong>JMeter:</strong></p><h3>What is JMeter?</h3><p>The Apache JMeter is an open-source, purely Java-based software. The software is used to perform performance testing, functional testing, and load testing of web applications.</p><p>It is used to test load testing functional behavior and measuring performance. JMeter makes it possible by creating a huge number of concurrent users that simulate a heavy load. Initially, JMeter was developed to test applications but now has expanded to other test functions.</p><h3>Why JMeter?</h3><p>To understand why JMeter is the most popular Performance testing tool, let’s have a look at these six reasons:</p><h3>1. Free of Cost</h3><p>JMeter is free of cost, has a friendly interface, and allows users to automate their work.</p><h3>2. Performance Testing of Applications</h3><p>JMeter helps in the performance testing of both static and dynamic resources. Static resources like HTML and JavaScript, and dynamic resources such as JSP, Servlets, and AJAX.</p><h3>3. Load Testing and Stress Testing</h3><p>Performance testing in JMeter includes load testing and stress testing. Hence, it identifies the maximum concurrent users that the server can handle.</p><h3>4. Framework</h3><p>The framework in JMeter allows multi-threading, which means several separate thread groups may perform simultaneous and concurrent sampling.</p><h3>5. Graphical Analysis</h3><p>JMeter enables the performance testing representation in a graphical format like the graph, tree, table, report, etc., making the analysis representable and interesting.</p><h3>6. Platform Independent</h3><p>Since JMeter is entirely Java-based, it can be used across any platform or server to run a Java Virtual Machine.</p><p><strong>Installation:</strong><br>1. Go to Apache JMeter official website<br>(<a href="https://jmeter.apache.org/download_jmeter.cgi">https://jmeter.apache.org/download_jmeter.cgi</a>).<br>2. Download Jmeter latest version zip file (for windows operating system)<br>from Binaries option.<br>3. Place that file in C drive and extract that zip file.<br>4. Go to folder created after extract and open bin folder.<br>5. Open Jmeter batch file and launch Jmeter application.</p><p>JMeter performed on OrangerHrm application for load testing.</p><ol><li>Open JMeter</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VhDHA5UnhmMnOE3JhGCsw.png" /></figure><p>2. Right click on Test Plan and select Add-&gt;Threads(user)-&gt;Thread Groups and click on enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*5Bp3i4RyP3gJ269Tk1KfMA.png" /></figure><p>3. Rename the Thread Group file to desired name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*1h0ulM76ZIcKgh65gl7CYw.png" /></figure><p>4. Under Thread Properties give “Number of Thread(users)” as 20 users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*CzvYmtCCycd-xRKhos6RXA.png" /></figure><p>5. Give “Ramp up period” as 10 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SdN7SnWqXjQ_0qoFYeKVQ.png" /></figure><p>6. Give “Loop count” as 2. So that it will loop 2 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVHXfmyyNLFd8BO2xyT9MA.png" /></figure><p>7. Save the file by clicking on File-&gt;Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*HbWUmA1-8LbtcIa5HPaDNQ.png" /></figure><p>8. To perform load test on Orangehrm application, first add HTTP Request . For that right click on Orangehrm application-&gt;Add-&gt;Sampler-&gt;HTTP Requests</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*PraeRSPdRmKv1JNrgPQM9A.png" /></figure><p>9. Copy this link “https://opensource-demo.orangehrmlive.com/web/index.php/auth/login” and fill the IP and Path field and save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*ad_DP3Fwk20nV04q1RxTqw.png" /></figure><p>10. Select this run button to run JMeter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*TjBGq1VJMy19E2c7kPN8lg.png" /></figure><p>11. To view the output, right click on OrangeHrm application folder-&gt;add-&gt;Listener-&gt;View Results Tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X38MumgnFmi9rQQIjJWkRQ.png" /></figure><p>12. When we run and click on View Result tree, it will show the Login HTTP Request is pass or fail. It will also Show the number of users and loops. In our project we have looped 20 users 2 times. And all are passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*mRjOX1SS8v3GB43sIkPbgg.png" /></figure><p>13. We can also use the aggregation option to know the counts. Just right click on Login-&gt;Add-&gt;Listener-&gt;Aggerate Report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eqsulSmGCViw0ewFO3ubGw.png" /></figure><p>14. Results are displayed in table manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWHrko0DnueIweQiRLRdfg.png" /></figure><p>15. We can use assertion for checking the result by passing parameter. Select the assertion as given below in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFzDYbMt9JP1FwmOyqx9NA.png" /></figure><p>16. In the View Result tree click on the Login and its sampler result will appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*8DRZI30lJzQe5Nh_KA3svQ.png" /></figure><p>17. From there Choose Response code as “OK” and choose response code in the assertion . Choose add which is below the patterns to test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbmUMsF8MzXHNifwzXbE5g.png" /></figure><p>18. There we have give string as “OK” which we have choosen from the View Result tree. If those two matches it will be passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-_W_ir4C3w11H1YDtW2Sg.png" /></figure><p>19. To view the assertion result we must include Assertion Result By right clicking on the Test Plan -&gt;Add-&gt;Listener-&gt;Assertion Results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbGENmX9KoGD1jdcTcGvVA.png" /></figure><p>20. The result of assertion, when passed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opDkSehKkt540IVswuhoIg.png" /></figure><p>21. Assertion result when Failed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Z-sgsk3Oaja0lM-J0kZlhw.png" /></figure><p><strong>This is the big picture of software testing:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QBLLALn5flLQICZWhOc-5w.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed30930f2e49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My journey to the corporate world]]></title>
            <link>https://medium.com/@sourabhadixit2000/entering-the-online-technical-training-f29b1ef9d73f?source=rss-9152ebf7e6ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/f29b1ef9d73f</guid>
            <dc:creator><![CDATA[Sourabhadixit]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 06:28:24 GMT</pubDate>
            <atom:updated>2022-10-22T06:00:48.474Z</atom:updated>
            <content:encoded><![CDATA[<p>To know more about software testing and jira tool, refer to below link:</p><p><a href="https://medium.com/@sourabhadixit2000/software-testing-manual-testing-e9d3dd432e3e">Software Testing(Manual Testing)</a></p><p>To know about java for automation testing, click on the below link</p><p><a href="https://medium.com/@sourabhadixit2000/java-basics-and-oops-concepts-1d9c7ba8c5e9">JAVA Basics and OOPS concepts</a></p><p>To know about automation testing with the selenium tool, click the below link:</p><p><a href="https://medium.com/@sourabhadixit2000/automation-testing-ed30930f2e49">Automation Testing</a></p><p>Hello peeps,</p><p>I’m Sourabha C Dixit from Moodbidri. I have done my schooling and PUC in Moodbidri itself. Recently I completed my Engineering degree in CSE from Mangalore Institute Of Technology and Engineering(MITE). Currently, I am working in an IT company as Trainee Software Engineer(TSE) post.</p><p><strong>Campus to corporate:</strong></p><p>I’m very excited to share my experience at my first company. When I got a mail from the company saying that we had an induction program in the company itself, I was very excited to go with my friends to Bangalore. My friends and I got on the bus and reached Bangalore.</p><p>I first entered the corporate world on 11th Aug 2022. The Company building was good. On this day HR team welcomed us by giving us welcome kits. They also conducted some games. I really enjoyed it very well. Also, they provided us with lunch. In the afternoon they gave technical information about some domains. I really enjoyed two days induction program very much.</p><p>From 16th Aug 2022 online Campus to Corporate Sessions got started. It was led by the L&amp;D team. The session was interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OA1dU8tMLVhHMYZE2hlZfw.jpeg" /></figure><p><strong>Industry transformation:</strong></p><p><strong>— The first industrial revolution:</strong></p><p>The first industrial revolution started at the end of the 18th century. The biggest changes came in the industries in the form of mechanization. Mechanization means, why agriculture started to be replaced by industry as the backbone of the economy. At the time, people witnessed massive extraction of coal along with the significant invention of the steam engine that created a new type of energy that later on helped speed up the manufacturing of railroads, thus accelerating the economy.</p><p><strong>— The second industrial revolution:</strong></p><p>After the first industrial revolution, the second revolution started at the end of the 19th century, with massive technological advancements in industries that helped the emergence of new sources of energy like electricity, gas, oil, and so on. This revolution resulted in the creation of the internal combustion engine. Also, the development of steel demand, chemical synthesis, and methods of communication such as the telegraph and the telephone also started.</p><p><strong>— The third industrial revolution:</strong></p><p>Here in this revolution, the inventions of the automobile, nuclear energy the plane at the beginning of the 20th century started. The third revolution brought forth the rise of electronics, telecommunications, also computers. Research and biotechnology went throughout the world. In the world of industries, two major inventions happened; Programmable Logic Controllers (PLCs) and Robots, which helped give rise to high-level automation.</p><p><strong>— Industry 4.0:</strong></p><p>Industry 4.0 started at the dawn of the third millennium with the one thing everyone uses every day which is the Internet. Everyone can see the transition from the first industrial revolution in the technological phase to Industry 4.0 which develops virtual reality worlds. Programs and projects are being implemented worldwide, focusing on helping people. Projects aiming to involve the industrial sector in the transformation of digital skills which help in technological developments of industries.</p><p><strong>Industry Segments:</strong></p><p><strong>— Banking sector:</strong></p><p>Banking refers to a financial activity to manage and safeguard one&#39;s hard-earned money. It helps individuals, small businesses, and large corporations. Banks offer financial management products, including various types of accounts and loans. They also provide easy access to funds via facilities like ATMs, debit cards, credit cards, etc.</p><p>— One can create an account in any bank to deposit money.</p><p>— One can take loans like education loans, home loans, etc.</p><p>— One can keep some money as FD so they get interest on that money.</p><p><strong>— Transport Sector:</strong></p><p>The transportation sector is a category of companies that provide services to move people or goods, as well as transportation infrastructure. Technically, transportation is a sub-group of the industrials sector</p><p>— The transportation sector is an important industrial sector in the economy that deals with the movement of people and products.</p><p>— These include companies such as airlines, trucking, railroads, shipping, and logistics firms, as well as those that provide transportation infrastructure.</p><p>— Because of electric vehicles, the evolution of transportation has become easy for people and it is noise-free and emission-free so it has also helped in preserving the environment.</p><p><strong>Importance of Customer Experience:</strong></p><p>The customer experience is everything related to a business that affects a customer’s perception and feelings about it. It focuses on the relationship between a business and its customers.</p><p><strong>— Good and bad customer experience:</strong></p><p>Good customer service is about understanding your customer’s feelings, desires, and needs in every situation whereas bad customer service can be defined as when a business fails to meet customer expectations in terms of service quality, response time, or overall customer experience.</p><p>My best experience being an end user is when I ordered items from Amazon. I enjoyed the variety of choices it offers with top-quality picture quality and also crisp descriptions and detailed information of each and every item for an affordable price. I also loved the customer service they provide with delivery, refund, and also solving the problem.</p><p>My bad experience is when I ordered an item from Mesho. They provide bad quality items and also the description is not clear.</p><p><strong>Basics of Computer and Its architecture:</strong></p><p>A computer system is basically a machine that simplifies complicated tasks. It should maximize performance and reduce costs as well as power consumption. The different components in the Computer System Architecture are Input Unit, Output Unit, Storage Unit, Arithmetic Logic Unit, Control Unit, etc.</p><p>The input data travels from the input unit to ALU. Similarly, the computed data travels from ALU to the output unit. The data constantly moves from the storage unit to ALU and back again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*bCYL5EmBJSf9z6bGHhUmwA.png" /></figure><p>Computer architecture mainly 5 components: Input, Control Unit, ALU, Memory unit, and Output.</p><p><strong>— Input:</strong> This is the process of entering data and programs into the computer system.</p><p><strong>— Control Unit (CU):</strong> The process of input, output, processing, and storage is performed under the supervision of a unit called ‘The Control Unit. It decides when to start receiving data, when to stop it, where to store data, etc. It takes care of the step-by-step processing of all operations inside the computer.</p><p><strong>— Memory Unit: </strong>The computer is used to store data and instructions. 4. Arithmetic Logic Unit (ALU): The major operations performed by the ALU are addition, subtraction, multiplication, division, logic, and comparison.</p><p><strong>— Output: </strong>This is the process of producing results from the data for getting useful information.</p><p>The ALU and the CU of a computer system are jointly known as the central processing unit (CPU).</p><p><strong>The evolution of standalone to cloud architecture/platform:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*pgMRR-7IOha6UFApaTtzfA.jpeg" /><figcaption>Industry evolution</figcaption></figure><p>The 4 Evolutionary Stages of Modern are:</p><p><strong>— Computing Goes Mainstream with Mainframes:</strong></p><p>Launched in 1964, the IBM 360 is widely recognized as the world’s first modern mainframe. This was also the time that mainframes first started going mainstream. This was an era of highly centralized computers with almost all elements of IT infrastructure being provided by a single vendor. Though these systems served multiple users through client terminals and a time-sharing process, actual access was limited to specialized personnel.</p><p><strong>— Democratizing Computing with PCs:</strong></p><p>The signs of a shift from mainframes to decentralized computing first appeared in the 1960s with the introduction of minicomputers. These not only offered more power but facilitated decentralization and customization as opposed to the monolithic time-sharing model of mainframe computing. But it would take until 1975 before the first genuinely affordable personal computer emerged. The 70s also saw the launch of the Apple I and II, but access was still predominantly restricted to technologists. It was the launch of the IBM PC in 1981 (pictured above), which is often seen as the beginning of the PC era. The company’s first personal computer, called the PC, used the operating system from a then little-known company called Microsoft and went on to democratize computing and launch many of the standards that have since come to define desktop computing.</p><p><strong>— Networking the PC through the Client-server and Enterprise Computing Eras:</strong></p><p>By the 80s, there was an increasing need for businesses to connect all their standalone PCs so that employees could collaborate and share resources. The client-server model afforded a way to enable truly distributed computing with PCs. In this model, every standalone PC is networked via a Local Area Network (LAN) to a powerful server computer that would enable access to a range of services and capabilities. The server could be a mainframe or a powerful configuration of smaller inexpensive systems that offer the same performance and functionality as a mainframe at a fraction of the cost. Today, the client-server model continues to be one of the central ideas of network computing. There are several advantages to this approach to networking, as the centralized architecture provides more control over the provisioning, access, and security of multiple services.</p><p><strong>— Disrupting Enterprise IT with Cloud Computing:</strong></p><p>In 1999, Salesforce launched an enterprise-level customer relationship management(CRM) application over the internet as an alternative for traditional desktop software. The term cloud computing was yet to enter the technological lexicon, though its coinage has since been tracked to late 1996when executives at Compaq were envisioning a future where all business software would move to the web in the form of “cloud computing-enabled applications.” Three years later, Amazon would join the race by offering computational and storage solutions over the internet. These two events foreshadowed a transformative and disruptive trend in information technology wherein the core emphasis for enterprise IT would shift from hardware to software. Since then, almost every tech giant, including Google, Microsoft, and IBM, has joined the fray, and cloud computing has become the new normal for enterprise IT.</p><p>Cloud computing gives enterprise information technology on-demand access to computing resources, including networks, servers, storage, applications, and services, without the cost or hassle of managing and maintaining all that hardware. There is also an additional cost benefit to cloud services the pay-as-you-go model means that businesses are charged only for the resources they have consumed. Most importantly, cloud services can scale vertically and horizontally, eliminating all headaches associated with optimizing on-premise solutions for underutilization and overloads.</p><p>Today, most of the top cloud service providers offer a range of machine learning tools, including data visualization, APIs, face recognition, natural language processing, predictive analytics, and deep learning, as part of their as-a-service portfolio. For instance, AWS enables customers to add sophisticated AI capabilities such as image and video analysis, natural language, personalized recommendations, virtual assistants, and forecasting to their applications without the need for AI/ML expertise.</p><p><strong>Software Development Life Cycle(SDLC):</strong></p><p>— It is a model that represents all the methods required to make a software product. The development team must determine a suitable life cycle model for a particular plan and observe it.</p><p>— When a team is developing a software product, there must be a clear understanding among team representatives about when and what to do. Otherwise, it would a failure.</p><p>Mainly it consists of 7 phases. Those are:</p><p><strong>— Ideation:</strong> In this phase planning will happen. The senior members of the team perform it with input from all the stakeholders and domain experts. Here an effective outline for the upcoming development cycle is built.</p><p><strong>— Requirements:</strong> Requirement Analysis is the most important and necessary stage in SDLC. Business analysts and Project organizers set up a meeting with the client to gather all the data like what the customer wants to build, who will be the end user, and what is the objective of the product. Before creating a product, a core understanding or knowledge of the product is very necessary. Once the requirement is understood, the SRS (Software Requirement Specification) document is created.</p><p><strong>— Design: </strong>Once the requirement analysis is done, the next stage is to design the product. Here using an effective outline and requirements collected from various sources which are documented in SRS is considered and various architecture or designs are built. based on various opinions, a good design is picked.</p><p><strong>— Development: </strong>After the design phase, the development or building of the product is done. Here programmers will choose what are the programming languages to be used based on requirements and also different tools will be chosen and a product is built.</p><p><strong>— Testing:</strong> After a product is built, in this phase testing is done. 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>— Deployment:</strong> Once the software is certified, and no bugs or errors are stated, then it is deployed. Then based on the assessment, the software may be released as it is or with suggested enhancement in the object segment.</p><p><strong>— Maintenance: </strong>After the software is deployed, then its maintenance begins. Once when the client starts using the developed systems, then the real issues come up and requirements are to be solved from time to time. This procedure where care is taken for the developed product is known as maintenance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*I3Y7dLR0xtEP1vJLJLgR_w.jpeg" /><figcaption>SDLC Phases</figcaption></figure><p><strong>There are five SDLC models:</strong></p><ol><li><strong>Waterfall Model:</strong></li></ol><p>— Each stage relies on information from the previous stage and has its own project plan. The waterfall is easy to understand and simple to manage.</p><p>— It is a sequential model. The waterfall Model illustrates the software development process in a linear sequential flow. This means that any phase in the development process begins only if the previous phase is complete. In this waterfall model, the phases do not overlap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Gu9vxyMpjjeivP8yUgsuhg.jpeg" /><figcaption>Waterfall model</figcaption></figure><p>The sequential phases in the Waterfall model are −</p><ul><li><strong>Requirement Gathering and analysis</strong> − All possible requirements of the system to be developed are captured in this phase and documented in a requirement specification document.</li><li><strong>System Design</strong> − The requirement specifications from the first phase are studied in this phase and the system design is prepared. This system design helps in specifying hardware and system requirements and helps in defining the overall system architecture.</li><li><strong>Implementation</strong> − With inputs from the system design, the system is first developed in small programs called units, which are integrated with the next phase. Each unit is developed and tested for its functionality, which is referred to as Unit Testing.</li><li><strong>Integration and Testing</strong> − All the units developed in the implementation phase are integrated into a system after testing each unit. Post integration the entire system is tested for any faults and failures.</li><li><strong>Deployment of system</strong> − Once the functional and non-functional testing is done; the product is deployed in the customer environment or released into the market.</li><li><strong>Maintenance</strong> − There are some issues that come up in the client environment. To fix those issues, patches are released. Also to enhance the product some better versions are released. Maintenance is done to deliver these changes in the customer environment.</li></ul><p><strong>The advantages of the waterfall model:</strong></p><ul><li>It is simple and easy to understand and use.</li><li>Phases are processed and completed one at a time.</li><li>Works well for smaller projects where requirements are very well understood.</li><li>Clearly defined stages.</li><li>Easy to arrange tasks.</li><li>Process and results are well documented.</li><li>It is very useful for short-term projects.</li></ul><p><strong>The disadvantage of the waterfall model:</strong></p><ul><li>High amounts of risk and uncertainty.</li><li>Not a good model for complex and object-oriented projects.</li><li>Poor model for long and ongoing projects.</li><li>It is difficult to measure progress within stages.</li><li>Cannot accommodate changing requirements.</li><li>Adjusting scope during the life cycle can end a project.</li></ul><p>2<strong>. V-Shaped Model:</strong></p><p>— The V-model is an SDLC model where the execution of processes happens in a sequential manner in a V-shape. It is also known as Verification and Validation model.</p><p>— The V-Model is an extension of the waterfall model and is based on the association of a testing phase for each corresponding development stage. This means that for every single phase in the development cycle, there is a directly associated testing phase. Here also the next phase starts only after the completion of the previous phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*j3C7V8tZocfDaHUvoLwXUg.png" /><figcaption>V-shape model</figcaption></figure><p><strong>Verification:</strong> Here the review is done without executing code. It is the process of evaluation of the product development phase to find whether specified requirements meet.</p><p><strong>Validation:</strong> It involves a dynamic analysis technique (functional, non-functional), and testing is done by executing code. Validation is the process to evaluate the software after the completion of the development phase to determine whether the software meets the customer&#39;s expectations and requirements.</p><p>So V-Model contains Verification phases on one side and the Validation phases on the other side. The verification and Validation phases are joined by the coding phase in V-shape. Thus it is called V-Model.</p><p><strong>Design Phase:</strong></p><ul><li><strong>Requirement Analysis:</strong> This phase contains detailed communication with the customer to understand their requirements and expectations. This stage is known as Requirement Gathering.</li><li><strong>System Design:</strong> This phase contains the system design and the complete hardware and communication setup for developing the product.</li><li><strong>Architectural Design:</strong> System design is broken down further into modules taking up different functionalities.</li><li><strong>Module Design:</strong> In this phase, the system breaks down into small modules. The detailed design of modules is specified, also known as Low-Level Design (LLD).</li></ul><p><strong>Testing Phases:</strong></p><ul><li><strong>Unit Testing:</strong> Unit Test Plans are developed during the module design phase. These Unit Test Plans are executed to eliminate bugs at the code or unit level.</li><li><strong>Integration testing:</strong> After completion of unit testing Integration testing is performed. In integration testing, the modules are integrated and the system is tested. Integration testing is performed in the Architecture design phase. This test verifies the communication of modules among themselves.</li><li><strong>System Testing:</strong> System testing test the complete application with its functionality, interdependency, and communication. It tests the functional and non-functional requirements of the developed application.</li><li><strong>User Acceptance Testing (UAT):</strong> UAT is performed in a user environment that resembles the production environment. UAT verifies that the delivered system meets the user’s requirement and system is ready for use in the real world.</li></ul><p>3. <strong>Iterative Model:</strong></p><p>— An iterative life cycle model does not attempt to start with a full specification of requirements. Instead, development begins by specifying and implementing just part of the software, which is then reviewed to identify further requirements. This process is then repeated, producing a new version of the software at the end of each iteration of the model.</p><p>— The iterative process starts with a simple implementation of a subset of the software requirements and iteratively enhances the evolving versions until the full system is implemented. At each iteration, design modifications are made and new functional capabilities are added. The basic idea behind this method is to develop a system through repeated cycles (iterative) and in smaller portions at a time (incremental).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yP5VsQfgcSl8hRpemSbomQ.jpeg" /><figcaption>Iterative and Incremental model</figcaption></figure><p>Iterative and Incremental development is a combination of both iterative design or iterative method and incremental build model for development. “During software development, more than one iteration of the software development cycle may be in progress at the same time.” This process may be described as an “evolutionary acquisition” or “incremental build” approach.”</p><p>In this incremental model, the whole requirement is divided into various builds. During each iteration, the development module goes through the requirements, design, implementation, and testing phases. Each subsequent release of the module adds a function to the previous release. The process continues till the complete system is ready as per the requirement.</p><p><strong>The advantages of the Iterative and Incremental Model :</strong></p><ul><li>Some working functionality can be developed quickly and early in the life cycle.</li><li>Results are obtained early and periodically.</li><li>Parallel development can be planned.</li><li>Progress can be measured.</li><li>Less costly to change the scope/requirements.</li><li>Testing and debugging during smaller iterations is easy.</li><li>Easier to manage risk — High-risk part is done first.</li><li>Risk analysis is better.</li><li>It supports changing requirements.</li></ul><p><strong>The disadvantages of the Iterative and Incremental Model:</strong></p><ul><li>More resources may be required.</li><li>More management attention is required.</li><li>System architecture or design issues may arise because not all requirements are gathered at the beginning of the entire life cycle.</li><li>Not suitable for smaller projects.</li><li>Highly skilled resources are required for risk analysis.</li></ul><p>4. <strong>Spiral Model:</strong></p><p>— The spiral model has four phases. A software project repeatedly passes through these phases in iterations called Spirals.</p><p>— It implements the potential for rapid development of new versions of the software. Using the spiral model, the software is developed in a series of incremental releases.</p><p>— During the early iterations, the additional release may be a paper model or prototype. During later iterations, more and more complete versions of the engineered system are produced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*OwDpBlACdJZRV70U054ohg.png" /></figure><p>Each cycle in the spiral is divided into four parts:</p><p><strong>Objective setting:</strong> Each cycle in the spiral starts with the identification of purpose for that cycle, the various alternatives that are possible for achieving the targets, and the constraints that exists.</p><p><strong>Risk Assessment and reduction:</strong> The next phase in the cycle is to calculate these various alternatives based on the goals and constraints. The focus of evaluation in this stage is mainly based on identifying the risk of the project.</p><p><strong>Development and validation:</strong> The next phase is to develop strategies that resolve uncertainties and risks. This process may include activities such as benchmarking, simulation, and prototyping.</p><p><strong>Planning:</strong> Finally, the next step is planned. The project is reviewed, and a choice made whether to continue with a further period of the spiral. If it is determined to keep, plans are drawn up for the next step of the project.</p><p>The development phase depends on the remaining risks. For example, if performance or user-interface risks are treated more essential than the program development risks, the next phase may be an evolutionary development that includes developing a more detailed prototype for solving the risks.</p><p><strong>The advantages of the Spiral Model :</strong></p><ul><li>Changing requirements can be accommodated.</li><li>Allows extensive use of prototypes.</li><li>Requirements can be captured more accurately.</li><li>Users see the system early.</li><li>Development can be divided into smaller parts and the risky parts can be developed earlier which helps in better risk management.</li></ul><p><strong>The disadvantages of the Spiral Model :</strong></p><ul><li>Management is more complex.</li><li>The end of the project may not be known early.</li><li>Not suitable for small or low-risk projects and could be expensive for small projects.</li><li>Process is complex</li></ul><p>5. <strong>Agile Model:</strong></p><p>— Agile process model refers to a software development approach based on iterative development. Agile methods break tasks into smaller iterations, or parts do not directly involve long term planning.</p><p>— Each iteration is considered as a short time “frame” in the Agile process model, which typically lasts from one to four weeks. The division of the entire project into smaller parts helps to minimize the project risk and to reduce the overall project delivery time requirements.</p><p>— Each iteration involves a team working through a full software development life cycle including planning, requirements analysis, design, coding, and testing before a working product is demonstrated to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*f9gJ1qndGAZzHKdgwwpUSQ.png" /></figure><p><strong>Phases of Agile Model:</strong></p><p>Following are the phases in the Agile model are as follows:</p><p><strong>1. Requirements gathering:</strong> In this phase, you must define the requirements. You should explain business opportunities and plan the time and effort needed to build the project. Based on this information, you can evaluate technical and economic feasibility.</p><p><strong>2. Design the requirements:</strong> When you have identified the project, work with stakeholders to define requirements. You can use the user flow diagram or the high-level UML diagram to show the work of new features and show how it will apply to your existing system.</p><p><strong>3. Construction/ iteration:</strong> When the team defines the requirements, the work begins. Designers and developers start working on their project, which aims to deploy a working product. The product will undergo various stages of improvement, so it includes simple, minimal functionality.</p><p><strong>4. Testing:</strong> In this phase, the Quality Assurance team examines the product’s performance and looks for the bug.</p><p><strong>5. Deployment:</strong> In this phase, the team issues a product for the user’s work environment.</p><p><strong>6. Feedback:</strong> After releasing the product, the last step is feedback. In this, the team receives feedback about the product and works through the feedback.</p><p><strong>Agile Testing Methods:</strong></p><ul><li>Scrum</li><li>Crystal</li><li>Dynamic Software Development Method(DSDM)</li><li>Feature Driven Development(FDD)</li><li>Lean Software Development</li><li>eXtreme Programming(XP)</li></ul><p><strong>Advantages of Agile Method:</strong></p><ol><li>Face-to-Face Communication with clients.</li><li>Efficient design and fulfils the business requirement.</li><li>Anytime changes are acceptable.</li><li>It reduces total development time.</li></ol><p><strong>Disadvantages of Agile Model:</strong></p><ol><li>Due to the shortage of formal documents, it creates confusion and crucial decisions taken throughout various phases can be misinterpreted at any time by different team members.</li><li>Due to the lack of proper documentation, once the project completes and the developers allotted to another project, maintenance of the finished project can become a difficulty.</li></ol><p><strong>Requirement Analysis Process:</strong></p><p>Requirement analysis is the process of determining user expectations for a new or modified product and is vital for effective QA software testing as it lays down the basic foundation for various stages of the SDLC. A typical Requirement Analysis process should identify testable requirements through frequent interactions with various stakeholders (Client, Business Analyst Technical Leads, etc.). The intent is to brainstorm and clarify any ambiguous requirements before getting to the next phase and to precisely define the Automation needs for the project.</p><p>— Requirements Gathering Steps:</p><p><strong>Step 1: Understand Pain Behind The Requirement</strong></p><p>Before building a digital solution for a business challenge, developers should understand the analog process in intimate detail. The developer should also understand the challenges the business faces without such a feature.</p><p><strong>Step 2: Eliminate Language Ambiguity</strong></p><p>The client could be using the phrase “login form” to describe complex functionality, such as charging users a subscription fee for premium content. While Step 1 should help alleviate a potential gap in understanding, one technique for clarification while gathering the requirements.</p><p><strong>Step 3: Identify Corner Cases</strong></p><p>Developers need time to consider the impact of the new ideas on the rest of the system. Corner cases are rare circumstances in which a feature may not work as expected and may be difficult. It’s essential to build in time to discuss the requirement in detail to identify and separate corner cases into additional features.</p><p><strong>Step 4: Write User Stories</strong></p><p>When it comes to things such as requirements gathering techniques, work with the team to document and save it into your project management system.</p><p><strong>Step 5: Create a Definition Of “Done”</strong></p><p>Outline the steps which will demonstrate to both the developer and the client that the requirement has been met to the client’s satisfaction. If the requirements aren’t tested at regular intervals, both parties may be in an unpleasant surprise when the project is delivered.</p><p><strong>Use Cases:</strong></p><p>A <strong>use case</strong> is a description of how a person who actually uses that process or system will accomplish a goal. It’s typically associated with software systems, but can be used in reference to any process. For example, imagine you’re a cook who has a goal of preparing a grilled cheese sandwich. The use case would describe through a series of written steps how the cook would go about preparing that sandwich. A use case helps you understand where errors could occur in the process and design features to resolve those errors.</p><p>Three elements that a use case must contain:</p><ol><li><strong>Actor: </strong>The actor<strong> </strong>is the user, which can be a single person or a group of people, interacting with a process</li><li><strong>System: </strong>The system<strong> </strong>is the process that’s required to reach the final outcome</li><li><strong>Goal: </strong>The goal<strong> </strong>is the successful user outcome</li></ol><p>Additional elements that are included in a complex use case:</p><ol><li><strong>Stakeholders</strong>, which are those who have an interest in how the system turns out, even if they aren’t direct users</li><li><strong>Preconditions</strong>, which are things that must be true before a use case is run</li><li><strong>Triggers</strong>, which are events that occur for a use case to begin</li></ol><p>For example the E-commerce application process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*rkyrTekk79xe0ugeXhGggQ.png" /><figcaption>Use case diagram of E-commerce</figcaption></figure><p>— The difference between the use case and the user story?</p><ul><li>User Stories contain user roles, goals and acceptance criteria.</li><li>Use Cases contain equivalent elements: an actor, flow of events and post.</li><li>The details of a User Story may not be documented to the same extreme as a Use Case.</li><li>Small increments for getting feedback more frequently, rather than having more detailed up-front requirement specifications as in Use Cases.</li></ul><p><strong>Agile methodologies:</strong></p><p>— Agile is an iterative approach to project management and software development.</p><p>— It’s flexible, and fast, and aims for continuous improvements in quality, using tools like Scrum and eXtreme Programming.</p><p>It has methodologies like Scrum, kanban, DevOps and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*fpgf2EkRjevZXsHuqCtO3Q.png" /><figcaption>Agile methodologies</figcaption></figure><p><strong>Scrum:</strong></p><p>is a framework that helps teams work together. It is a lightweight framework that helps people, teams, and organizations generate value through adaptive solutions for complex problems.</p><p>Scrum requires a Scrum Master to foster an environment where:</p><ol><li>A Product Owner orders the work for a complex problem into a Product Backlog.</li><li>The Scrum Team turns a selection of the work into an Increment of value during a Sprint.</li><li>The Scrum Team and its stakeholders inspect the results and adjust for the next Sprint.</li><li><em>Repeat</em></li></ol><p>Scrum is simple. The Scrum framework defines the parts required to implement Scrum theory. Scrum is built upon the collective intelligence of the people using it. Rather than provide people with detailed instructions, the rules of Scrum guide their relationships and interactions.</p><p><strong>— Standup meetings in scrum:</strong></p><p>Stand-ups are one of the fundamental parts of agile development. The goal is to go over important tasks that have been finished, are in progress, or are about to be started. They are very typical for software development teams but are gaining popularity in other fields of work such as marketing, project management, product development, and many others as well. This is because holding a short stand-up meeting provides a fresh and most of all effective alternative to typical round-table meetings that are dreaded by a large portion of the current workforce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*nAwKQmMcGKTCcJSMPCiT-A.jpeg" /><figcaption>Standup meeting</figcaption></figure><p><strong>— Sprints in scrum:</strong></p><p>A sprint is a short, time-boxed period when a scrum team works to complete a set amount of work. Sprints are at the very heart of scrum and agile methodologies, and getting sprints right will help your agile team ship better software with fewer headaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*klHOabpklsQIiMGJAsZrFw.png" /><figcaption>Sprint process</figcaption></figure><p>Sprint planning is an event in the scrum that kicks off the sprint. The purpose of sprint planning is to define what can be delivered in the sprint and how that work will be achieved. Sprint planning is done in collaboration with the whole scrum team. The sprint planning session kicks off the sprint by setting the agenda and focus. If done correctly, it also creates an environment where the team is motivated, challenged, and can be successful. Bad sprint plans can derail the team by setting unrealistic expectations</p><ul><li><strong>The What </strong>— The product owner describes the objective(or goal) of the sprint and what backlog items contribute to that goal. The scrum team decides what can be done in the coming sprint and what they will do during the sprint to make that happen.</li><li><strong>The How </strong>— The development team plans the work necessary to deliver the sprint goal. Ultimately, the resulting sprint plan is a negotiation between the development team and product owner based on value and effort.</li><li><strong>The Who</strong> — You cannot do sprint planning without the product owner or the development team. The product owner defines the goal based on the value that they seek. The development team needs to understand how they can or cannot deliver that goal. If either is missing from this event it makes planning the sprint almost impossible.</li><li><strong>The Inputs </strong>— A great starting point for the sprint plan is the product backlog as it provides a list of ‘stuff’ that could potentially be part of the current sprint. The team should also look at the existing work done in the increment and have a view of capacity.</li><li><strong>The Outputs </strong>— The most important outcome of the sprint planning meeting is that the team can describe the goal of the sprint and how it will start working toward that goal. This is made visible in the sprint backlog.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*DeKVdCkkaP9AjkmQp9faHQ.png" /><figcaption>Sprint planning</figcaption></figure><p><strong>DevOps:</strong></p><p>DevOps is the combination of practices, and tools that increase an organization’s ability to deliver applications and services at high speed.</p><p>— It is helping in evolving and improving products at a faster rate than organizations using traditional software development and infrastructure management processes. This speed enables organizations to better serve their customers and compete more effectively in the market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55ZC5wFJOQGopc_HvKLnxQ.png" /></figure><p><strong>Retrospective meeting:</strong></p><p>Retrospective meetings occur at the end of a project to help teams pause and think about improving future performance.</p><p><strong>Task planning</strong></p><p>Task planning is essentially breaking down your goals into tasks.</p><p>After these Santhosh conducted a team activity. He gave us a situation or case to study on it and asked us to present it.</p><p>My team got a case as “ABC Automotive company is looking for service booking application for its customers to book various services” We all discussed and documented various information about this topic and presented well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*coE1RGUXZMHkUVl2oVhfaA.jpeg" /><figcaption>Case Study</figcaption></figure><p><strong>Jira:</strong></p><p>— JIRA is a tool developed by the Australian Company Atlassian. This software is used for bug tracking, issue tracking, and project management.</p><p>— The JIRA full form is actually inherited from the Japanese word “Gojira” which means “Godzilla”. The basic use of this tool is to track issue and bugs related to your software and Mobile apps.</p><p>— It is also used for project management. The JIRA dashboard consists of many useful functions and features which make handling issues easy.</p><p><strong>Jira software can be used for the following purposes:</strong></p><ul><li>Requirements and Test case management</li><li>In Agile Methodology</li><li>Project Management</li><li>Software Development</li><li>Product Management</li><li>Task Management</li><li>Bug Tracking</li></ul><p>— We can use Jira in an easy way. Here is a step-by-step process on how to use Jira software:</p><p><strong>Step 1)</strong> Open Jira software and navigate to the Jira Home icon</p><p><strong>Step 2)</strong> Select Create project option</p><p><strong>Step 3)</strong> Choose a template from the library</p><p><strong>Step 4)</strong> Set up the columns as per your need from the Board settings</p><p><strong>Step 5)</strong> Create an issue</p><p><strong>Step 6)</strong> Invite your Team members and start working</p><p><strong>JIRA Issue: </strong>JIRA issue is nothing but a task. It would track bug or issue that underlies the project. Once we have imported the project then we can create issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJoBV_RjUGh8Lr8uRpBm8w.png" /><figcaption>Image of creating issue in a project</figcaption></figure><p><strong>Story: </strong>It is a user story.<strong> </strong>A user story general explanation of a software feature written from the perspective of the end user. Its purpose is to articulate how a software feature will provide value to the customer. These stories use non-technical language to provide context for the development team and their efforts. After reading a user story, the team knows why they are building, what they’re building, and what value it creates.</p><p><strong>Story Points: </strong>Story points are units of measure for expressing an estimate of the overall effort required to fully implement a product backlog item or any other piece of work. Teams assign story points relative to work complexity, the amount of work, and risk or uncertainty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJoBV_RjUGh8Lr8uRpBm8w.png" /><figcaption>Jira issue image</figcaption></figure><p><strong>Scrum in Jira: </strong>The scrum framework enables software teams to manage complex projects by creating a culture of collaboration. The Jira scrum board is the tool that unites teams around a single goal and promotes iterative, incremental delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgJvOdX7aFqliSIB65-IdQ.png" /><figcaption>Story is tested</figcaption></figure><p><strong>JIRA Scrum vs. JIRA Kanban:</strong></p><p>— Scrum Reports: The Burndown chart shows all the changes and scope changed while the sprint is still on, other charts include Sprint Report, Velocity Chart, Epic Report, etc.</p><p>— Scrum Agile Board: It allows the team to see the progress of sprints. This is the work mode, where you can see the board itself broken down into different statuses.</p><p>— Scrum backlog: This is where team will plan sprints and estimate stories that will go into each sprint.</p><p>— Kunban reports: The Control chart allows you to measure the cycle time for issues, showing the meantime and actual time taken to complete issues.</p><p>— Kanban constraints: Team can decide whether to increase or decrease the number of issues that should be displayed in each status.</p><p>— Kanban workflow: You can map columns to the statuses of your workflow. Simply by adding or removing columns the workflow can be changed when required.</p><p><strong>Programming fundamentals:</strong></p><p>Asaitambi from Delithe was a trainer for this session. He taught us about various concepts like algorithms, java programming, c programming, flow chart, and pseudocode.</p><p><strong>— Algorithm:</strong></p><p>An algorithm is a procedure used for solving a problem or performing a computation. Algorithms act as an exact list of instructions that conduct specified actions step by step.</p><p>Algorithms are widely used throughout all areas of IT. In mathematics and computer science, an algorithm usually refers to a small procedure that solves a recurrent problem. Algorithms are also used as specifications for performing data processing and play a major role in automated systems.</p><p>An algorithm could be used for sorting sets of numbers or for more complicated tasks.</p><p>Here are some of the algorithms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*Vf0gGaJf8qktu8_szfElGw.png" /><figcaption>Algorithm for login performing credentials</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*XgiP0wyR18Z_liSmr82YVg.png" /><figcaption>Algorithm for registration of driving license</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*pIdtPHqxOGeBTXo9z1GE8A.png" /><figcaption>Algorithm for finding the greatest of 3 numbers</figcaption></figure><p><strong>— Flow Chart:</strong></p><p>A flowchart is a picture of the separate steps of a process in sequential order. It is a generic tool that can be adapted for a wide variety of purposes, and can be used to describe various processes, such as a manufacturing process, an administrative or service process, or a project plan.</p><p><strong>— When to use a flow chart:</strong></p><ul><li>To develop an understanding of how a process is done</li><li>To study a process for improvement</li><li>To communicate to others how a process is done</li><li>When better communication is needed between people involved with the same process</li><li>To document a process</li><li>When planning a project</li></ul><p><strong>— Flow chart procedures:</strong></p><ol><li>Define the process to be diagrammed. Write its title at the top of the work surface.</li><li>Discuss and decide on the boundaries of your process: Where or when does the process start? Where or when does it end? Discuss and decide on the level of detail to be included in the diagram.</li><li>Brainstorm the activities that take place. Write each on a card or sticky note.</li><li>Arrange the activities in proper sequence.</li><li>When all activities are included and everyone agrees that the sequence is correct, draw arrows to show the flow of the process.</li><li>Review the flowchart with others involved in the process (workers, supervisors, suppliers, customers) to see if they agree that the process is drawn accurately.</li></ol><p><strong>— Flow chart examples:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ls06KQlyGzFOTP47gjtiWw.jpeg" /><figcaption>Flow chart for login credentials</figcaption></figure><p>Flow charts can be done using the raptor tool. It is a very useful tool by which we can check whether the flow chart is correct or not by giving inputs and checking for outputs.</p><p><strong>— Object-oriented Programming:</strong></p><p>Object-oriented programming (OOP) is a fundamental programming paradigm used by nearly every developer at some point in their career. Object Oriented Programming (OOP) is a programming paradigm that relies on the concept of classes and objects.</p><p>A class is an abstract blueprint used to create more specific, concrete objects. Classes often represent broad categories, like car or dog that share attributes. These classes define what attributes an instance of this type will have, like color, but not the value of those attributes for a specific object.</p><p>Classes can also contain functions, called methods available only to objects of that type. These functions are defined within the class and perform some action helpful to that specific type of object.</p><p><strong>— Benefits of OOP:</strong></p><ul><li>OOP models complex things as reproducible, simple structures</li><li>Reusable, OOP objects can be used across programs</li><li>Allows for class-specific behavior through polymorphism</li><li>Easier to debug, classes often contain all applicable information to them</li><li>Secure, protects information through encapsulation.</li></ul><p><strong>— Four Principles of OOP:</strong></p><p>The four pillars of object-oriented programming are:</p><ul><li><strong>Inheritance:</strong> child classes inherit data and behaviors from the parent class. Inheritance allows classes to inherit features of other classes. Put another way, parent classes extend attributes and behaviors to child classes. Inheritance supports reusability.</li><li><strong>Encapsulation:</strong> containing information in an object, exposing only selected information. Encapsulation means containing all important information inside an object<strong> </strong>and only exposing selected information to the outside world. Attributes and behaviors are defined by code inside the class template.</li><li><strong>Abstraction:</strong> only exposing high-level public methods for accessing an object. Abstraction means that the user interacts with only selected attributes and methods of an object. Abstraction is using simple classes to represent complexity. Abstraction is an extension of encapsulation. For example, you don’t have to know all the details of how the engine works to drive a car. Abstraction uses simplified, high-level tools, to access a complex object.</li></ul><p>— Using simple things to represent the complexity</p><p>— Hide complex details from the user.</p><ul><li><strong>Polymorphism:</strong> many methods can do the same task. Polymorphism means designing objects to share behaviors. Using inheritance, objects can override shared parent behaviors, with specific child behaviors. Polymorphism allows the same method to execute different behaviors in two ways: method overriding and method overloading.</li></ul><p>I executed programs on the eclipse tool. Here are some of the programs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk7mWIFmqI8HrWB1BUtRHA.png" /><figcaption>Employee oop program</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rQ34YDqvDSVNP8etGIPdsQ.png" /><figcaption>Car polymorphism program</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFlKCUjo48T3lgmF2tpNWg.png" /><figcaption>Bank encapsulation program</figcaption></figure><p><strong>CSS Selector:</strong></p><p>The CSS Selector combines an element selector and a selector value that can identify particular elements on a web page. CSS selector can be used to locate web elements without ID, class, or Name.</p><h3>Types of CSS Selectors (with examples)</h3><p>There are 5 types of CSS Selectors in Selenium tests-</p><ol><li>ID : css=&lt;HTML tag&gt;&lt;#&gt;&lt;Value of ID attribute&gt;</li><li>Class: css=&lt;HTML tag&gt;&lt;.&gt;&lt;Value of Class attribute&gt;</li><li>Attribute: css=&lt;HTML tag&gt;&lt;[attribute=Value of attribute]&gt;</li><li>Sub-String: css=&lt;HTML tag&gt;&lt;[attribute^=prefix of the string]&gt;, css=&lt;HTML tag&gt;&lt;[attribute$=suffix of the string]&gt;</li><li>Inner String: css=&lt;HTML tag&gt;&lt;:&gt;&lt;contains&gt;&lt;(text)&gt;</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8RkKBWHiR2muzvZI.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyHGnBu_0fTH371316kMnQ.png" /></figure><p><strong>Page Factory:</strong><br>Page Factory is a class provided by Selenium WebDriver to support Page Object Design patterns. In Page Factory, testers use <a href="http://twitter.com/FindBy">@FindBy</a> annotation. The initElements method is used to initialize web elements. Similarly, one can use <a href="http://twitter.com/FindBy">@FindBy</a> with different location strategies to find web elements and perform actions on them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f29b1ef9d73f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>