<?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 Arunkumar Nehru KS on Medium]]></title>
        <description><![CDATA[Stories by Arunkumar Nehru KS on Medium]]></description>
        <link>https://medium.com/@arunkumarnehruks?source=rss-1b1365562781------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UGiGBtC29CUPBx1_</url>
            <title>Stories by Arunkumar Nehru KS on Medium</title>
            <link>https://medium.com/@arunkumarnehruks?source=rss-1b1365562781------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:09:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunkumarnehruks/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[Building an API Test Review Skill: Why AI-Generated Tests Need a Quality Gate]]></title>
            <link>https://medium.com/@arunkumarnehruks/building-an-api-test-review-skill-why-ai-generated-tests-need-a-quality-gate-f6723a205dd3?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6723a205dd3</guid>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 15:41:41 GMT</pubDate>
            <atom:updated>2026-11-24T15:41:41.505Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Moving beyond code generation to independently review test quality and coverage.</em></p><p>Generating API automation using AI is useful, but I didn’t want the workflow to stop once the TypeScript code was written. A generated test can compile and still contain incorrect assertions, duplicate scenarios, missing coverage or code-quality issues. I wanted a dedicated review stage to catch these problems. That led to my third skill:</p><p>.claude/skills/api-test-review/SKILL.md</p><p>Its responsibility is to review the generated automation, enforce consistency and verify that the documented coverage matches the actual implementation.</p><h3>Why wasn’t a generic review prompt enough?</h3><p>My original review instruction focused on:</p><ul><li>Code duplication.</li><li>Optimisation opportunities.</li><li>Meaningful test names.</li><li>Consistency with existing naming patterns.</li></ul><p>But this approach missed important areas. For example, it didn’t explicitly ask AI to check for loose TypeScript types, Promise&lt;any&gt;, unnecessary non-null assertions, missing coverage or accidental debugging statements. I realised that code review also needs an explicit checklist.</p><h3>Introduce specific review checks</h3><p>I expanded the review approach to include several dimensions. Some representative examples from the implementation are:</p><p><strong>Duplicate detection:</strong> Repeated scenarios and redundant implementations.</p><p><strong>Naming:</strong> Whether test names describe the validation and expected consequence.</p><p><strong>Assertions:</strong> Whether assertions validate the intended API behaviour.</p><p><strong>Type safety:</strong> Loose types, Promise&lt;any&gt;, non-null assertions and index signatures.</p><p><strong>Coverage:</strong> Missing scenarios compared with the analysis JSON.</p><p><strong>Test hygiene:</strong> it.only, console.log and debugger.</p><p><strong>Test organisation:</strong> Duplicate test IDs across describe blocks.</p><p><strong>Optimisation:</strong> Opportunities to simplify and maintain the implementation.</p><p>These are selected examples to illustrate the review approach, not the complete review checklist. The skill contains a more detailed set of checks covering duplication, naming, assertions, structure, logic and other quality considerations. The intention is to move away from generic instructions such as “review the code for optimisation” and make the expectations explicit enough that important review areas are not overlooked.</p><h3>Validate against the original API contract</h3><p>There is another important consideration when reviewing AI-generated automation. The review should not simply confirm that the generated test matches the current application implementation. It should also verify that the assertions align with the intended test scenario and the agreed API contract.</p><p>For example, if an API response differs from what Swagger documents, the review should identify that discrepancy rather than treating the current implementation as automatically correct. The analysis JSON provides traceability to the intended scenarios, while the API contract provides the reference for expected behaviour. This helps prevent tests from silently accepting existing implementation defects as expected behaviour.</p><h3>Make review results actionable</h3><p>I also wanted the review skill to produce more than a generic paragraph of feedback. The skill produces three artefacts.</p><p><strong>1. JSON issue report — </strong>Categorises findings into duplicate, naming, assertion, structure and logic issues.</p><p><strong>2. Human-readable summary — </strong>Includes key issues, missing coverage, optimisation suggestions, an overall quality rating (High, Medium or Low) and the top three recommended actions.</p><p><strong>3. Corrected code snippets — </strong>Provides targeted fixes for critical issues instead of rewriting the entire spec file.This makes the review feedback easier to understand, prioritise and act upon.</p><h3>Why this matters</h3><p>The important distinction here is that generating code and reviewing code are two different responsibilities. The automation skill focuses on implementing the identified scenarios. The review skill independently checks whether that implementation is correct, consistent and aligned with the original test plan and API contract.</p><p><strong>My takeaway: Automating test creation without introducing quality checks around it only solves half the problem.</strong></p><p>With this third skill, the workflow now covers analysis, automation and review, each with a defined responsibility. I’m continuing to explore how this approach can be extended further, but this has been a useful step in moving from one-off AI prompts towards reusable QA engineering workflows.</p><h3>Bringing the series together</h3><p>With the review skill, the three-stage API test automation workflow comes together:</p><ul><li><strong>Analyse:</strong> Identify what needs to be tested.</li><li><strong>Automate:</strong> Convert identified scenarios into TypeScript automation.</li><li><strong>Review:</strong> Validate the generated tests and identify improvement opportunities.</li></ul><p>The biggest takeaway from this exercise is that the value of AI skills goes beyond reusable prompts. It comes from translating engineering knowledge into explicit instructions, defining clear responsibilities and introducing validation at every stage. This brings me to the end of this four-part series. I hope sharing this journey provides some useful ideas for others looking to move beyond one-off prompts towards structured AI-assisted engineering workflows.</p><p><strong>New to the series?</strong> Start with <a href="https://medium.com/@arunkumarnehruks/from-a-single-prompt-to-three-ai-skills-how-i-structured-my-api-test-automation-workflow-aa4e7c225087"><em>From a Single Prompt to Three AI Skills: Engineering a Structured API Test Automation Workflow</em></a>, followed by the articles on API Test Analysis, API Test Automation and API Test Review.</p><p>I’d love to hear about your experiences building reusable AI skills and workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6723a205dd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an API Test Automation Skill: Generating Tests Without Breaking Existing Patterns]]></title>
            <link>https://medium.com/@arunkumarnehruks/building-an-api-test-automation-skill-generating-tests-without-breaking-existing-patterns-e620dd8125ab?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/e620dd8125ab</guid>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 15:40:42 GMT</pubDate>
            <atom:updated>2026-11-24T15:40:42.569Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why generating code is easy, but generating code that fits the existing application is a different challenge.</em></p><p>Once test scenarios are identified, the next step is automation. My original instruction to AI was straightforward: automate the identified test cases, follow existing coding patterns and reuse common utilities wherever possible. However, I encountered some problems.</p><p>Generated tests could look structurally correct but still make incorrect assumptions about application behaviour or reuse existing helpers in ways that the API did not support. I wanted to address these gaps through a dedicated skill:</p><p>.claude/skills/api-test-automate/SKILL.md</p><p>Its responsibility is to consume the test plan generated by the analysis skill and create the corresponding TypeScript API automation.</p><h3>Establish a baseline before changing anything</h3><p>Before generating code, the skill runs the existing test suite. If failures are present, it stops and reports them rather than adding new tests on top of a broken baseline. This is intentional. I wanted existing failures to be investigated separately so that newly introduced automation would not be mixed with pre-existing issues. The root-cause investigation remains a manual decision point.</p><h3>Understand the API contract and the actual implementation</h3><p>One important refinement in my approach was recognising that we should not rely exclusively on either Swagger or the application implementation.</p><p><strong>Swagger/OpenAPI is the primary reference for establishing expected API behaviour.</strong></p><p>It defines the API contract, including request schemas, response structures, status codes and documented constraints. Where available, business requirements provide additional context for understanding the intended behaviour. However, the implementation provides additional evidence about how that contract is fulfilled. For that reason, the skill also considers the relevant NestJS source files:</p><ul><li>Controller</li><li>Service</li><li>Request DTO</li><li>Response DTO</li></ul><p>This helps understand request handling, business logic, validation and response construction. An important distinction is that the implementation should not automatically override the documented API contract. For example, if Swagger documents a response field that appears to be missing from the actual service response, this should be identified as a potential discrepancy rather than silently generating an assertion based on the implementation alone.</p><p>The discrepancy should be investigated and the expected behaviour agreed upon before finalising the test. There is also an important technical consideration: the service return value is not necessarily identical to the final HTTP response. Interceptors, serializers and response transformations can affect what the API client receives. Ultimately, the automation should validate the actual HTTP response against the agreed expected behaviour.</p><p><strong>The principle is simple: Use the API contract to establish what should happen, the implementation to understand how it happens, and the actual HTTP response to validate what happened.</strong></p><h3>Address an actual problem with helper reuse</h3><p>One of the most interesting issues I encountered was related to existing helper functions. My original prompt instructed AI to reuse existing utilities wherever possible. However, some helpers returned additional fields that were not accepted by the endpoint’s request DTO. Reusing those payloads without checking their structure resulted in HTTP 400 responses because the API rejected unknown fields. I therefore made helper inspection more explicit.</p><p>Before reusing an existing helper, the skill needs to understand its return structure and validate its compatibility with the relevant request DTO. This was a valuable lesson:</p><p><strong>Reusing existing utilities is good engineering, but blindly reusing them can introduce defects.</strong></p><h3>Make coding conventions explicit</h3><p>“Follow existing patterns” is too broad. The skill needs to understand what those patterns actually mean. I made the instructions more specific around areas such as:</p><ul><li>Test structure and organisation.</li><li>Naming conventions.</li><li>Existing utility usage.</li><li>Assertion patterns.</li><li>Return types and appropriate type definitions.</li></ul><p>These are representative examples, not an exhaustive list of project-specific coding standards. The actual conventions need to be understood from the codebase and adapted to the framework and project being automated. I also defined how existing files should be handled. If a spec already exists, only scenarios marked Not Automated should be added. Existing tests should not be unnecessarily modified or duplicated. If no spec exists, the skill creates a complete TypeScript spec file.</p><h3>Keep automation and coverage documentation in sync</h3><p>After generating the tests, the skill:</p><ol><li>Runs tsc --noEmit to identify TypeScript compilation errors.</li><li>Updates the JSON registry with Automated or Skipped statuses.</li><li>Recalculates the coverage summary.</li><li>Updates the Markdown README.</li></ol><p>This is important because generated code and coverage documentation should not become separate sources of truth.</p><h3>What I learned</h3><p>The biggest learning was that code generation needs more than access to test scenarios. It needs context about the API contract, awareness of existing implementation patterns and constraints around modifying existing code. The helper-function issue was a particularly good reminder that AI can follow an instruction like “reuse existing utilities” and still make an incorrect engineering decision unless we explain the necessary checks.</p><p><strong>Generating code that compiles is one thing. Generating code that respects the API contract and existing engineering standards is where the real work lies.</strong></p><h3>What’s next?</h3><p>Generating API tests is only part of the workflow. The next question is how we ensure that the generated automation is reliable, maintainable and aligned with the original test scenarios. In the final article, I’ll cover the <strong>API Test Review skill, </strong>how I introduced structured review checks, coverage validation, type-safety checks and actionable feedback for AI-generated automation.</p><p><strong>Next: Building an API Test Review Skill — Why AI-Generated Tests Need a Quality Gate.</strong></p><p><em>Missed the previous articles? Start with </em><a href="https://medium.com/@arunkumarnehruks/from-a-single-prompt-to-three-ai-skills-how-i-structured-my-api-test-automation-workflow-aa4e7c225087"><em>From a Single Prompt to Three AI Skills or read Building an API Test Analysis Skill</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e620dd8125ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an API Test Analysis Skill: Turning QA Expertise into Structured Test Coverage]]></title>
            <link>https://medium.com/@arunkumarnehruks/building-an-api-test-analysis-skill-turning-qa-expertise-into-structured-test-coverage-33600f81a5ee?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/33600f81a5ee</guid>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 15:39:13 GMT</pubDate>
            <atom:updated>2026-11-24T15:39:13.560Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Moving from generic test-generation prompts to a rule-driven approach.</em></p><p>One of the biggest challenges in API testing is not writing test cases. It is identifying whether we have considered the right scenarios in the first place. When I initially used AI for API test analysis, my instruction was fairly simple: analyse the endpoint, consider edge cases, security, authentication and authorization, and identify gaps in existing automation.</p><p>It worked, but I was relying on AI to interpret what comprehensive API test coverage actually meant. I wanted to make that process more systematic. This led me to create my first skill:</p><p>.claude/skills/api-test-analysis/SKILL.md</p><p>Its responsibility is to act as a QA analyst, analyse an API endpoint and produce a structured test plan with coverage tracking.</p><h3>Define the inputs and outputs</h3><p>The skill takes three inputs:</p><ul><li>API endpoint to analyse.</li><li>Swagger/OpenAPI specification.</li><li>Existing test file, or confirmation that none exists.</li></ul><p>Swagger/OpenAPI is the primary reference for understanding the API contract, including request schemas, response structures, expected status codes and documented validation constraints. Where available, business requirements can provide additional context for understanding expected behaviour that may not be fully captured in the API specification. The skill produces two artefacts.</p><p><strong>JSON test-case registry — </strong>Contains test IDs, names, categories, expected HTTP statuses, automation status and notes.</p><p><strong>Markdown README — </strong>Provides a human-readable view of the same test cases. The JSON registry becomes the single source of truth for the downstream automation and review skills.</p><h3>Convert generic QA instructions into explicit rules</h3><p>This was the most important part of building the skill. Instead of simply saying “consider edge cases”, I translated common QA considerations into explicit test-generation rules. Some representative examples include:</p><p><strong>Field-level validation</strong></p><ul><li>Required versus optional fields.</li><li>Null and empty values.</li><li>Incorrect data types.</li><li>Boundary conditions.</li></ul><p><strong>API behaviour</strong></p><ul><li>HTTP method-specific scenarios.</li><li>POST/PUT validation behaviour and symmetry where applicable.</li><li>Expected API responses.</li></ul><p><strong>Authentication and authorization</strong></p><ul><li>Authentication-related scenarios.</li><li>Access-control considerations.</li></ul><p><strong>Security validation</strong></p><p>I explicitly included four security categories:</p><ul><li>SQL Injection: SQL-like input in relevant string fields.</li><li>XSS: HTML/JavaScript-like input.</li><li>Template Injection: Unexpected evaluation of template expressions.</li><li>Mass Assignment: Acceptance of unexpected or privileged fields.</li></ul><p>These are selected examples, not an exhaustive test checklist. There are many additional considerations depending on the endpoint, API contract, business rules, data types, application behaviour and associated risks. The important change was moving away from relying on AI to independently think of every possible scenario and explicitly defining the areas it must consider.</p><h3>Compare against existing automation</h3><p>Identifying scenarios is only part of the job. The skill also compares the identified scenarios with the existing spec file to establish what is already automated and what is still pending. Each scenario is tracked using one of three statuses:</p><ul><li>Automated</li><li>Skipped</li><li>Not Automated</li></ul><p>The automation skill subsequently consumes this information and works only on the scenarios that need automation.</p><h3>Why the JSON registry matters</h3><p>I deliberately avoided making the output just a conversational list of test cases. The JSON registry provides a predictable structure for downstream consumption, while the Markdown README makes the coverage visible to engineers and stakeholders. This introduced an important design principle into my workflow:</p><p><strong>When one AI skill depends on another, define the output contract before building the next skill.</strong></p><p>Otherwise, the next stage is forced to interpret free-form output, introducing unnecessary ambiguity.</p><h3>What I learned</h3><p>The biggest takeaway was that QA experience needs to be made explicit. Things like null handling, wrong data types, API behaviour and security validation may come naturally to an experienced QA engineer, but they should not be left to AI to independently remember.</p><p>By capturing these considerations in the skill, I created a reusable analysis process rather than repeatedly explaining how I expect an API to be tested. The examples above demonstrate only part of the analysis considerations. The underlying principle is to keep expanding and refining the checklist as new API behaviours, edge cases and project-specific requirements are identified.</p><h3>What’s next?</h3><p>With the analysis skill in place, the next challenge is converting those identified scenarios into actual automation without disturbing existing implementations. In the next article, I’ll share how I built the <strong>API Test Automation skill</strong>, including baseline verification, understanding the API contract, inspecting existing implementation patterns and addressing issues caused by blindly reusing helper functions.</p><p><strong>Next: Building an API Test Automation Skill — Generating Tests Without Breaking Existing Patterns.</strong></p><p><em>Missed the beginning of this series? Read </em><a href="https://medium.com/@arunkumarnehruks/from-a-single-prompt-to-three-ai-skills-how-i-structured-my-api-test-automation-workflow-aa4e7c225087"><em>From a Single Prompt to Three AI Skills: Engineering a Structured API Test Automation Workflow</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33600f81a5ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From a Single Prompt to Three AI Skills: How I Structured My API Test Automation Workflow]]></title>
            <link>https://medium.com/@arunkumarnehruks/from-a-single-prompt-to-three-ai-skills-how-i-structured-my-api-test-automation-workflow-aa4e7c225087?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa4e7c225087</guid>
            <category><![CDATA[quality-engineering]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[api-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 15:37:07 GMT</pubDate>
            <atom:updated>2026-11-24T15:37:07.084Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Moving beyond one-off prompts to build a reusable, structured AI-assisted QA workflow.</em></p><p>I’ve been experimenting with AI-assisted test automation, and like many engineers, I started with something simple: writing prompts to get things done. Analyse an API. Identify test scenarios. Generate automation. Review the code. AI could perform all these activities. But as I started using it more frequently, I noticed something.</p><p><strong>Getting AI to perform a task once is easy. Getting it to perform the same task consistently, following the same engineering standards, is a different challenge.</strong></p><p>I was repeatedly providing instructions, explaining existing project conventions, correcting assumptions and guiding AI through different stages of API test automation. Instead of continuing to refine individual prompts, I decided to approach the problem differently. What started as a single prompt-based workflow eventually evolved into three dedicated AI skills, each responsible for a specific stage of the API testing lifecycle. Here’s how I got there.</p><h3>It started with three repetitive activities</h3><p>My initial approach was to use separate prompts for three activities.</p><p><strong>1. Analysing API endpoints</strong></p><p>I would provide an API endpoint and its Swagger/OpenAPI specification and ask AI to identify the relevant test scenarios. The expectation was to consider edge cases, boundary conditions, authentication, authorization, security and unexpected inputs, and then compare the identified scenarios against existing automation. Any missing scenarios would first be reported for my review before proceeding with automation.</p><p><strong>2. Automating the identified scenarios</strong></p><p>Once the test scenarios were reviewed, I would ask AI to automate specific test cases. My instructions were straightforward: follow the existing project patterns, reuse common utilities, and avoid disturbing existing implementations.</p><p><strong>3. Reviewing the generated automation</strong></p><p>Finally, I would ask AI to review the generated code for duplication, optimisation opportunities, meaningful test names and consistency with existing conventions. Individually, these prompts worked reasonably well. But there was a bigger problem.</p><h3>The problem wasn’t the AI. It was the way I was instructing it.</h3><p>My prompts communicated what I wanted, but left several engineering decisions to AI. For example:</p><ul><li>What exactly does comprehensive API test coverage mean?</li><li>Does “check security” cover all the security scenarios I expect?</li><li>What does following existing coding patterns actually mean?</li><li>How should existing helper functions be validated before reuse?</li><li>How do we ensure that test coverage documentation stays in sync with generated automation?</li><li>What should a proper review of AI-generated tests include?</li></ul><p>These were things I would naturally consider as a QA engineer, but they were not necessarily explicit in my instructions. I realised that simply improving the wording of the prompts was not enough. I needed to capture these decisions as reusable instructions, define clear responsibilities and establish predictable inputs and outputs.</p><p><strong>Rather than having AI figure out what I wanted every time, I wanted to define how the entire workflow should operate.</strong></p><h3>The shift: From individual prompts to three specialised skills</h3><p>I decided to break the workflow into three independent but connected skills. Each skill would have one primary responsibility, clearly defined inputs, expected outputs and specific rules to follow. Here’s what the resulting workflow looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDw9sTADqpqwPKBjAZ-zww.png" /></figure><h3>1. API Test Analysis — Think like a QA analyst</h3><p>The first skill is responsible for analysing a given API endpoint against its Swagger/OpenAPI specification and identifying relevant test scenarios. It compares the identified scenarios against existing automation and tracks what is already covered and what is still pending. Instead of relying on generic instructions, it uses a structured, rule-driven approach to test identification. The output consists of two artefacts:</p><ul><li><strong>JSON test-case registry:</strong> A machine-readable list containing test IDs, names, categories, expected HTTP statuses and automation status.</li><li><strong>Markdown README:</strong> A human-readable representation of the same test cases.</li></ul><p>The JSON registry becomes the single source of truth for the downstream skills.</p><h3>2. API Test Automation — Turn scenarios into code</h3><p>The second skill takes the test-case registry and generates TypeScript API automation. It follows existing project conventions and automates only scenarios marked as Not Automated. It also introduces important safeguards, such as verifying the existing test baseline before making changes and inspecting the relevant application source files to understand implementation details.</p><p>After generating the code, it performs TypeScript compilation checks and updates the JSON registry and Markdown README to reflect the latest automation status.</p><h3>3. API Test Review — Introduce an independent quality gate</h3><p>The third skill reviews the generated automation. It checks code quality, consistency and coverage against the original analysis JSON. Some of the review considerations include duplicate tests, meaningful naming, assertion quality, type safety, missing coverage and unwanted debugging statements.</p><p>Rather than producing generic feedback, it generates a structured issue report, a human-readable summary with an overall quality rating, and targeted code corrections for critical issues. The objective is to make the review process actionable and traceable.</p><h3>The engineering decisions that made the difference</h3><p>Building the three skills was only part of the exercise. The more valuable part was understanding what needed to change between a one-off prompt and a reusable skill. A few principles stood out.</p><p><strong>1. Treat prompts as specifications, not requests.</strong></p><p>A prompt should define inputs, outputs, rules and constraints rather than simply describe an activity.</p><p><strong>2. Replace implied behaviour with explicit rules.</strong></p><p>“Check security cases” is an instruction. Defining the security categories and the checks expected for relevant inputs makes the requirement much more precise.</p><p><strong>3. Define the output contract upfront.</strong></p><p>If one skill depends on another, its output must follow a predictable structure. The JSON test-case registry is a good example of this.</p><p><strong>4. Encode expert QA judgment.</strong></p><p>Decisions that an experienced QA engineer makes naturally should be captured in reusable instructions and checklists.</p><p><strong>5. Build a pipeline, not one large prompt.</strong></p><p>Separating analysis, automation and review makes the workflow easier to maintain, improve and troubleshoot.</p><p><strong>6. Prioritise reproducibility over cleverness.</strong></p><p>A workflow that consistently produces useful results is more valuable than a prompt that occasionally produces impressive output but requires significant manual correction.</p><h3>What I learned from this exercise</h3><p>Looking back, the biggest value wasn’t in creating three separate skill files. It was in translating practical QA experience into something reusable. I had to identify where my original instructions were ambiguous, understand why certain generated results needed corrections, and convert those learnings into explicit rules and validation mechanisms.</p><p>The resulting workflow brings together test analysis, automation and independent review, with a shared coverage registry connecting the stages. Of course, having structured skills doesn’t automatically guarantee correct results. The instructions and generated outputs still need to be validated and refined against real project scenarios. But it provides a much better foundation than repeatedly starting with a conversational prompt and figuring out the gaps along the way.</p><p><strong>The real value of AI-assisted engineering is not just asking AI to do more work. It is building a structured way for AI to do the right work, with clearly defined expectations and quality checks.</strong></p><h3>What’s next?</h3><p>This is the first article in a four-part series where I’ll share some of the technical details behind this implementation. In the next article, I’ll dive deeper into the first skill:</p><p><strong>Building an API Test Analysis Skill — Turning QA Expertise into Structured Test Coverage.</strong></p><p>I’ll explain how I converted generic test-generation instructions into explicit QA rules, how the skill identifies automation gaps, and why introducing a structured JSON test-case registry made such a difference to the overall workflow.</p><p>I’d also be interested to hear from the community:</p><p><strong>Are you still using individual prompts for repetitive engineering activities, or have you started converting them into reusable skills and workflows? What challenges have you encountered while trying to make AI-generated results more consistent?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa4e7c225087" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most API Security Bugs Are Surprisingly Simple to Find]]></title>
            <link>https://medium.com/@arunkumarnehruks/most-api-security-bugs-are-surprisingly-simple-to-find-b461f1b2bae6?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/b461f1b2bae6</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 08:42:01 GMT</pubDate>
            <atom:updated>2026-03-13T08:42:01.310Z</atom:updated>
            <content:encoded><![CDATA[<p>Most software teams treat security testing as something highly specialized. Something that requires dedicated security engineers, penetration testers, or complex tools. But in practice, many vulnerabilities don’t require advanced techniques to discover. They just require someone to test the system slightly outside the happy path.</p><p><strong>If you’re a functional QA working with APIs</strong>, you are already in a perfect position to catch some of the most common security issues often in just a few minutes. “Not with hacking tools”, “Not with deep security expertise”, but just with a few intentional test cases.</p><h3>A Simple Mental Model for QA</h3><p>When testing APIs, it helps to keep three basic questions in mind:</p><ol><li><strong>Who are you?</strong> — Is authentication required?</li><li><strong>Are you allowed to see this?</strong> — Is authorization enforced?</li><li><strong>Is your input safe?</strong> — Is the system validating data properly?</li></ol><p>If any of these questions fail, the issue should be investigated. The following <strong>ten simple checks are designed to help a functional QA</strong> do exactly that uncovering potential issues in APIs before they become bigger problems.</p><h3>1. The “No Token” Test</h3><p><strong>Start with the simplest question possible</strong>: what happens if the request is sent without authentication? Take a working API request and remove the authorization header.</p><p>If the API still returns real data, that’s a serious problem.</p><p>Or when an endpoint appears in documentation <strong>without any authentication requirement</strong>, it raises an important question:</p><blockquote>Is this endpoint intentionally public, or was authentication simply not enforced?</blockquote><p><strong>Expected result:</strong></p><pre>401 Unauthorized</pre><p>or</p><pre>403 Forbidden</pre><p>A common mistake in many systems is that the UI enforces login, but the API itself does not. <strong>Testing this takes less than a minute and immediately reveals whether the backend is properly protected</strong>.</p><h3>2. The “Change the ID” Test</h3><p>This test checks whether the system enforces ownership of resources. Imagine an API request like:</p><p>GET /api/orders/78452</p><p>Now simply change the ID:</p><p>GET /api/orders/78453</p><p>If the system returns another user’s data instead of a <strong><em>403 Forbidden</em></strong><em> response</em>, the API has broken access control. This is one of the most common API vulnerabilities on the internet.</p><h3>3. The “Garbage Input” Test</h3><p>APIs should handle unexpected input gracefully. Try sending unusual characters in parameters:</p><ul><li>&#39;</li><li>&quot;</li><li>;</li><li>--</li><li>&lt;test&gt;</li></ul><p>A well-designed system will either sanitize the input or return a clean validation error. A poorly protected system may crash, reveal internal errors, or leak database details. <strong>You don’t need to perform a full security test here. Just verify that strange input does not break the system</strong>.</p><h3>4. The “Replay Request” Test</h3><p>Automation is one of the main tools attackers use. Send the same API request repeatedly, perhaps 50 or 100 times in quick succession. Well-protected systems usually respond with rate limiting, such as <strong>429 Too Many Requests</strong>.</p><p>If the system allows unlimited requests without any throttling, it becomes easier to automate attacks or scrape data.</p><h3>5. The “Hidden Endpoint” Test</h3><p>APIs often follow predictable naming patterns.</p><p>For example:</p><ul><li>/api/users</li><li>/api/users/123</li></ul><p>Try a few obvious variations:</p><ul><li>/api/admin</li><li>/api/debug</li><li>/api/internal</li><li>/api/config</li></ul><p>These should return <strong>404 Not Found </strong>as these endpoints<strong> returning Large collections of data, system configuration, logs and some times user data</strong>. Occasionally, you may discover endpoints that were meant only for internal tools but are still accessible.</p><h3>6. Check Authentication in the API Documentation</h3><p>Before even running tests, review the API documentation. If sensitive endpoints such as /users, /files, or /messages do not show any authentication requirement as part of the documentation and if done, that’s a warning sign.</p><p><strong>Every endpoint that exposes private data should clearly specify its authentication mechanism.</strong></p><h3>7. Look for APIs Returning Massive Data Sets</h3><p>Some APIs expose large collections like:</p><ul><li>/api/users</li><li>/api/messages</li><li>/api/files</li></ul><p>If these endpoints do not include pagination parameters such as page, limit, or offset, <strong>it may allow someone to download an entire dataset in a few requests</strong>. Even basic pagination significantly reduces this risk. One of the design approaches is <strong>cursor-based pagination</strong>, for example:</p><pre>GET /api/messages?cursor=abc123</pre><p>Instead of arbitrary page numbers, the server gives the next cursor.</p><p><strong>Benefits:</strong></p><ul><li>more efficient queries</li><li>harder to skip around randomly</li><li>better scalability</li></ul><p><strong>NOTE</strong>: Even this <strong>does not fully prevent data iteration</strong></p><h3>8. Watch for “Admin” or “Internal” Endpoints</h3><p>While reviewing documentation or API routes, keep an eye out for endpoints such as:</p><ul><li>/api/admin</li><li>/api/internal</li><li>/api/debug</li></ul><p>These may be legitimate, but they should be heavily restricted. If they appear openly in public documentation, <strong>it’s worth asking how access is controlled</strong>.</p><h3>9. Notice Query Parameters That Influence Database Queries</h3><p>Certain parameter names deserve extra attention:</p><ul><li>query</li><li>filter</li><li>where</li><li>search</li></ul><p>These fields often affect database queries directly. They are not necessarily unsafe, but they should be validated carefully. When a system returns detailed errors, <strong>it can unintentionally reveal how it works internally</strong>, even to someone without access. For example,</p><ul><li><strong>Database clues</strong> — e.g., SQL syntax error near &#39; → hints SQL database and query structure</li><li><strong>Column/table names</strong> — e.g., column &quot;username&quot; does not exist → reveals database schema</li><li><strong>File paths / system info</strong> — e.g., FileNotFoundError: /var/www/app/... → exposes server directories</li></ul><p>Instead, in such cases APIs should return <strong>generic error messages</strong>, like:</p><pre>400 Bad Request – Invalid input</pre><p>without revealing database, file path, or code details.</p><h3>10. Look for Sensitive Fields in API Responses</h3><p>Sometimes the API returns more data than the client actually needs. While reviewing responses, watch for fields like:</p><ul><li>password_hash</li><li>internal_role</li><li>private_notes</li><li>system_prompt</li><li>internal_id</li></ul><p>Even if the data is technically secure, exposing unnecessary internal fields increases risk. A good rule of thumb is simple: <strong>APIs should return only the data required by the client</strong>.</p><h3>Security Is Often Just Good Testing</h3><p>Security testing is often perceived as something highly specialized. And in some cases, it is. But many vulnerabilities don’t require advanced techniques to discover. They simply require someone to test the system in ways that go slightly beyond the expected workflow.</p><p>Functional QA teams are already in the perfect position to do this. Sometimes, the difference between a secure system and a vulnerable one is just a few extra test cases as mentioned above.</p><p>Happy learning !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b461f1b2bae6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Web and Mobile app in single repository]]></title>
            <link>https://medium.com/@arunkumarnehruks/automating-web-and-mobile-app-in-single-repository-2f0e05e20a5d?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f0e05e20a5d</guid>
            <category><![CDATA[wdio]]></category>
            <category><![CDATA[web-automation-testing]]></category>
            <category><![CDATA[mobile-automation-testing]]></category>
            <category><![CDATA[webdriverio]]></category>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 08:57:26 GMT</pubDate>
            <atom:updated>2023-04-21T08:57:26.460Z</atom:updated>
            <content:encoded><![CDATA[<p>I started working on a project and the requirement is create a Web and Mobile application of the same product. As a Quality Analyst, I was very much interested to automate some of the features of the application so, I started looking for some help online and found multiple tutorials or blogs or videos on how to automate a Web application or a Mobile application separately. But my requirement is to automate Web and the Mobile application put together and to my surprise, I did not come across any helpful document on how this can be done together.</p><p>I finally got some help through my different friends and could succeed automating Web and Mobile version of the application. I thought to share this information to a wider audience, so I created a sample project with a very minimal workflows for easy understanding, covering Web and Android application of the same product. I used the WDIO demo app (Web and Android) for this purpose.</p><p>This project is based on WebDriverIO and Javascript is the programming language used.</p><p>My test is as below, trying to perform a simple workflow of clicking Get Started option on the page that is displayed on the Web or Mobile app,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67OGP5kWEj2j3y542pFanw.png" /><figcaption>Refer <a href="https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/src/test/FirstTest.js">https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/src/test/FirstTest.js</a></figcaption></figure><p>Page object is as below, here you can see that the locators are added for Web and Android application separately but there is only one set of code (function getStarted()) to perform the workflow. Every time when the test is ran, it picks its corresponding locator based on the driver object that is initialised and the code is executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6umgwmoGDwLBpphp5nhww.png" /><figcaption>Refer <a href="https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/src/pages/homepage.js">https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/src/pages/homepage.js</a></figcaption></figure><p>Our utility file is the key here, this does the magic of letting the test know which locator it is supposed to pick runtime,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzEX5sZvQK8rvZ4v7oQzpQ.png" /><figcaption>Refer <a href="https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/utils/customcommand.js">https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp/blob/main/ui-test/utils/customcommand.js</a></figcaption></figure><p>If you would like to execute the test on Web application then use the below command,</p><pre>npm test run ./test-config-web.js</pre><p>Based on the capabilities mentioned in test-config-web.js file, you can see the Web application is launched and the test is ran successfully,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f0v6vztvlqivZkDysRp8BA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uL-XYqHaBtBvisKQhvzfrA.png" /></figure><p>Similarly, if you would like to execute the test on Mobile app (Android version) then use the below command,</p><pre>npm test run ./test-config-android.js</pre><p>Based on the capabilities mentioned in test-config-android.js file, you can see the Mobile application is installed and launched and the test is ran successfully,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*p6btYAOXS3_nFRP4U26b7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZTAo_BBUPLO6yPuCccysA.png" /></figure><p><strong>NOTE</strong>: You would need to have the necessary pre-requisites like Appium and other tools for the mobile application related test to run successfully.</p><p>I have also shared my git repository along with this blog for your further reference, <a href="https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp.git">https://github.com/arunkumarnehruks/wdioAutomationWebAndMobileApp.git</a></p><p>I hope this blog can give you some insight on how a Web and Mobile application can be automated in a single repository and with single set of code. Happy learning !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f0e05e20a5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging on WebDriverIO from VSCode — Part 2]]></title>
            <link>https://medium.com/@arunkumarnehruks/debugging-on-webdriverio-from-vscode-part-2-8c9c59702384?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c9c59702384</guid>
            <category><![CDATA[webdriverio]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 11:52:20 GMT</pubDate>
            <atom:updated>2023-01-02T11:52:20.702Z</atom:updated>
            <content:encoded><![CDATA[<h3>Debugging on WebDriverIO from VSCode — Part 2</h3><p>We have already discussed a few options to debug WebDriverIO from VSCode in <a href="https://medium.com/@arunkumarnehruks/debugging-on-webdriverio-from-vscode-91d5e428b2c">https://medium.com/@arunkumarnehruks/debugging-on-webdriverio-from-vscode-91d5e428b2c</a></p><p>We can see a couple of more options where one among it (<em>Option 5</em>) can have more control on the debugging attributes.</p><p><strong>Option 4:</strong> Using browser.debug()</p><p>#1 Add this line of code “browser.debug()” whenever you want to debug, see an example below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zj0MHZPTPflJ39efakZ96A.png" /></figure><p>#2 Invoke a new terminal and execute the script from Terminal. We can now see the execution holds at the step where “browser.debug()” is in place,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v1Ap_c0fOs2UYWahiQVaKw.png" /></figure><p>The test execution holds only for the timeout duration mentioned in “wdio.conf.js” file as below, i.e. only 60 seconds in this case. You may take this time to debug and understand the problem (if at all any),</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZn1V5u9v9F_5Ysj7R786A.png" /></figure><p>#3 You can chose to “press ^C” or type “.exit” to continue the execution before the timeout duration.</p><p>#4 Sometimes you will need more time to debug the test, in such case, ensure to increase the timeout property of the test framework you are using (e.g. Mocha or Jasmine) in order to prevent test termination early.</p><p><strong>NOTE</strong>: This timeout would affect your overall test execution as well, <strong>so make sure to revert timeout value once the debugging is complete</strong>.</p><p><strong>Option 5: </strong>Using the launch.json file</p><p>#1 Select “Run and Debug” option from the left panel in VSCode and select the option “create a launch.json file”,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LGBYQn6_dXDC3Fde8-EUZw.png" /></figure><p>#2 Select the option as “Node.js” on the Select environment text bar,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNkq539_aPlCeOvvIMhk-g.png" /></figure><p>#3 The moment you select Node.js, you can see a new file created with the name as “launch.json” under “.vscode” folder as below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-Mk5tTtPZXNiscaXwSRAg.png" /></figure><p>#4 Some attributes are displayed by default. Those can be updated based on our needs</p><p>#5 Update the content in “launch.json” file to have below important attributes for our debugging,</p><pre>{<br>    &quot;name&quot;: &quot;&lt;provide a name to run a spec file&gt;&quot;,<br>    &quot;type&quot;: &quot;node&quot;,<br>    &quot;request&quot;: &quot;launch&quot;,<br>    &quot;args&quot;: [&quot;wdio.conf.js&quot;, &quot;--spec&quot;, &quot;${file}&quot;],<br>    &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,<br>    &quot;autoAttachChildProcesses&quot;: true,<br>    &quot;program&quot;: &quot;${workspaceRoot}/node_modules/@wdio/cli/bin/wdio.js&quot;,<br>    &quot;console&quot;: &quot;integratedTerminal&quot;,<br>},</pre><p>#6 If you want to run all the spec files then remove,</p><pre>&quot;--spec&quot;, &quot;${file}&quot; from &quot;args&quot;</pre><p>and keep only as,</p><pre>&quot;args&quot;: [&quot;wdio.conf.js&quot;],</pre><p>If you want to run a specific test rather than what is mentioned in “wdio.config.js” then update the attribute “args” like below,</p><pre>&quot;args&quot;: [&quot;wdio.conf.js&quot;, &quot;--spec&quot;, &quot;test/specs/search.js&quot;],</pre><p>In this case, even though the “wdio.config.js” is configured to run “watches.js” as mentioned in below snapshot, it still runs the test ”test/specs/search.js” as specified in your debugger attributes,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWylQiA2z5gvpW2ahvH2XQ.png" /></figure><p>You may also add another attribute “env” in “launch.json” file to pass optional environment variables for ex.,</p><pre>&quot;env&quot;: {&quot;TOKEN&quot;: &quot;REF87DdfdfdsferERR&quot;},</pre><p>Similarly you can add more attributes based on the need</p><p>#7 Place breakpoints on the script</p><p>#8 Select Run -&gt; Start Debugging to initiate the debugger. We can see the debugger is launched and the execution holds at the step where the breakpoint is in place,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvU6oJuFT0usVOs4bgjXBw.png" /></figure><p><strong>Note: </strong>The attributes available in launch configurations vary from debugger to debugger. You can use IntelliSense suggestions (⌃Space) to find out which attributes exist for a specific debugger. Hover help is also available for all attributes. To know more about all the other attributes, refer the link below,</p><p><a href="https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-attributes">Debug Node.js Apps using Visual Studio Code</a></p><p>Hope you will be able to make use of these options and debug your tests easily. Happy debugging !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c9c59702384" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging on WebDriverIO from VSCode]]></title>
            <link>https://medium.com/@arunkumarnehruks/debugging-on-webdriverio-from-vscode-91d5e428b2c?source=rss-1b1365562781------2</link>
            <guid isPermaLink="false">https://medium.com/p/91d5e428b2c</guid>
            <category><![CDATA[debugging-javascript]]></category>
            <category><![CDATA[webdriverio]]></category>
            <dc:creator><![CDATA[Arunkumar Nehru KS]]></dc:creator>
            <pubDate>Wed, 28 Dec 2022 17:25:56 GMT</pubDate>
            <atom:updated>2022-12-28T17:25:56.686Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the challenges I faced when I started using WebDriverIO on VSCode is “Debugging”. It was not that easy for me to invoke the debugger and start debugging my scripts to understand the failure reason. I have always been using “Console.log()” whenever I wanted to understand the execution progress. I knew, it was never easy for me to understand more information if there is any failure.</p><p>After exploring some sources online I got to know some of the options to debug on VSCode and I have added those below.</p><p><strong>NOTE</strong>: Remove/Kill every tab opened within VSCode Terminal and close Terminal within VSCode if its open.</p><p><strong>Here are a few options and step by step process to debug your scripts on VSCode:</strong></p><p><strong>Option 1:</strong></p><p>#1 Select View -&gt; Command Palette… in VSCode or press command+shift+p to invoke Command Palette</p><p>#2 Enter “Auto attach” and select “Debug: Toggle Auto Attach” option displayed from the filtered list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_PG-EFy28muNUS9lnvRcg.png" /></figure><p>#3 Select “Always Auto attach to every Node.js process launched in the terminal”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nh0VFNl4JKxYqvOtUq1FCQ.png" /></figure><p>#4 Place breakpoints on the script</p><p>#5 Invoke a new terminal and execute the script from Terminal. We can see the debugger is launched and the execution holds at the step where breakpoint is in place,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9yd8Ij4lDzUw7tRztvrHQ.png" /></figure><p><strong>Option 2:</strong></p><p>#1 Open the config file, for ex. wdio.conf.js file and add the below line of code and save the file,</p><blockquote>execArgv: [` — inspect`],</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Zj_xONM33N7QyVj6xqMmg.png" /></figure><p>#2 Select View -&gt; Command Palette… in VSCode or press command+shift+p to invoke Command Palette.</p><p>#3 Enter “Auto attach” and select “Debug: Toggle Auto Attach” option displayed from the filtered list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_PG-EFy28muNUS9lnvRcg.png" /></figure><p>#4 Select “Only With Flag Only auto attach when the `— inspect` flag is given”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SshT_CsqKHJ1OiBF63fy7w.png" /></figure><p>#4 Place breakpoints on the script</p><p>#5 Invoke a new terminal and execute the script from Terminal. We can see the debugger is launched and the execution holds at the step where breakpoint is in place,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9yd8Ij4lDzUw7tRztvrHQ.png" /></figure><p><strong>Option 3:</strong></p><p>#1 Invoke a new Terminal within VSCode</p><p>#2 Click on the small dropdown next to the + option in the Terminal,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GbUFrEQ2BLORWUFmQHeUTQ.png" /></figure><p>#3 Select “JavaScript Debug Terminal” option. We can see a new tab is launched with the label as “JavaScript Debug Terminal”,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDkhNJ4VD5fw3Gvl1CSPaA.png" /></figure><p>#4 Place breakpoints on the script</p><p>#5 Execute the script from Terminal from the tab “JavaScript Debug Terminal”. We can see the debugger is launched and the execution holds at the step where breakpoint is in place,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9yd8Ij4lDzUw7tRztvrHQ.png" /></figure><p>I hope these options provided above would help you to debug the script resolve the issues faster. Happy debugging !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91d5e428b2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>