Manual Testing

Test Case for Registration in Gmail.

Test Case Title: Registration in Gmail

Test Case ID: RG001

Precondition:

  • The user has a web browser and a stable internet connection.
  • The user has not registered with the email address being used for this test case.

Test Steps:

  1. Open a web browser and navigate to the Gmail registration page.
  2. Enter a valid first name and last name in the respective fields.
  3. Enter a valid email address that has not been used for a Gmail account before.
  4. Create a strong password that meets the password requirements provided on the page.
  5. Confirm the password by re-entering it in the provided field.
  6. Click on the “Next” button to proceed to the next step.
  7. Enter the user’s birthdate in the respective fields.
  8. Select the user’s gender from the options provided.
  9. Optionally, enter a phone number and/or recovery email address.
  10. Complete the captcha challenge.
  11. Read and agree to the terms of service and privacy policy by checking the corresponding checkboxes.
  12. Click on the “Create Account” button to submit the registration form.

Expected Results:

  • The user should be able to complete the registration process without encountering any errors or issues.
  • After submitting the registration form, the user should be redirected to the Gmail welcome page or the Gmail inbox.
  • The user should receive an email confirmation of the new Gmail account creation.
  • The new account should be accessible from any device by logging in with the email address and password provided during registration.
Manual Testing

Test Case for Login into Gmail

Test Case Name: Login to Gmail

Test Objective: To verify that a user can successfully login to their Gmail account

Test Steps:

  1. Open a web browser and navigate to the Gmail login page (https://www.gmail.com)
  2. Enter a valid email address in the “Email or phone” field
  3. Click on the “Next” button
  4. Enter a valid password in the “Password” field
  5. Click on the “Next” button
  6. Verify that the user is successfully logged in to their Gmail account and the inbox is displayed

Test Data:

  • Valid email address
  • Valid password

Expected Result:

  • The user should be able to successfully login to their Gmail account and the inbox should be displayed.

Test Environment:

  • Web browser (Google Chrome, Mozilla Firefox, etc.)
  • Internet connection

Test Execution:

  • Execute the above test steps in the test environment using the provided test data.
  • Observe the behavior of the application during the test execution.
  • If the actual result matches the expected result, mark the test case as “Pass”. If the actual result does not match the expected result, mark the test case as “Fail”.
  • Record any defects or issues encountered during the test execution in a defect tracking system.
ChatGPT

Getting brief of any articles in short using ChatGPT

Just copy paste your favorite blog in ChatGPT text box and enter, it will give you the short brief for your articles:

Starting to learn about DBT has been interesting, and certainly a learning curve. Some of it feels a bit obvious and wishy-washy, but there’s a lot to think about and put into practice. In fact, something in a couple of seminars that I had at university triggered me to connect some of the practices/ideas to an art historical theory. My ‘Materials of Art and Architecture’ module included a seminar on clothing and how it relates to identity. We chose items that we felt represented us or that we held close to our heart to share and have a conversation about them. Another seminar I had which explored the same kinds of ideas was in my module ‘Transmissions and Connections’. We were asked to think of an object that we would take if we had to move away to somewhere remote that made had sentimental value- and we all chose things that connected us to friends and family. For me, it was my signet ring. My dad gifted me a signet ring with my initials on and name engraved for my 18th birthday, and I’ve worn it almost every day since. I went abroad with my boyfriend to Florida and that is the only time I didn’t wear it, because I forgot to take it in the early morning rush to leave. It felt so strange not to have it, and so nice to wear it when I got back. I think especially because I have a very close relationship with my father, as he has brought me up practically on his own, I place a lot of value on it. It reminds me of that history and how much he cares, especially now I am five hours away from home. Clothing can be such an integral part of our identities. I tend to go through cycles of wearing specific things too, perhaps another way of creating a sense of self. Previously this was particular jumpers or bracelets etc. Currently, I wear my Ferrari F1 coat every day. This partly is due to my almost patriotic-esc love for the sport and team, and phases of obsession that I go through, but also a connection to my partner who bought it for me as my Christmas present this year. To add, another piece of jewellery that I always wear and gives me a connection to him is my little Lego piece necklace that makes a heart when connected to his. I guess it makes me feel closer to him, and brings back a lot of funny and sweet memories. But, why is a having a sense of self and personal identity important? And, what does it mean? Lack of self identity is a big part of BPD, and I don’t think I really understood what that actually meant until very recently. When you have a strong sense of self, you essentially have a grounding while things around you are changing. Your environment (location and people) can shift, but you stay the same. Without it, it gives that person no stability in life, and it’s easy to get swept away in emotions. People leaving or things changing that is out of our control feels like our world is being ripped apart. The ‘lack of control’ furthers the feelings of paranoia/fear and unease. I have a sense of identity in a literal sense- things I like and dislike, motivations, and morals that are different to other peoples. But, all of my self worth and behaviours/actions lie in the hands of other people, namely my partner. My emotions always depend on him, and so do my routines or activities I partake in. He’s not controlling and never directs this, it’s happened this way because I choose to always wait for him to be free, living my life around his schedule, and need his opinion to understand whether what I decided to do is good or bad. If the decision I make isn’t one he’d pick or he isn’t particularly interested in what I am doing, then it often triggers an episode. For example, when I started my blog I expected him to ask to read or see it and he didn’t. This made me feel very unwanted and unimportant and made me have a breakdown, but the reality is that he just has dyslexia and doesn’t particularly like reading. It wasn’t personal. So, this is something I need to work on developing in order to have the ability to tackle emotions better. It clearly isn’t just clothing and objects that create this feeling though, which I think is evident via the way I am currently trying to tackle it. Obviously one of the things (which I mentioned previously) that I am doing is to start up some new hobbies, as well as becoming reinvested in old ones. This includes this blog, creating art, and getting more stuck in to my degree which I am very passionate about. Other than that, what I decided to do recently though was also create a schedule for myself. I generally always feel good when I have a routine and things to do (like university lectures or going to work) but when I don’t, I slip back into these negative feelings. Therefore, I have created a timetable that has things that I will now do every day including a time when I need to be out of bed, come off my phone, shower/eat etc, but also a list of things I can do when nothing is planned. When I don’t have anything on, I often find myself sitting inside and scrolling on social media for way too long, and then it’s easy to slip into negative thought processes. I combatted this in part through going for a walk every day, but that of course doesn’t cover the whole evening, especially when it’s later or the weather isn’t nice. This timetable means that I am also not relying on other people to do things and go out as I was before, but creating things that I can partake in doing without the need of them. I still have time to play Minecraft over the phone with Mog, call Toby, or go on a walk with Lou for example… but I don’t *need* the input of others in order to do something practical. So far, I have found this really helpful, and I recommend it if you are struggling with similar issues. I don’t personally like the idea of organised religion or the history from which it derives, but when asked, I would identify as Buddhist. I think I kind of have my own take on it though, a middle ground between the western ideas of the religion (the meditative philosophy mindset) and the more classically religious aspects from Asia (ideas of hell, hungry ghosts, reincarnation, etc). The reason I mention this is because I wanted to note Buddhism’s ideas on ‘suffering’- and how the whole religion really relates to working on better mental health. According to Buddhism, suffering comes from attachments. This can be material, but for me I think it really relates to relationships with others. Most of what triggers my episodes comes from the fear of losing people and real or perceived abandonment, so I think the idea of trying to let go of this and live in the moment is really integral to overcoming many mental health issues. It’s just about being more accepting of situations, enjoying things as they are rather than being so attached that you fear people will leave in the future. It’s not as easy as just ‘don’t think like that anymore’ or ‘let go of that fear’, but the first step to overcoming it is definitely recognising the issue. So, I haven’t had too much time to read my DBT workbook yet or get into it, but I wanted to share some of these thoughts on the back of my seminar about identity and how it links to objects. I wonder if anyone has any object/item that they feel very sentimentally attached to that they’d like to share? Endnote: A big thank you to Sophia Heilig for the tip and lovely message! It really made my day x

Here is the response from chatGPT:

The author describes their experience of learning about DBT, and how it relates to their personal identity. They connect their experiences in university seminars, where they discussed the relationship between clothing and identity, and the importance of personal objects. The author also talks about their struggle with a lack of self-identity and how it relates to their mental health. They describe their tendency to rely on others, particularly their partner, for their sense of self-worth and how they are working to change this through creating a schedule and pursuing hobbies.

ChatGPT

How can we use ChatGPT in Generating Project Synopsis…

RK: can you please write a project synopsis to final year project, Title: Home Automation System

AI: Sure! Here’s a possible project synopsis for a final year project on Home Automation System:

Title: Home Automation System

Introduction: Home automation systems are gaining popularity due to their ability to enhance the convenience, security, and energy efficiency of homes. These systems allow homeowners to control various home devices and appliances, such as lighting, HVAC systems, security cameras, and entertainment systems, using a central control panel or a mobile app. This project aims to design and develop a home automation system that provides users with a seamless, personalized, and intelligent experience.

Objectives: The objectives of this project are as follows:

  • To design a modular and scalable home automation system architecture that can support various devices and protocols.
  • To develop a user-friendly mobile app that allows users to control their home devices and appliances remotely and easily.
  • To implement intelligent features that optimize the energy consumption of home devices and appliances based on user preferences and behavior.
  • To integrate security and safety features that detect and alert users of any unusual activities in their homes.

Methodology: The project will follow a systematic development process that includes the following stages:

  • Requirements gathering and analysis: Identify the functional and non-functional requirements of the home automation system and its components, such as sensors, actuators, and controllers.
  • Design and prototyping: Develop a conceptual design of the home automation system architecture, including the hardware and software components, and build a prototype.
  • Implementation and testing: Implement the home automation system and its components using suitable programming languages, protocols, and frameworks, and test their functionalities and performance.
  • Integration and optimization: Integrate the components of the home automation system and optimize their interactions and energy consumption.
  • User testing and evaluation: Conduct user testing and evaluation of the home automation system and its mobile app to assess their usability, effectiveness, and satisfaction.

Expected outcomes: The expected outcomes of this project are:

  • A functional and modular home automation system that supports various devices and protocols.
  • A user-friendly and intuitive mobile app that allows users to control their home devices and appliances remotely and easily.
  • Intelligent features that optimize the energy consumption of home devices and appliances based on user preferences and behavior.
  • Security and safety features that detect and alert users of any unusual activities in their homes.
  • A report that documents the project’s requirements, design, implementation, testing, and evaluation.

Conclusion: In conclusion, this project aims to develop a home automation system that provides users with a seamless, personalized, and intelligent experience. The system’s modular and scalable architecture, user-friendly mobile app, intelligent features, and security and safety features make it a valuable addition to any modern home.

Project Report:

Rk: can you generate the project report for above project

AI: Sure! Here’s a possible project report for the Home Automation System project:

Project Report: Home Automation System

  1. Introduction The Home Automation System project aims to design and develop a home automation system that enhances the convenience, security, and energy efficiency of homes. The project’s objectives are to design a modular and scalable home automation system architecture, develop a user-friendly mobile app, implement intelligent features, and integrate security and safety features. The project followed a systematic development process that included requirements gathering and analysis, design and prototyping, implementation and testing, integration and optimization, and user testing and evaluation.
  2. Requirements Gathering and Analysis The requirements gathering and analysis stage identified the functional and non-functional requirements of the home automation system and its components. The functional requirements included the ability to control various home devices and appliances, such as lighting, HVAC systems, security cameras, and entertainment systems, using a central control panel or a mobile app. The non-functional requirements included the system’s modularity, scalability, reliability, security, and energy efficiency.
  3. Design and Prototyping The design and prototyping stage developed a conceptual design of the home automation system architecture, including the hardware and software components, and built a prototype. The system’s architecture consisted of three layers: the hardware layer, the middleware layer, and the application layer. The hardware layer included sensors, actuators, and controllers that interacted with the physical environment. The middleware layer included a message broker and a rules engine that enabled communication and decision-making among the hardware and application layers. The application layer included the mobile app and the user interface that enabled users to interact with the system.
  4. Implementation and Testing The implementation and testing stage implemented the home automation system and its components using suitable programming languages, protocols, and frameworks and tested their functionalities and performance. The system’s implementation used open-source software and hardware components, such as Raspberry Pi, Node-RED, MQTT, and React Native. The testing process included unit testing, integration testing, and acceptance testing.
  5. Integration and Optimization The integration and optimization stage integrated the components of the home automation system and optimized their interactions and energy consumption. The integration process involved connecting the hardware and middleware layers using MQTT, designing and deploying rules using Node-RED, and integrating the mobile app with the system using RESTful APIs. The optimization process involved implementing intelligent features that optimized the energy consumption of home devices and appliances based on user preferences and behavior, such as scheduling, automation, and feedback mechanisms.
  6. User Testing and Evaluation The user testing and evaluation stage conducted user testing and evaluation of the home automation system and its mobile app to assess their usability, effectiveness, and satisfaction. The user testing process involved recruiting participants and conducting usability tests, cognitive walkthroughs, and surveys. The evaluation process involved analyzing the test results and feedback and improving the system’s design and implementation based on the findings.
  7. Conclusion In conclusion, the Home Automation System project developed a functional and modular home automation system that supports various devices and protocols, a user-friendly and intuitive mobile app that allows users to control their home devices and appliances remotely and easily, intelligent features that optimize the energy consumption of home devices and appliances based on user preferences and behavior, and security and safety features that detect and alert users of any unusual activities in their homes. The project’s systematic development process and testing and evaluation activities ensured the system’s reliability, security, and usability. Future work could focus on integrating more advanced artificial intelligence and machine learning algorithms and expanding the system’s functionality and interoperability with other smart home systems.

Flow Chart:

Start
|
|-------- Requirements Gathering and Analysis
|               |
|               |-------- Identify Functional Requirements
|               |-------- Identify Non-functional Requirements
|
|-------- Design and Prototyping
|               |
|               |-------- Develop Conceptual Design
|               |-------- Build Prototype
|
|-------- Implementation and Testing
|               |
|               |-------- Implement Hardware and Software Components
|               |-------- Test Functionality and Performance
|
|-------- Integration and Optimization
|               |
|               |-------- Connect Hardware and Middleware Layers
|               |-------- Design and Deploy Rules
|               |-------- Integrate Mobile App with System
|               |-------- Implement Intelligent Features
|               |-------- Optimize Energy Consumption
|
|-------- User Testing and Evaluation
|               |
|               |-------- Recruit Participants
|               |-------- Conduct Usability Tests and Surveys
|               |-------- Analyze Test Results and Feedback
|               |-------- Improve System Design and Implementation
|
End

Note that this flowchart is a simplified representation of the project’s development process and omits some details and activities that may be necessary for the project’s success. Also, the flowchart’s structure may vary depending on the project’s specific requirements and constraints.

To build a prototype of the Home Automation System, you can follow these steps:

  1. Choose a hardware platform: There are many hardware platforms available that you can use to build a home automation system, such as Arduino, Raspberry Pi, or ESP32. Choose a platform that suits your project’s requirements and budget.
  2. Identify the devices to automate: Identify the devices and appliances in your home that you want to control and automate, such as lights, fans, AC, TV, and security cameras.
  3. Choose the communication protocol: Choose a communication protocol to enable communication between the hardware and the software components of the system, such as Wi-Fi, Bluetooth, or Zigbee.
  4. Build the hardware components: Build the hardware components, such as sensors, actuators, and controllers, that interface with the physical environment and the devices to automate.
  5. Develop the software components: Develop the software components, such as the firmware for the hardware components, the middleware to enable communication and decision-making, and the mobile app to control and monitor the system.
  6. Integrate the hardware and software components: Integrate the hardware and software components to enable communication and interaction between them.
  7. Test the prototype: Test the prototype to ensure that it works as expected and meets the project’s requirements and objectives.

Note that this is a high-level overview of the prototype-building process, and the specific steps and requirements may vary depending on your project’s scope and complexity. Additionally, building a home automation system involves dealing with electrical components and systems, which requires technical knowledge and safety precautions.

Automation Testing

How can we submit a form without click method?

The click() and submit() functions are quite similar in terms of functionalities. However there are minor differences. Let us discuss some differences between them.

The submit() function is applicable only for <form> and makes handling of form easier. It can be used with any element inside a form. The click() is only applicable to buttons with type submit in a form.

The submit() function shall wait for the page to load however the click() waits only if any explicit wait condition is provided. If a form has a submit of type button, the submit() method cannot be used. Also, if a button is outside <form>, then submit() will not work.

Thus we see that click() works for both type buttons irrespective of the fact that the button is inside or outside of <form>. Let us take up the below form for implementation.

package com.test.traveltest;

import java.util.concurrent.TimeUnit;

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

public class SubmitForm {

	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"\\src\\main\\java\\drivers\\chromedriver.exe");
		WebDriver driver = new ChromeDriver();
	      String url = "https://www.facebook.com/";
	      driver.get(url);
	      driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
	      // identify elements
	      driver.findElement(By.id("email")).sendKeys("abc@gmail.com");
	      driver.findElement(By.id("pass")).sendKeys("123456");
	      // submitting form with submit()
	      driver.findElement(By.id("pass")).submit();
	      driver.quit();

	}
ChatGPT

Using ChatGPT for creating a website and adding CSS…

RK: can you create a website in html having home page, contact us page, about us page

AI: Sure! Here is a simple HTML code for a website with a home page, a contact us page, and an about us page:

<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav>
</header>
<main>
<section id="home">
<h1>Welcome to my website!</h1>
<p>This is the home page.</p>
</section>
<section id="about">
<h1>About Us</h1>
<p>Learn more about us and what we do.</p>
</section>
<section id="contact">
<h1>Contact Us</h1>
<p>Get in touch with us.</p>
</section>
</main>
<footer>
<p>Copyright &copy; 2023 My Website</p>
</footer>
</body>
</html>

This is just a simple example, you can further style and customize it according to your needs and preferences.

RK: add some css to this

AI: Sure! Here’s an example of how you could add some basic CSS styles to the previous HTML code:

<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
padding: 1em 0;
}
nav ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
nav li {
margin: 0 1em;
}
nav a {
color: #fff;
text-decoration: none;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 1em;
}
section {
background-color: #f2f2f2;
border: 1px solid #333;
box-sizing: border-box;
padding: 1em;
width: 30%;
}
footer {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
padding: 1em 0;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav>
</header>
<main>
<section id="home">
<h1>Welcome to my website!</h1>
<p>This is the home page.</p>
</section>
<section id="about">
<h1>About Us</h1>
<p>Learn more about us and what we do.</p>
</section>
<section id="contact">
<h1>Contact Us</h1>
<p>Get in touch with us.</p>
</section>
</main>
<footer>
<p>Copyright &copy; 2023 My Website</p>
</footer>
</body>
</html>

Above image shows the Output for script generated by ChatGPT

This example just gives you a basic idea of how to add CSS styles to an HTML document. You can further customize it according to your needs and preferences.

Manual Testing

Test Cases for Login Page

Here are some manual test cases for a login page:

  1. Verify that the correct URL opens the login page
  2. Check that the correct page title is displayed for the login page
  3. Validate that the login form is displayed and contains the expected fields (e.g. username, password)
  4. Verify that the input fields only accept valid characters (e.g. no special characters in the username field)
  5. Test the error message displayed when an incorrect username or password is entered
  6. Verify that the password field is masked (e.g. ***)
  7. Check that the user is redirected to the appropriate page after successful login
  8. Validate that the “Remember Me” checkbox works as expected
  9. Verify that the user can reset their password if they have forgotten it
  10. Test the login functionality with both valid and invalid input on both mobile and desktop devices.
  11. Check that the login page is secure (e.g. SSL enabled)
  12. Validate that the login functionality works on different browsers (e.g. Chrome, Firefox, Safari, etc.)
  13. Verify that the user is logged out after a set amount of time (e.g. 30 minutes)
  14. Test the login functionality with different types of accounts (e.g. new accounts, existing accounts, etc.)
  15. Validate that the correct error message is displayed when an invalid username or password is entered multiple times
  16. Verify that the login functionality works even if the network is slow or unstable
  17. Test the login functionality with different types of input (e.g. long username, special characters, etc.)
  18. Validate that the user is redirected to the appropriate page after logging out
  19. Verify that the user can still access the login page after logging out
  20. Check that the login page is accessible for users with disabilities (e.g. screen readers).
Manual Testing

Test Cases for OTP verification

Here are some manual test cases for OTP verification:

  1. Verify that OTP is sent to the correct phone number or email
  2. Check if the OTP format is correct (e.g. 6 digits)
  3. Validate that OTP is sent within the expected time frame
  4. Verify that OTP can be resend if it has expired or not received
  5. Test that the OTP is only valid for a set amount of time
  6. Check that the same OTP cannot be used multiple times
  7. Validate that the OTP input field only accepts numbers
  8. Verify that an error message is displayed if an incorrect OTP is entered
  9. Test that the OTP verification process is successful after entering a valid OTP
  10. Verify that the user is redirected to the appropriate page after successful OTP verification.
  11. Test the OTP functionality with both valid and invalid input on both mobile and desktop devices
  12. Verify that OTP functionality works on different browsers (e.g. Chrome, Firefox, Safari, etc.)
  13. Check that the OTP is sent even if the network is slow or unstable
  14. Test the OTP functionality with different types of accounts (e.g. new accounts, existing accounts, etc.)
  15. Verify that the OTP is sent even if the user is not logged in
  16. Check that the OTP is not sent if the user has opted out of receiving OTP
  17. Validate that the OTP verification process works after multiple attempts
  18. Test the OTP functionality with different types of phone numbers (e.g. landline, mobile, international, etc.)
  19. Verify that the OTP is sent only to the user who requested it
  20. Check that the OTP verification process fails if the user enters the incorrect OTP multiple times.
ChatGPT

Using Chat GPT for writing Articles with the inspiration…

RK: Can you write a speech in voice of Shahrukh Khan

AI: Here’s a sample speech written in the voice of Shahrukh Khan:

“Ladies and Gentlemen,

It’s an absolute honor to be here today, speaking to all of you. As I stand here, I am filled with gratitude and joy, for having the opportunity to share my thoughts and experiences with you.

I’ve been in the film industry for over three decades now, and I can tell you, it’s been quite a journey. But what I’ve come to realize is that success is not just about being famous or wealthy. It’s about making a difference, about spreading love and positivity in the world.

I believe that every one of us has the power to make a difference, to make the world a better place. All it takes is a little bit of courage, a lot of hard work, and most importantly, a positive attitude.

When I first started out in the industry, I had a dream of becoming an actor. But it wasn’t just about being famous or making money. It was about bringing joy and entertainment to people’s lives, about making a difference. And that’s exactly what I’ve been trying to do all these years.

So my dear friends, I urge you to never give up on your dreams. Whether you want to be an artist, a scientist, a teacher, or anything else, believe in yourself and your abilities. With hard work and determination, you can achieve anything you set your mind to.

And finally, always remember that the power of positivity is immense. So spread love, spread kindness, and make a difference in the world.

Thank you.”

ChatGPT

Use of ChatGPT for Debugging error in Code

Here is the simple example in which you can see how we can use ChatGPT to debug any error in code, no matter which language you uses:

rahul.kundu1@gmail.com
can you fix this code: let launchReady = false;
let fuelLevel = 17000;

if (fuelLevel >= 20000 {
   console.log('Fuel level cleared.');
   launchReady = true;
} else {
   console.log('WARNING: Insufficient fuel!');
   launchReady = false;
}


AI:
Here is the fixed code:

javascript
Copy code
let launchReady = false;
let fuelLevel = 17000;

if (fuelLevel >= 20000) {
   console.log('Fuel level cleared.');
   launchReady = true;
} else {
   console.log('WARNING: Insufficient fuel!');
   launchReady = false;
}
The issue was a missing parenthesis ) in the if statement.

and, the debugging is correct as in line no 4, “)” is missing in if statement.