Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • GfG 160: Daily DSA
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App
Next Article:
What is Software Testing?
Next article icon

Software Testing Tutorial

Last Updated : 31 May, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Software testing is an important part of the software development lifecycle that involves verifying and validating whether a software application works as expected. It ensures reliable, correct, secure, and high-performing software across web, mobile applications, cloud, and CI/CD pipelines in DevOps.

Need of Software Testing:

  • Detects bugs before release.
  • Ensures software meets requirements.
  • Improves product quality and reliability.
  • Reduces cost of fixing issues later.
  • Validates performance, security, and usability.


1. Software Testing Basics

Software testing is the backbone of quality software. This section covers essentials like the Software Development Lifecycle (SDLC), Software Testing Lifecycle (STLC), testing levels, and methods, including functional testing, verification, and Agile testing. It explains what testing is and its real-world applications, perfect for beginners and a foundation for advanced topics like automation and cloud testing.

  • What is Software Testing?
  • Why is Software Testing important?
  • Core Principles of Software Testing
  • Software Development Life Cycle (SDLC)
  • Software Testing Life Cycle (STLC)
  • Software Testing vs. Quality Assurance
  • Software Testing Methodology

Testing Levels

Before we go deep into testing, it’s important to understand the different testing levels involved. These stages work together to make sure your software runs smoothly and meets the expected standards.

  • Unit Testing Fundamentals
  • Integration Testing
  • System Testing
  • Acceptance Testing
  • Read More: Levels of Software Testing.

Testing Types

Testing comes in different types, and each type focuses on checking a specific part of how your software performs. Here are the main types of software testing:

  • Functional Testing
  • Performance Testing Basics
  • Security Testing
  • Usability Testing
  • Compatibility Testing
  • Read More: Software Testing Types.

Verification Vs. Validation

Verification and Validation are two key parts of software testing. Together, they help make sure the software you deliver is both built correctly and meets user needs.

  • Verification vs. Validation: Key Concepts for Testers

Testing Methodologies

Testing methodologies show us how testing fits into the software development process. They help teams deliver better software more quickly and reliably.

  • Waterfall Testing
  • Agile Testing
  • DevOps Testing

Test Planning and Test Cases

Test planning sets the goals, scope, resources, and timelines for testing. Test cases are step-by-step guides that outline what to test, how to test it, and what results to expect.

  • What is Test Plan?
  • Test Plan Template
  • What is a Test Case?
  • How to Write Test Cases

2. Test Case Design and Execution

Good test case design and execution help find bugs early and make sure the software works as expected. This section introduces tools like TestRail that let you create and run test cases smoothly, whether you’re testing manually or automating your workflow.

Test Case Management Tools

These tools helps to organize and track all your test cases, making it simple to manage testing and work smoothly with your team.

  • TestRail
  • Other Test Management Tools

Test Design Techniques

Learn how to design test cases that find more bugs by focusing on edge cases, grouping similar inputs, and clearly mapping complex logic.

  • Boundary Value Analysis (BVA)
  • Equivalence Partitioning
  • Decision Table Testing

Defect Reporting

Use defect tracking tools to log bugs with all the essential details, clear steps to reproduce, severity level, and screenshots to help fix issues quickly.

  • What is Jira?
  • Bugzila Tracking and Managing Defects tool
  • Other Defect Testing

Test Execution

Manual testing works best for exploring new features and finding unexpected issues, while automation handles repetitive tests to save time and ensure consistency.

  • Manual Testing vs. Automation Testing

3. Test Management and Reporting

Good test management keeps testing organized, and clear reporting shows how well the software works. This section covers creating test plans, setting up test environments, and using reporting tools like Allure to help teams work smoothly and share results effectively.

  • Test Plans
  • Test Strategy
  • Setting Up Test Environments
  • Defect Management Process
  • Defect Tracking
  • Defect Lifecycle in Testing
  • Creating Test Reports
  • How To Write A Good Bug Report?
  • QA Metrics

4. Manual Testing

Manual testing is great for exploring apps, checking how easy they are to use, and doing quick checks without set plans. This section covers main types like black-box and usability testing, plus a simple login test case to help you get started with manual testing.

  • Black Box Testing
  • White Box Testing
  • Grey Box Testing
  • Functional Testing
  • Non-Functional Testing
  • Usability Testing
  • Acceptance Testing
  • Regression Testing
  • Read More about Manual Testing.

Manual Test Case for Login

Below is a sample test case for manually testing a login feature.

Test Case ID: TC_LOGIN_001
Description: Verify that a user can log in with valid credentials.
Preconditions: User has valid username and password; application is accessible.

Test Steps:

  • Navigate to the login page at https://www.saucedemo.com/.
  • Enter "standard_user" in the username field.
  • Enter "secret_sauce" in the password field.
  • Click the "Login" button.

Here are the detailed Test Cases For Registration and Login Page.

5. Automation Testing

Automation testing helps run repeated tests quickly. In this section, you’ll learn about tools like Selenium, Playwright, and Cypress, with an easy example to get you started.

Key Automation Frameworks

  • Selenium WebDriver Guide
  • TestNG Testing Framework
  • What is JUnit?
  • Cucumber Testing
  • Read More about Automated Testing.

Example: Selenium Test Script for Login

This is a simple Selenium WebDriver test in Java and python. It launches Chrome, goes to the Sauce Demo login page, fills in the username and password (standard_user and secret_sauce), clicks the login button, and then checks if the page title shows “Swag Labs” to confirm you’ve logged in successfully. At the end, it closes the browser.

Java
package ActionsTest;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class ExampleLoginTest {
    public static void main(String[] args) {
        // Set path to chromedriver if not set in system PATH
        // System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");

        WebDriver driver = new ChromeDriver();

        // Open the website
        driver.get("https://www.saucedemo.com/");

        // Enter username
        driver.findElement(By.id("user-name")).sendKeys("standard_user");

        // Enter password
        driver.findElement(By.id("password")).sendKeys("secret_sauce");

        // Click submit button
        driver.findElement(By.id("login-button")).click();

        // Assert page title contains "Welcome"
        if(driver.getTitle().contains("Swag Labs")) {
            System.out.println("Test Passed!");
        } else {
            System.out.println("Test Failed!");
        }

        // Close the browser
        driver.quit();
    }
}
Python
from selenium import webdriver
from selenium.webdriver.common.by import By

# Initialize Chrome driver
driver = webdriver.Chrome()

# Open the website
driver.get("https://www.saucedemo.com/")

# Enter username
driver.find_element(By.ID, "user-name").send_keys("standard_user")

# Enter password
driver.find_element(By.ID, "password").send_keys("secret_sauce")

# Click login button
driver.find_element(By.ID, "login-button").click()

# Check if page title contains "Swag Labs"
if "Swag Labs" in driver.title:
    print("Test Passed!")
else:
    print("Test Failed!")

# Close the browser
driver.quit()

Output:

Screenshot-2025-05-21-150012
Output in java
Screenshot-2025-05-21-150248
Output in python

6. Performance and Security Testing

Performance and security are very important for apps today. In this section, we’ll learn how to test if an app can handle many users and stay safe using tools like JMeter. This helps make sure apps run fast and protect data.

Performance Testing

Performance testing checks how fast, scalable, and stable your software is when many users are using it at the same time.

  • Load Testing
  • Stress Testing
  • Endurance Testing
  • Spike Testing

Security Testing

Security testing finds weaknesses in your software to keep user data safe and secure.

  • Security Testing
  • Penetration Testing
  • Other Security Testing Tools.

7. API and Mobile Testing

APIs and mobile apps are key parts of today’s software. They need special testing to make sure they work well and run smoothly on different devices. This section covers API testing with Postman and mobile app testing with Appium.

API Testing

API testing checks that the interfaces between software components work correctly and perform well.

  • API Testing Basics
  • How to test an API using Postman?
  • Postman API Testing Complete Guide
  • Best Practices For REST API Testing
  • Other Codeless API Testing Tools.

Example: Test a GET request in Postman

json
GET https://www.saucedemo.com/users
Headers: Authorization: Bearer 
Expected Response: 200 OK, JSON user list
  • Best Practices for REST API Testing in 2025

Mobile Testing

Mobile testing ensures apps run smoothly on different devices and operating systems.

  • What is Mobile Testing?
  • Fundamentals of Mobile Testing
  • What is Appium?
  • Appium Automation
  • Mobile Application Testing
  • Why Cross Browser Testing Important?
  • Cross-Browser Testing Tools
  • Other Mobile Testing Tool.

8. Testing Tools and Frameworks

Testing tools help speed up and organize the testing process, making it easier to automate and manage tests in today’s fast-moving software world. This section introduces key tools like Selenium, Playwright, and TestRail, along with practical examples to guide you in choosing the right tools for web, mobile, or API testing.

Manual Testing Tools

Manual testing tools help track bugs, organize test cases, and manage test case workflows without code automation.

  • Jira Test Case and Defect Management Tool
  • TestRail Streamlining Manual Test Management Tool
  • Other Manual Testing Tools.

Automation Testing Tools

Automation tools increase testing speed by running repetitive tests automatically across browsers, apps, and APIs, which cause saving time and reducing errors.

  • Selenium WebDriver: Complete Guide
  • Cypress: Modern web-automation
  • Appium: Automating Mobile Apps
  • JMeter: Performance Testing
  • Postman API Testing for Beginners
  • Other Automation Testing Tools.

Performance Testing Tools

Performance tools simulate real user traffic to see how software handles stress and heavy usage, helping ensure it stays fast and stable.

  • What is JMeter testing tool?
  • How to Use JMeter for Performance Testing?

Security Testing Tools

Security tools scan applications to find vulnerabilities and protect against threats.

  • Burp Suite
  • Other Security Testing Tools.

CI/CD Integration Tools

CI/CD tools automate testing within the development workflow, helping teams deliver updates faster and with fewer errors.

  • Jenkins
  • GitLab CI

Choosing the Right Tool

Choose tools based on your project needs whether it’s web or mobile testing along with your team’s skills and budget. Open-source options like Selenium are free and flexible, while commercial tools like LoadRunner provide powerful features for complex testing.

  • How to Choose the Right Testing Tool?

9. Advanced Testing Concepts

In this section, we’ll explore AI-powered testing tools that automatically create and maintain tests, the shift-left approach to testing earlier in development, and cloud testing for scalable environments.

  • TDD/BDD
  • BDD with Cucumber
  • What is AI Testing?
  • AI-Testing Tools
  • Shift-Left Testing
  • Cloud Testing
  • Exploratory Testing
  • Globalization and Localization Testing

10. Software Testing interview Questions

Interview preparation is key to landing QA roles in 2025. This section offers a handy list of automation, manual, and API testing questions organized by role and difficulty to help you confidently show off your skills

  • Software Testing Interview Questions
  • Top 50 Automation Testing Interview Questions 2025 Updated
  • Top 50 Manual Testing Interview Questions and Answers (2025 Updated)
  • Top 50 API Testing Interview Questions

Best Approach to Learn Software Testing

A structured learning path accelerates mastery of software testing. This section outlines a step-by-step approach, including 2025 trends like AI testing and cloud testing, with projects and community resources to build hands-on skills.

  1. Understand SDLC, STLC, and testing principles.
  2. Learn Java or Python for automation.
  3. Master TestRail for manual testing.
  4. Practice Selenium, Playwright, or Cypress automation.
  5. Explore JMeter and OWASP ZAP for performance and security.
  6. Test open-source projects on GitHub.
  7. Join Ministry of Testing or Test Automation University.
  8. Follow 2025 trends: AI testing, low-code platforms, containerized testing.

By following this structured approach, you’ll gain both the foundational knowledge and practical experience to do effectively testing.

For more check out: How to Become a Software Tester in 2025

Software Testing Certifications

Certifications validate expertise and boost career opportunities in QA, automation, and DevOps roles. This section lists top certifications like ISTQB and Selenium Professional, with details on costs and opportunities, helping you plan your career in 2025.

CertificationExperienceDetailsFeesPost-Certification Opportunities
ISTQB Foundation LevelBeginnerCovers testing principles, test design, and management.$250 / ₹20,000QA Tester, Junior QA Engineer
ISTQB Agile Tester1-2 yearsFocuses on testing in Agile environments.$200 / ₹16,000Agile Tester, QA Analyst
Certified Software Tester (CSTE)2+ yearsEmphasizes test planning, execution, and metrics.$350 / ₹28,000QA Engineer, Test Lead
Selenium Professional Certification1-2 yearsValidates Selenium automation skills.$300 / ₹24,000Automation Tester, SDET

For more check out: Software Testing Certifications in 2025

Career & Jobs in Software Testing 2025

Software testing offers various career paths in 2025, from QA engineering to SDET roles. This section highlights in-demand roles, salaries, and skills like automation and cloud testing, with tips to build a successful career.

CareerAverage Salary (INR)Average Salary (USD)
QA Engineer₹500,000 – ₹1,500,000$50,000 – $100,000
Automation Tester₹700,000 – ₹2,000,000$70,000 – $120,000
Performance Test Engineer₹800,000 – ₹2,200,000$80,000 – $130,000
Security Tester₹900,000 – ₹2,500,000$90,000 – $150,000
SDET₹1,000,000 – ₹2,800,000$100,000 – $160,000

For more check out: Top Skills for Software Testers in 2025

Companies Using Software Testing

Top tech companies depend on software testing to keep their products reliable, from cloud services to mobile apps. This section showcases how Google, Amazon, and others use testing, emphasizing its critical role in 2025’s tech landscape.

CompanySoftware Testing Focus
GoogleTests cloud services, AI, and apps for reliability.
AmazonEnsures quality for AWS, e-commerce, and Alexa.
MicrosoftValidates Windows, Azure, and enterprise software.
MetaTests Facebook, Instagram, and WhatsApp for performance.
NetflixEnsures seamless streaming and algorithm accuracy.
Infosys/TCSProvides testing services for global clients.
SalesforceTests CRM and cloud-based applications.

Next Article
What is Software Testing?
author
kartik
Improve
Article Tags :
  • Software Testing
  • Software Testing
  • Tutorials

Similar Reads

  • Software Testing Tutorial
    Software testing is an important part of the software development lifecycle that involves verifying and validating whether a software application works as expected. It ensures reliable, correct, secure, and high-performing software across web, mobile applications, cloud, and CI/CD pipelines in DevOp
    10 min read
  • What is Software Testing?
    Software testing is an important process in the Software Development Lifecycle(SDLC). It involves verifying and validating that a Software Application is free of bugs, meets the technical requirements set by its Design and Development, and satisfies user requirements efficiently and effectively.Here
    11 min read
  • Principles of Software testing - Software Testing
    Software testing is an important aspect of software development, ensuring that applications function correctly and meet user expectations. In this article, we will go into the principles of software testing, exploring key concepts and methodologies to enhance product quality. From test planning to e
    10 min read
  • Software Development Life Cycle (SDLC)
    Software development life cycle (SDLC) is a structured process that is used to design, develop, and test good-quality software. SDLC, or software development life cycle, is a methodology that defines the entire procedure of software development step-by-step. The goal of the SDLC life cycle model is
    11 min read
  • Software Testing Life Cycle (STLC)
    The Software Testing Life Cycle (STLC) in which a process to verify whether the Software Quality meets to the expectations or not.STLC is an important process that provides a simple approach to testing through the step-by-step process, which we are discussing here. Software Testing Life Cycle (STLC)
    7 min read
  • Types of Software Testing
    Software testing is a important of software development life-cycle that ensures a product works correctly, meets user expectations, and is free of bugs. There are different types of software testing, each designed to validate specific aspects of an application, such as functionality, performance, se
    15+ min read
  • Levels of Software Testing
    Software Testing is an important part of the Software Development Life Cycle which is help to verify the product is working as expected or not. In SDLC, we used different levels of testing to find bugs and errors. Here we are learning those Levels of Testing in detail.Table of ContentWhat Are the Le
    4 min read
  • Test Maturity Model - Software Testing
    The Test Maturity Model (TMM) in software testing is a framework for assessing the software testing process to improve it. It is based on the Capability Maturity Model(CMM). It was first produced by the Illinois Institute of Technology to assess the maturity of the test processes and to provide targ
    8 min read
  • SDLC MODELS

    • Waterfall Model - Software Engineering
      The Waterfall Model is a Traditional Software Development Methodology. It was first introduced by Winston W. Royce in 1970. It is a linear and sequential approach to software development that consists of several phases. This classical waterfall model is simple and idealistic. It is important because
      13 min read

    • What is Spiral Model in Software Engineering?
      The Spiral Model is one of the most important SDLC model. The Spiral Model is a combination of the waterfall model and the iterative model. It provides support for Risk Handling. The Spiral Model was first proposed by Barry Boehm. This article focuses on discussing the Spiral Model in detail.Table o
      9 min read

    • What is a Hybrid Work Model?
      Hybrid means a thing made by a combination of two different elements and the resulting hybrid element acquires characteristics of both underline elements. The following topics of the hybrid model will be discussed here:What is the Hybrid Model?Why the Hybrid Model?When To Use a Hybrid ModelProcess o
      13 min read

    • Prototyping Model - Software Engineering
      Prototyping Model is a way of developing software where an early version, or prototype, of the product is created and shared with users for feedback. The Prototyping Model concept is described below: Table of ContentWhat is Prototyping Model?Phases of Prototyping ModelTypes of Prototyping ModelsAdva
      7 min read

    • SDLC V-Model - Software Engineering
      The SDLC V-Model is a Types of Software Development Life Cycle (SDLC), which is used in Software Development process. In V-Model is the extension of the Traditional Software Development Model.It is creating a Structure like the "V" which includes the different phases which we are discussing here in
      10 min read

    TYPES OF TESTING

    • Manual Testing - Software Testing
      Manual testing is a crucial part of software development. Unlike automated testing, it involves a person actively using the software to find bugs and issues. This hands-on approach helps ensure the software works as intended and meets user needs. In this article, we'll explain what manual testing is
      12 min read

    • Automation Testing - Software Testing
      Automated Testing means using special software for tasks that people usually do when checking and testing a software product. Nowadays, many software projects use automation testing from start to end, especially in agile and DevOps methods. This means the engineering team runs tests automatically wi
      15+ min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

'); // $('.spinner-loading-overlay').show(); let script = document.createElement('script'); script.src = 'https://assets.geeksforgeeks.org/v2/editor-prod/static/js/bundle.min.js'; script.defer = true document.head.appendChild(script); script.onload = function() { suggestionModalEditor() //to add editor in suggestion modal if(loginData && loginData.premiumConsent){ personalNoteEditor() //to load editor in personal note } } script.onerror = function() { if($('.editorError').length){ $('.editorError').remove(); } var messageDiv = $('
').text('Editor not loaded due to some issues'); $('#suggestion-section-textarea').append(messageDiv); $('.suggest-bottom-btn').hide(); $('.suggestion-section').hide(); editorLoaded = false; } }); //suggestion modal editor function suggestionModalEditor(){ // editor params const params = { data: undefined, plugins: ["BOLD", "ITALIC", "UNDERLINE", "PREBLOCK"], } // loading editor try { suggestEditorInstance = new GFGEditorWrapper("suggestion-section-textarea", params, { appNode: true }) suggestEditorInstance._createEditor("") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } //personal note editor function personalNoteEditor(){ // editor params const params = { data: undefined, plugins: ["UNDO", "REDO", "BOLD", "ITALIC", "NUMBERED_LIST", "BULLET_LIST", "TEXTALIGNMENTDROPDOWN"], placeholderText: "Description to be......", } // loading editor try { let notesEditorInstance = new GFGEditorWrapper("pn-editor", params, { appNode: true }) notesEditorInstance._createEditor(loginData&&loginData.user_personal_note?loginData.user_personal_note:"") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } var lockedCasesHtml = `You can suggest the changes for now and it will be under 'My Suggestions' Tab on Write.

You will be notified via email once the article is available for improvement. Thank you for your valuable feedback!`; var badgesRequiredHtml = `It seems that you do not meet the eligibility criteria to create improvements for this article, as only users who have earned specific badges are permitted to do so.

However, you can still create improvements through the Pick for Improvement section.`; jQuery('.improve-header-sec-child').on('click', function(){ jQuery('.improve-modal--overlay').hide(); $('.improve-modal--suggestion').hide(); jQuery('#suggestion-modal-alert').hide(); }); $('.suggest-change_wrapper, .locked-status--impove-modal .improve-bottom-btn').on('click',function(){ // when suggest changes option is clicked $('.ContentEditable__root').text(""); $('.suggest-bottom-btn').html("Suggest changes"); $('.thank-you-message').css("display","none"); $('.improve-modal--improvement').hide(); $('.improve-modal--suggestion').show(); $('#suggestion-section-textarea').show(); jQuery('#suggestion-modal-alert').hide(); if(suggestEditorInstance !== null){ suggestEditorInstance.setEditorValue(""); } $('.suggestion-section').css('display', 'block'); jQuery('.suggest-bottom-btn').css("display","block"); }); $('.create-improvement_wrapper').on('click',function(){ // when create improvement option clicked then improvement reason will be shown if(loginData && loginData.isLoggedIn) { $('body').append('
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status) }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ } $('.improve-modal--improvement').show(); }); const showErrorMessage = (result,statusCode) => { if(!result) return; $('.spinner-loading-overlay:eq(0)').remove(); if(statusCode == 403) { $('.improve-modal--improve-content.error-message').html(result.message); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); return; } } function suggestionCall() { var editorValue = suggestEditorInstance.getValue(); var suggest_val = $(".ContentEditable__root").find("[data-lexical-text='true']").map(function() { return $(this).text().trim(); }).get().join(' '); suggest_val = suggest_val.replace(/\s+/g, ' ').trim(); var array_String= suggest_val.split(" ") //array of words var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(editorValue.length <= 2000){ var payload = { "gfg_post_id" : `${post_id}`, "suggestion" : `${editorValue}`, } if(!loginData || !loginData.isLoggedIn) // User is not logged in payload["g-recaptcha-token"] = gCaptchaToken jQuery.ajax({ type:'post', url: "https://apiwrite.geeksforgeeks.org/suggestions/auth/create/", xhrFields: { withCredentials: true }, crossDomain: true, contentType:'application/json', data: JSON.stringify(payload), success:function(data) { if(!loginData || !loginData.isLoggedIn) { grecaptcha.reset(); } jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('.suggest-bottom-btn').css("display","none"); $('#suggestion-section-textarea').hide() $('.thank-you-message').css('display', 'flex'); $('.suggestion-section').css('display', 'none'); jQuery('#suggestion-modal-alert').hide(); }, error:function(data) { if(!loginData || !loginData.isLoggedIn) { grecaptcha.reset(); } jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Something went wrong."); jQuery('#suggestion-modal-alert').show(); error_msg = true; } }); } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Minimum 4 Words and Maximum Words limit is 1000."); jQuery('#suggestion-modal-alert').show(); jQuery('.ContentEditable__root').focus(); error_msg = true; } } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Enter atleast four words !"); jQuery('#suggestion-modal-alert').show(); jQuery('.ContentEditable__root').focus(); error_msg = true; } if(error_msg){ setTimeout(() => { jQuery('.ContentEditable__root').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('
'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // script for grecaptcha loaded in loginmodal.html and call function to set the token setGoogleRecaptcha(); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('
'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status); }, }); });
"For an ad-free experience and exclusive features, subscribe to our Premium Plan!"
Continue without supporting
`; $('body').append(adBlockerModal); $('body').addClass('body-for-ad-blocker'); const modal = document.getElementById("adBlockerModal"); modal.style.display = "block"; } function handleAdBlockerClick(type){ if(type == 'disabled'){ window.location.reload(); } else if(type == 'info'){ document.getElementById("ad-blocker-div").style.display = "none"; document.getElementById("ad-blocker-info-div").style.display = "flex"; handleAdBlockerIconClick(0); } } var lastSelected= null; //Mapping of name and video URL with the index. const adBlockerVideoMap = [ ['Ad Block Plus','https://media.geeksforgeeks.org/auth-dashboard-uploads/abp-blocker-min.mp4'], ['Ad Block','https://media.geeksforgeeks.org/auth-dashboard-uploads/Ad-block-min.mp4'], ['uBlock Origin','https://media.geeksforgeeks.org/auth-dashboard-uploads/ub-blocke-min.mp4'], ['uBlock','https://media.geeksforgeeks.org/auth-dashboard-uploads/U-blocker-min.mp4'], ] function handleAdBlockerIconClick(currSelected){ const videocontainer = document.getElementById('ad-blocker-info-div-gif'); const videosource = document.getElementById('ad-blocker-info-div-gif-src'); if(lastSelected != null){ document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.backgroundColor = "white"; document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.borderColor = "#D6D6D6"; } document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.backgroundColor = "#D9D9D9"; document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.borderColor = "#848484"; document.getElementById('ad-blocker-info-div-name-span').innerHTML = adBlockerVideoMap[currSelected][0] videocontainer.pause(); videosource.setAttribute('src', adBlockerVideoMap[currSelected][1]); videocontainer.load(); videocontainer.play(); lastSelected = currSelected; }

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences