<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Industry Trends on Testing Observation</title><link>https://chengxiaqiucao.github.io/en/tags/industry-trends/</link><description>Recent content in Industry Trends on Testing Observation</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>|by Daniel Wei</copyright><lastBuildDate>Wed, 20 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://chengxiaqiucao.github.io/en/tags/industry-trends/index.xml" rel="self" type="application/rss+xml"/><item><title>ISTQB CT-GenAI Expert Level Certification for Testing with Generative AI Explained</title><link>https://chengxiaqiucao.github.io/en/post/107-ct-genai/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://chengxiaqiucao.github.io/en/post/107-ct-genai/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/107-ct-genai/Pasted-20250820.webp" alt="Featured image of post ISTQB CT-GenAI Expert Level Certification for Testing with Generative AI Explained" />&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/107-ct-genai/Pasted-20250820_hu_772baf22197f7cc4.webp"
width="1024"
height="547"
srcset="https://chengxiaqiucao.github.io/post/107-ct-genai/Pasted-20250820_hu_d8846dc5185c15c5.webp 480w, https://chengxiaqiucao.github.io/post/107-ct-genai/Pasted-20250820_hu_772baf22197f7cc4.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="187"
data-flex-basis="449px"
>
&lt;/p>
&lt;h2 id="preface">Preface
&lt;/h2>&lt;p>The International Software Testing Qualifications Board (ISTQB®) officially released the &lt;strong>Expert Level Certification Syllabus - Testing with Generative AI (CT-GenAI) v1.0&lt;/strong> on July 25, 2025. This is the world&amp;rsquo;s first professional certification standard focused on the application of generative AI in the field of software testing. It aims to provide testing professionals with a systematic body of knowledge, helping them effectively use generative AI technologies to improve testing efficiency and quality.&lt;/p>
&lt;p>The syllabus authors are: &lt;code>Abbas Ahmad, Gualtiero Bazzana, Alessandro Collino, Olivier Denoo, and Bruno Legeard&lt;/code>&lt;/p>
&lt;p>The following content is organized based on the syllabus and can be used as a reference.&lt;/p>
&lt;h2 id="certification-background-and-objectives">Certification Background and Objectives
&lt;/h2>&lt;h3 id="core-value-positioning">Core Value Positioning
&lt;/h3>&lt;p>The CT-GenAI certification is intended for all professionals involved in software testing, including:&lt;/p>
&lt;ul>
&lt;li>Test engineers, test analysts, test automation engineers&lt;/li>
&lt;li>Test managers, user acceptance testers, software developers&lt;/li>
&lt;li>Project managers, quality managers, software development managers&lt;/li>
&lt;li>Business analysts, IT directors, and management consultants&lt;/li>
&lt;/ul>
&lt;h3 id="five-key-business-outcomes">Five Key Business Outcomes
&lt;/h3>&lt;p>Professionals who obtain this certification will have the following core capabilities:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Understand the basic concepts, capabilities, and limitations of generative AI&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Master large language model prompt engineering skills for software testing&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Identify and mitigate the risks of generative AI in software testing&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Understand the applications of generative AI solutions in software testing&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Effectively participate in the formulation and implementation of generative AI testing strategies within the organization&lt;/strong>&lt;/li>
&lt;/ol>
&lt;h2 id="certification-content-system">Certification Content System
&lt;/h2>&lt;h3 id="chapter-1-fundamentals-of-generative-ai-in-software-testing">Chapter 1: Fundamentals of Generative AI in Software Testing
&lt;/h3>&lt;h4 id="core-concepts-of-generative-ai">Core Concepts of Generative AI
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>AI technology lineage&lt;/strong>: The differences and application scenarios of symbolic AI, classical machine learning, deep learning, and generative AI&lt;/li>
&lt;li>&lt;strong>Large Language Model (LLM) fundamentals&lt;/strong>:
&lt;ul>
&lt;li>Tokenization and Embedding technologies&lt;/li>
&lt;li>The concept of Context Window and its impact&lt;/li>
&lt;li>Non-deterministic behavior characteristics&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>LLM classification system&lt;/strong>:
&lt;ul>
&lt;li>Foundation LLMs&lt;/li>
&lt;li>Instruction-Tuned LLMs&lt;/li>
&lt;li>Reasoning LLMs&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Multimodal LLMs and Vision-Language Models&lt;/strong>: The ability to process multimodal data such as text, images, and audio&lt;/li>
&lt;/ul>
&lt;h4 id="core-capabilities-of-generative-ai-in-testing">Core Capabilities of Generative AI in Testing
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Requirements analysis and improvement&lt;/strong>: Identify ambiguity, inconsistency, and missing information in requirements&lt;/li>
&lt;li>&lt;strong>Test case generation&lt;/strong>: Create test cases based on system requirements or user stories&lt;/li>
&lt;li>&lt;strong>Test oracle generation&lt;/strong>: Automatically generate expected results&lt;/li>
&lt;li>&lt;strong>Test data generation&lt;/strong>: Create datasets, boundary values, and test data combinations&lt;/li>
&lt;li>&lt;strong>Test automation support&lt;/strong>: Generate test scripts from test case descriptions&lt;/li>
&lt;li>&lt;strong>Test result analysis&lt;/strong>: Create summaries and classify anomalies by severity and priority&lt;/li>
&lt;li>&lt;strong>Test artifact creation&lt;/strong>: Generate test plans, test reports, and defect reports&lt;/li>
&lt;/ul>
&lt;h4 id="comparison-of-interaction-modes">Comparison of Interaction Modes
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>AI chatbots&lt;/strong>: Provide a natural-language interaction interface, suitable for quick feedback and concept clarification&lt;/li>
&lt;li>&lt;strong>LLM-driven testing applications&lt;/strong>: Enable automated testing tasks through API integration, supporting customization and scalability&lt;/li>
&lt;/ul>
&lt;h3 id="chapter-2-prompt-engineering-for-effective-software-testing">Chapter 2: Prompt Engineering for Effective Software Testing
&lt;/h3>&lt;h4 id="effective-prompt-generation">Effective Prompt Generation
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Six elements of prompt structure&lt;/strong>:
&lt;ol>
&lt;li>Role: Define the perspective the AI should adopt (e.g., tester, test manager)&lt;/li>
&lt;li>Context: Provide the test object and background information&lt;/li>
&lt;li>Instruction: Specify the task to be performed&lt;/li>
&lt;li>Input Data: Provide specific test materials&lt;/li>
&lt;li>Constraints: Set limits and rules&lt;/li>
&lt;li>Output Format: Specify the desired response format&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ul>
&lt;h4 id="core-prompting-techniques">Core Prompting Techniques
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Zero-shot Prompting&lt;/strong>: Request a task directly without examples&lt;/li>
&lt;li>&lt;strong>Few-shot Prompting&lt;/strong>: Provide a small number of examples to guide the AI&lt;/li>
&lt;li>&lt;strong>Prompt Chaining&lt;/strong>: Break a complex task down into multiple sequential prompts&lt;/li>
&lt;li>&lt;strong>Meta Prompting&lt;/strong>: Guide the AI on how to think about the task itself&lt;/li>
&lt;/ul>
&lt;h4 id="test-task-applications">Test Task Applications
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Test analysis&lt;/strong>: Use multimodal prompts to generate acceptance criteria for GUI wireframes&lt;/li>
&lt;li>&lt;strong>Test design and implementation&lt;/strong>:
&lt;ul>
&lt;li>Generate functional test cases from user stories&lt;/li>
&lt;li>Use few-shot prompting to generate Gherkin-style test conditions&lt;/li>
&lt;li>Determine test case priorities through prompt chaining&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Automated regression testing&lt;/strong>:
&lt;ul>
&lt;li>Create and manage keyword-driven test scripts&lt;/li>
&lt;li>Analyze test reports with structured prompts&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Test monitoring and control&lt;/strong>: Generate monitoring metrics based on test data&lt;/li>
&lt;/ul>
&lt;h3 id="chapter-3-managing-the-risks-of-generative-ai-in-software-testing">Chapter 3: Managing the Risks of Generative AI in Software Testing
&lt;/h3>&lt;h4 id="key-risk-types">Key Risk Types
&lt;/h4>&lt;ol>
&lt;li>&lt;strong>Hallucinations and reasoning errors&lt;/strong>:
&lt;ul>
&lt;li>Identify factual errors and logical flaws in LLM output&lt;/li>
&lt;li>Mitigation techniques: fact-checking, multi-model verification, human review&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Data privacy and security risks&lt;/strong>:
&lt;ul>
&lt;li>Privacy vulnerabilities in test data and tools&lt;/li>
&lt;li>Mitigation strategies: data masking, local deployment, access control&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Energy consumption and environmental impact&lt;/strong>:
&lt;ul>
&lt;li>Assess the energy consumption and carbon emissions of GenAI usage&lt;/li>
&lt;li>Optimize model usage efficiency and reduce resource waste&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h4 id="compliance-framework">Compliance Framework
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>AI regulations and standards&lt;/strong>: EU AI Act, ISO/IEC 38507, etc.&lt;/li>
&lt;li>&lt;strong>Best practice frameworks&lt;/strong>: Responsible AI usage guidelines, ethical testing principles&lt;/li>
&lt;/ul>
&lt;h3 id="chapter-4-llm-driven-testing-infrastructure">Chapter 4: LLM-Driven Testing Infrastructure
&lt;/h3>&lt;h4 id="architectural-approaches">Architectural Approaches
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Key architectural components&lt;/strong>:
&lt;ul>
&lt;li>Model service layer&lt;/li>
&lt;li>Prompt engineering layer&lt;/li>
&lt;li>Result evaluation layer&lt;/li>
&lt;li>Integration interface layer&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Retrieval-Augmented Generation (RAG)&lt;/strong>: Combine external knowledge bases to improve response accuracy&lt;/li>
&lt;li>&lt;strong>LLM-driven testing agents&lt;/strong>: Intelligent agents that automate the testing process&lt;/li>
&lt;/ul>
&lt;h4 id="model-optimization-and-operations">Model Optimization and Operations
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Fine-Tuning&lt;/strong>: Optimize LLMs for specific testing tasks&lt;/li>
&lt;li>&lt;strong>LLMOps (Large Language Model Operations)&lt;/strong>:
&lt;ul>
&lt;li>Model deployment and version management&lt;/li>
&lt;li>Performance monitoring and optimization&lt;/li>
&lt;li>Cost control strategies&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="chapter-5-deployment-and-integration-of-generative-ai-in-testing-organizations">Chapter 5: Deployment and Integration of Generative AI in Testing Organizations
&lt;/h3>&lt;h4 id="adoption-roadmap">Adoption Roadmap
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Shadow AI risks&lt;/strong>: Security risks brought by the use of unapproved AI tools&lt;/li>
&lt;li>&lt;strong>Key strategic elements&lt;/strong>:
&lt;ul>
&lt;li>Define clear business goals and value propositions&lt;/li>
&lt;li>Select suitable LLMs/SLMs (Small Language Models)&lt;/li>
&lt;li>Phased implementation plan&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Adoption stages&lt;/strong>:
&lt;ol>
&lt;li>Pilot and proof of concept&lt;/li>
&lt;li>Technical capability building&lt;/li>
&lt;li>Process integration&lt;/li>
&lt;li>Scale-up and promotion&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ul>
&lt;h4 id="change-management">Change Management
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Core skills and knowledge&lt;/strong>:
&lt;ul>
&lt;li>Prompt engineering skills&lt;/li>
&lt;li>AI ethics and risk awareness&lt;/li>
&lt;li>Test automation and AI integration skills&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Team capability building&lt;/strong>:
&lt;ul>
&lt;li>Develop training plans&lt;/li>
&lt;li>Build communities of practice&lt;/li>
&lt;li>Bring in external experts&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Evolution of testing processes&lt;/strong>:
&lt;ul>
&lt;li>Integration of traditional testing processes with AI-enhanced processes&lt;/li>
&lt;li>Define new roles and responsibilities&lt;/li>
&lt;li>Continuous improvement mechanisms&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="certification-system-and-exam-requirements">Certification System and Exam Requirements
&lt;/h2>&lt;h3 id="cognitive-level-classification">Cognitive Level Classification
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>K1 (Remember)&lt;/strong>: Identify and recall terms and concepts&lt;/li>
&lt;li>&lt;strong>K2 (Understand)&lt;/strong>: Explain and compare concepts and relationships&lt;/li>
&lt;li>&lt;strong>K3 (Apply)&lt;/strong>: Apply knowledge and skills in specific situations&lt;/li>
&lt;/ul>
&lt;h3 id="practical-objective-levels">Practical Objective Levels
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>H0&lt;/strong>: Demonstration observation (not performed by the learner)&lt;/li>
&lt;li>&lt;strong>H1&lt;/strong>: Guided practice (the learner follows instructions)&lt;/li>
&lt;li>&lt;strong>H2&lt;/strong>: Practice with prompts (completed independently by the learner)&lt;/li>
&lt;/ul>
&lt;h3 id="exam-requirements">Exam Requirements
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Prerequisite&lt;/strong>: Hold an ISTQB® Foundation Level certificate&lt;/li>
&lt;li>&lt;strong>Exam content&lt;/strong>: Based on all chapters of this syllabus (except the introduction and appendices)&lt;/li>
&lt;li>&lt;strong>Exam format&lt;/strong>: Multiple-choice questions requiring the integrated application of knowledge from multiple chapters&lt;/li>
&lt;/ul>
&lt;h2 id="certification-value-and-applicable-scenarios">Certification Value and Applicable Scenarios
&lt;/h2>&lt;h3 id="career-development-path">Career Development Path
&lt;/h3>&lt;p>The CT-GenAI certification is an important part of the ISTQB® Expert Level certification system, and holders can continue to advance:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Advanced Level certifications&lt;/strong>: Test Analyst, Technical Test Analyst, Test Manager, Test Engineer&lt;/li>
&lt;li>&lt;strong>Expert Level certifications&lt;/strong>: Test Management, Test Process Improvement&lt;/li>
&lt;/ul>
&lt;h3 id="industry-application-value">Industry Application Value
&lt;/h3>&lt;ol>
&lt;li>&lt;strong>Efficiency improvement&lt;/strong>: Reduce repetitive testing work through AI automation&lt;/li>
&lt;li>&lt;strong>Quality enhancement&lt;/strong>: Use AI analytical capabilities to find deeper defects&lt;/li>
&lt;li>&lt;strong>Cost optimization&lt;/strong>: Allocate testing resources reasonably and reduce overall testing costs&lt;/li>
&lt;li>&lt;strong>Innovation drive&lt;/strong>: Explore new application scenarios of AI in the testing field&lt;/li>
&lt;li>&lt;strong>Risk management&lt;/strong>: Systematically identify and mitigate risks related to AI testing&lt;/li>
&lt;/ol>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>As generative AI technology continues to evolve, testing professionals need to continuously update their knowledge systems. While enjoying the efficiency gains brought by AI, they must maintain a deep understanding of the essence of testing — ensuring the quality and reliability of software products.&lt;/p>
&lt;p>Learning about the CT-GenAI certification can serve as a reference for a systematic body of knowledge and a practical guide.&lt;/p>
&lt;p>For certification details, you can refer to the official ISTQB website in China: &lt;strong>CSTQB&lt;/strong>&lt;/p>
&lt;p>&lt;a class="link" href="https://www.cstqb.cn/" target="_blank" rel="noopener"
>https://www.cstqb.cn/&lt;/a>&lt;/p>
&lt;h3 id="appendix">Appendix
&lt;/h3>&lt;p>&lt;a class="link" href="https://mp.weixin.qq.com/s?__biz=MzA5ODIzMjQxOA==&amp;amp;mid=2651317880&amp;amp;idx=1&amp;amp;sn=fdb7de2401192ad6bb9a7895902cc4d0&amp;amp;scene=21&amp;amp;poc_token=HKzEpWijrOJg5HWnv60wj7RFJ7XlA-pHz21CyTIC" target="_blank" rel="noopener"
>https://mp.weixin.qq.com/s?__biz=MzA5ODIzMjQxOA==&amp;mid=2651317880&amp;idx=1&amp;sn=fdb7de2401192ad6bb9a7895902cc4d0&amp;scene=21&amp;poc_token=HKzEpWijrOJg5HWnv60wj7RFJ7XlA-pHz21CyTIC&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://istqb.org/istqb-certified-tester-specialist-level-testing-with-generative-ai-ct-genai-press-release/" target="_blank" rel="noopener"
>https://istqb.org/istqb-certified-tester-specialist-level-testing-with-generative-ai-ct-genai-press-release/&lt;/a>&lt;/p>
&lt;p>&lt;a class="link" href="https://isqi.org/media/ce/63/da/1753702121/CT-GenAI%20-%20Syllabus%20v1.0_all_.pdf" target="_blank" rel="noopener"
>https://isqi.org/media/ce/63/da/1753702121/CT-GenAI%20-%20Syllabus%20v1.0_all_.pdf&lt;/a>&lt;/p></description></item><item><title>Fourteen Years Later, Revisiting "Testing Is Dead"</title><link>https://chengxiaqiucao.github.io/en/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/</link><pubDate>Wed, 30 Jul 2025 18:00:11 +0800</pubDate><guid>https://chengxiaqiucao.github.io/en/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730-1.webp" alt="Featured image of post Fourteen Years Later, Revisiting "Testing Is Dead"" />&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730-1_hu_51b40093af423870.webp"
width="1024"
height="577"
srcset="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730-1_hu_e5de76ad1f21ad9d.webp 480w, https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730-1_hu_51b40093af423870.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="177"
data-flex-basis="425px"
>
&lt;/p>
&lt;h2 id="introduction">Introduction
&lt;/h2>&lt;p>Going back fourteen years, to October 2011, at Google&amp;rsquo;s &lt;code>GTAC&lt;/code> (Google Test Automation Conference), &lt;code>Alberto Savoia&lt;/code> walked onto the stage dressed as the Grim Reaper and dramatically declared that &amp;ldquo;software testing is dead&amp;rdquo;.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730_hu_5aa5456d0b596281.webp"
width="1024"
height="670"
srcset="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730_hu_73de283ab7e4afb8.webp 480w, https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/Pasted-20250730_hu_5aa5456d0b596281.webp 1024w"
loading="lazy"
alt="savoia’s talk"
class="gallery-image"
data-flex-grow="152"
data-flex-basis="366px"
>
&lt;/p>
&lt;p>Soon after, the testing heavyweight &lt;code>Jame Whittaker&lt;/code> made the same declaration, &lt;code>Test is Dead&lt;/code>, at another testing conference, &lt;code>EuroSTAR&lt;/code>.&lt;/p>
&lt;p>The point of these remarks was the belief that software testing no longer needs to be an independent role in the software development process. With mature software processes and tools, macro-level quality problems no longer require a relatively large, dedicated team to guarantee them. Instead, testing should evolve into a series of micro-activities distributed among other roles, such as project managers, developers, and even end users.
Distribute testing activities across other phases of development.&lt;/p>
&lt;p>And as this manifesto spread widely, many tech giants, including Google and Microsoft, began to cut dedicated testing positions, and testing transformed into test development or software efficiency departments.&lt;/p>
&lt;p>But more than a decade later, has the testing profession really died out? On the contrary, &lt;strong>Whittaker&lt;/strong> himself published an article last year (2024) titled &amp;ldquo;The Resurrection of Software Testing&amp;rdquo;, re-examining the evolution of the testing industry (original text at &lt;a class="link" href="https://medium.com/@docjamesw/the-resurrection-of-software-testing-634423cd8411" target="_blank" rel="noopener"
>https://medium.com/@docjamesw/the-resurrection-of-software-testing-634423cd8411&lt;/a>)&lt;/p>
&lt;p>In this article, let&amp;rsquo;s delve into this topic again.&lt;/p>
&lt;h2 id="the-recurring-claim-that-testing-is-dead">The Recurring Claim That &amp;ldquo;Testing Is Dead&amp;rdquo;
&lt;/h2>&lt;p>From the time the &amp;ldquo;testing is dead&amp;rdquo; claim was made, it has in fact been raised many times. This saying has recurred in at least three periods:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>The Selenium open-source era&lt;/strong>: As automated testing tools gradually entered everyday enterprise use, machines replacing humans seemed within reach&lt;/li>
&lt;li>&lt;strong>The era of rampant automation frameworks and platforms&lt;/strong>: A large number of automated testing solutions flooded the market, all claiming they could greatly reduce testing work&lt;/li>
&lt;li>&lt;strong>Today&amp;rsquo;s AI era&lt;/strong>: With AI now in full swing, the old tune is replayed, claiming AI can already replace the work of testers&lt;/li>
&lt;/ol>
&lt;h3 id="why">Why?
&lt;/h3>&lt;p>Actually, on careful reflection, this cyclical recurrence is no accident; it reflects a common misalignment between technological change and industry perception. Whenever a new technology appears, people tend to be overly optimistic that it can completely replace human judgment and creativity.&lt;/p>
&lt;p>Beyond that, the testing industry&amp;rsquo;s own perception of testing largely supplies fuel for this claim.&lt;/p>
&lt;h4 id="many-training-institutions-and-many-testers-themselves-do-not-regard-testing-as-a-discipline">Many training institutions, and many testers themselves, do not regard testing as a discipline
&lt;/h4>&lt;ul>
&lt;li>Enter the field with zero background&lt;/li>
&lt;li>Even a novice can do testing&lt;/li>
&lt;li>Testing is nothing but &amp;ldquo;clicking around&amp;rdquo;&lt;/li>
&lt;li>Knowing how to write automation scripts makes you a senior tester&lt;/li>
&lt;/ul>
&lt;h4 id="companies-confuse-automation-with-testing">Companies confuse automation with testing
&lt;/h4>&lt;p>Many companies vigorously promote automation and set up test-development positions.&lt;/p>
&lt;p>But they fail to truly recognize that so-called automated testing is, more often than not, just &lt;code>checking&lt;/code>, which is far from real &lt;code>testing&lt;/code>.&lt;/p>
&lt;p>Test developers spend a great deal of time building frameworks and platforms, trying every means to improve efficiency with tools, but there are few real cases of achievements in expanding testing thinking or digging out deep quality problems.&lt;/p>
&lt;h4 id="unclear-testing-goals">Unclear testing goals
&lt;/h4>&lt;p>As said before, there are many who believe testing exists to verify requirements. Testers are more like &amp;ldquo;quality inspectors&amp;rdquo; holding a checklist, judging by whether specifications are met rather than whether the product can deliver value.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/kanban_hu_db7cce2d3788d84e.webp"
width="1024"
height="598"
srcset="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/kanban_hu_822e9c734857b46d.webp 480w, https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/kanban_hu_db7cce2d3788d84e.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="171"
data-flex-basis="410px"
>
&lt;/p>
&lt;p>It is precisely these widespread misconceptions across the testing industry that do enormous harm to testing itself.&lt;/p>
&lt;p>But even after testing positions are cut? TDD, BDD, and starting with the end in mind mean developers actually take on testing duties; or end customers are made to act as testers without knowing it, and once they find a problem, people scramble to fix it quickly.&lt;/p>
&lt;p>So it is not that testing is dead; only the party responsible for performing testing and the division of responsibilities have shifted.&lt;/p>
&lt;h2 id="what-kind-of-testing-should-truly-die-out">What Kind of &amp;ldquo;Testing&amp;rdquo; Should Truly Die Out?
&lt;/h2>&lt;p>Just as I have stressed in several earlier articles about the real purpose of software testing. 【】&lt;/p>
&lt;p>The true purpose of testing is neither simply to verify requirements nor merely to find bugs.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/testing-checking_hu_dd929c89bdafaa47.webp"
width="1024"
height="782"
srcset="https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/testing-checking_hu_49031c7ebfaab54e.webp 480w, https://chengxiaqiucao.github.io/post/115-%E6%B5%8B%E8%AF%95%E5%B7%B2%E6%AD%BB10%E5%B9%B4/testing-checking_hu_dd929c89bdafaa47.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="130"
data-flex-basis="314px"
>
&lt;/p>
&lt;p>A clear distinction should also be drawn between &lt;code>testing&lt;/code> and &lt;code>checking&lt;/code>. As technology advances, the &lt;code>checking&lt;/code> part of testing is what should gradually be weakened and removed from testing responsibilities.&lt;/p>
&lt;p>Automated testing, those checklists of test cases and the green progress bars on CI dashboards, really cannot count as testing genuinely oriented toward quality; all they bring is a false sense of security.&lt;/p>
&lt;p>These &amp;ldquo;checkbox activities&amp;rdquo; that tick through items according to pre-written scripts are the part that should truly be distinguished from testing and should die out.&lt;/p>
&lt;p>Spending large amounts of time writing and maintaining these formalized test cases and test scripts actually reduces the real &lt;code>testing&lt;/code> time available for exploring the product and gaining insight into risks, and in fact harms the true value of testing.&lt;/p>
&lt;h3 id="automated-testing-vs-real-testing">Automated Testing vs. Real Testing
&lt;/h3>&lt;p>We must clarify the following core understanding:&lt;/p>
&lt;p>&lt;strong>Automated testing is usually only used to check what is already known, the behavior we expect the system to perform.&lt;/strong>
&lt;strong>Real testing, on the other hand, is about the unknown. It is a discipline that requires investigation, exploration, questioning, reasoning, experimentation, and verification. No script or AI can fully replace it.&lt;/strong>&lt;/p>
&lt;p>The true value of testing should always lie in exploring the unknown, in discovering problems that cannot be foreseen through automation.&lt;/p>
&lt;h2 id="redefining-the-value-of-testing">Redefining the Value of Testing
&lt;/h2>&lt;p>Testing is not only about finding bugs, nor only about tools. Its value should include:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Understanding product risks&lt;/strong>: Identifying potential problems that could affect users or the business&lt;/li>
&lt;li>&lt;strong>Communicating uncertainty&lt;/strong>: Clearly conveying findings about product quality and risk&lt;/li>
&lt;li>&lt;strong>Modeling user behavior&lt;/strong>: Predicting how real users will interact with the system&lt;/li>
&lt;li>&lt;strong>Finding problems others missed&lt;/strong>: Offering a unique perspective and insight&lt;/li>
&lt;/ul>
&lt;p>These values are indispensable in any software development lifecycle. When an organization truly understands these values, testing will inevitably take an important role in the software development process, whether performed by dedicated testers or by developers and other roles.&lt;/p>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;blockquote>
&lt;p>&lt;strong>Testing has never died; it only keeps being reborn!&lt;/strong>&lt;/p>&lt;/blockquote>
&lt;p>The &amp;ldquo;testing is dead&amp;rdquo; claim surfaces every few years, but testing has never truly died.
It only keeps evolving - from manual testing to automation, from an independent role to distributed responsibility, from verifying the known to exploring the unknown. Every evolution is the result of testing adapting to new environments and new technologies.&lt;/p>
&lt;p>Today, as we face the wave of AI, the same story is replaying. Some predict AI will replace testers, but history tells us that technology changes the way testing is done, not the need for it. AI can automate more tasks, but the critical thinking, creativity, and systems thinking of human testers remain irreplaceable.&lt;/p>
&lt;p>The future of testing does not lie in resisting change, but in embracing evolution. Testers need to develop new skills and adopt new tools, but more importantly, they must hold fast to the core value of testing - exploring the unknown, assessing risk, and safeguarding quality.&lt;/p></description></item><item><title>Is Testing Really Inferior to Development?</title><link>https://chengxiaqiucao.github.io/en/post/110-%E6%B5%8B%E8%AF%95%E5%92%8C%E5%BC%80%E5%8F%91%E7%9A%84%E6%AF%94%E8%BE%83/</link><pubDate>Sun, 13 Jul 2025 11:26:50 +0800</pubDate><guid>https://chengxiaqiucao.github.io/en/post/110-%E6%B5%8B%E8%AF%95%E5%92%8C%E5%BC%80%E5%8F%91%E7%9A%84%E6%AF%94%E8%BE%83/</guid><description>&lt;blockquote>
&lt;p>Someone asked whether people who do testing are really inferior to developers?&lt;/p>&lt;/blockquote>
&lt;p>Although everyone has their own view, it is still worth thinking about the mainstream view represented behind this question.&lt;/p>
&lt;p>Below I share Qiucao&amp;rsquo;s perspective.&lt;/p>
&lt;h2 id="testing-technology-and-development-technology-are-not-the-same-track">Testing Technology and Development Technology Are Not the Same Track
&lt;/h2>&lt;p>First of all, to truly do the testing job well, the skill requirements are actually quite high. But testing technology and development technology are technologies of different dimensions. A developer complaining about testers by comparing software development skills is like a basketball player mocking a swimmer for being slow at running.&lt;/p>
&lt;p>Testing technology includes many requirements that differ from development technology; for details, see my other earlier article 【】, which I will not repeat here.&lt;/p>
&lt;h2 id="real-reasons-why-testing-is-underrated">Real Reasons Why Testing Is Underrated
&lt;/h2>&lt;p>But we must also recognize this objective fact — in most enterprises, the say, salary, and so on of the testing position are usually a notch lower than those of developers at the same level.&lt;/p>
&lt;p>There are in fact multiple reasons for this situation, mainly the general perception of the role and a rather harsh industry environment. Specifically:&lt;/p>
&lt;h3 id="the-mismatch-between-job-requirements-and-expected-output">The Mismatch Between Job Requirements and Expected Output
&lt;/h3>&lt;p>First of all, most current testing job requirements actually revolve around verifying requirements — including test case design and test automation implementation, all of which are based on the verification of existing requirements.&lt;/p>
&lt;p>But verifying requirements is actually more &lt;strong>checking&lt;/strong> work than &lt;strong>testing&lt;/strong> work.&lt;/p>
&lt;p>Checking, as a subset of testing, actually has lower requirements and does not demand much technical skill. Correspondingly, job requirements centered on requirement verification are in fact requirements for a low-skill position.&lt;/p>
&lt;p>The contradiction, however, is that the expectation of the testing position is to guarantee comprehensive quality after the product is released. And the coverage requirements for product quality simply cannot be achieved through requirement verification alone.&lt;/p>
&lt;p>Requirement verification is mainly about functional coverage, and usually includes only basic scenarios, lacking all kinds of abnormal scenarios and non-functional scenarios. To achieve quality coverage, it is necessary to rely on full-process quality control during the development phase, including the &lt;strong>testing&lt;/strong> work in the testing phase. Here, &lt;strong>testing&lt;/strong> is not merely basic &lt;strong>checking&lt;/strong> — it must also include proactive discovery supported by a wider range of testing techniques.
&lt;img src="https://chengxiaqiucao.github.io/post/110-%E6%B5%8B%E8%AF%95%E5%92%8C%E5%BC%80%E5%8F%91%E7%9A%84%E6%AF%94%E8%BE%83/testing-checking_hu_dd929c89bdafaa47.webp"
width="1024"
height="782"
srcset="https://chengxiaqiucao.github.io/post/110-%E6%B5%8B%E8%AF%95%E5%92%8C%E5%BC%80%E5%8F%91%E7%9A%84%E6%AF%94%E8%BE%83/testing-checking_hu_49031c7ebfaab54e.webp 480w, https://chengxiaqiucao.github.io/post/110-%E6%B5%8B%E8%AF%95%E5%92%8C%E5%BC%80%E5%8F%91%E7%9A%84%E6%AF%94%E8%BE%83/testing-checking_hu_dd929c89bdafaa47.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="130"
data-flex-basis="314px"
>
&lt;/p>
&lt;p>And this mismatch between job requirements and expected output also leads to doubts about the effectiveness of the testing position.&lt;/p>
&lt;h3 id="lower-job-requirements-lead-to-a-lower-industry-barrier">Lower Job Requirements Lead to a Lower Industry Barrier
&lt;/h3>&lt;p>When the job requirements themselves mainly target low-skill &lt;strong>checking&lt;/strong> work, the entry barrier to the industry is naturally lowered too, and many newcomers with little experience or skill can enter the industry to perform the relevant checking work.&lt;/p>
&lt;p>In earlier years there was even a distinction between test design engineers and test execution engineers; here, test execution merely required following the cases to carry out operations and record the results. Such the most basic checking work can hardly be said to require much testing technology.&lt;/p>
&lt;p>A relatively low level of skill and job requirements naturally affects the overall evaluation of the position.&lt;/p>
&lt;h3 id="the-industrys-own-misdirection">The Industry&amp;rsquo;s Own Misdirection
&lt;/h3>&lt;p>The rapid development of the IT industry in earlier years and its relatively good compensation made IT a popular career choice. And for the reasons mentioned above, when low-skill checking work is dressed up in the clothes of testing work, such testing positions become the best entry channel for non-IT people to get into the industry.&lt;/p>
&lt;p>A large number of non-IT professionals hoping to enter the industry in turn generated a great deal of demand for training.&lt;/p>
&lt;p>Then, fueled by all kinds of training institutions — including hype about entering the industry with zero background and newcomers earning high salaries — large numbers of people were indeed delivered into the industry. The performance at work of these short-term, fast-track &amp;ldquo;talents&amp;rdquo; naturally affected the overall evaluation of the industry.&lt;/p>
&lt;h3 id="the-hardest-hit-area-in-the-industry-winter">The Hardest-Hit Area in the Industry Winter
&lt;/h3>&lt;p>As the IT winter arrived, enterprises, under cost pressure, cut spending and reduced headcount. Combined with all the factors mentioned above, this made testing the hardest-hit area — a vicious cycle in which the common perception of the testing position drifted even further from the value it deserves.&lt;/p>
&lt;h2 id="in-closing">In Closing
&lt;/h2>&lt;p>Objectively speaking, it is true that a large number of practitioners in the so-called &amp;ldquo;testing industry&amp;rdquo; in China today can hardly be called qualified, so saying it is inferior to development positions is not entirely wrong.&lt;/p>
&lt;p>But the &amp;ldquo;testing&amp;rdquo; here is in quotation marks — checking and testing are being confused as one.&lt;/p>
&lt;p>All in all, the overall environment of the entire testing industry today is rather harsh and misunderstandings run deep, and Qiucao feels quite powerless about it.&lt;/p>
&lt;p>There is no need to lose heart, however. If you build your own capability around the true goals of the role and deliver genuine value for comprehensive quality, you will naturally be the one still standing when the tide recedes.&lt;/p></description></item><item><title>Will MCP Fail? Questions About MCP</title><link>https://chengxiaqiucao.github.io/en/post/105-mcp_must_fail/</link><pubDate>Sun, 29 Jun 2025 21:25:34 +0800</pubDate><guid>https://chengxiaqiucao.github.io/en/post/105-mcp_must_fail/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629.webp" alt="Featured image of post Will MCP Fail? Questions About MCP" />&lt;blockquote>
&lt;p>&lt;strong>Model-Context Protocol (MCP&lt;/strong> has attracted widespread attention and rapid adoption since its launch. A large number of AI tools now support MCP. (For a detailed introduction to MCP, see my previous article【】) But as MCP has risen to prominence, doubts about it have gradually begun to emerge—for example, concerns about its security limitations (see my previous article【】). Recently, Edgenesis founder Yongli, Chen also published an article arguing that MCP is destined to fail. Here I have organized his main points into this article (see the link at the end for the original), so that you may use them as a reference and form your own judgment.&lt;/p>&lt;/blockquote>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629_hu_e9f2634ec35fe931.webp"
width="1024"
height="576"
srcset="https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629_hu_5d057b90ccc7264f.webp 480w, https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629_hu_e9f2634ec35fe931.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="177"
data-flex-basis="426px"
>
&lt;/p>
&lt;h2 id="introduction">Introduction
&lt;/h2>&lt;p>&lt;strong>Model-Context Protocol (MCP)&lt;/strong> has been in the spotlight since its very inception. It has been hailed as a universal standard aimed at seamless integration between artificial intelligence (AI) models and all kinds of software tools. On the surface, the protocol does address a genuine industry pain point: &lt;strong>replacing today&amp;rsquo;s chaotic jumble of custom application programming interfaces (APIs) and proprietary plugins with one simple, standard solution&lt;/strong>. MCP&amp;rsquo;s proponents paint a future in which AI agents can effortlessly connect to countless applications without tedious custom integration.&lt;/p>
&lt;p>Yet for all its technical elegance and the enormous attention it drew early on, MCP is destined to struggle. This is not due to any technical defect, but because it fundamentally misunderstands a crucial economic reality: in the digital business landscape, end-user attention is the key to commercial success.&lt;/p>
&lt;p>Every company will go to great lengths to guard user attention, because it is their primary source of monetization. Tool vendors therefore simply cannot afford the price of reducing themselves to mere backend functions by adopting MCP across the board.&lt;/p>
&lt;h2 id="the-real-battleground---ownership-of-attention">The Real Battleground - Ownership of Attention
&lt;/h2>&lt;p>To understand why MCP faces resistance, we must first consider a basic fact: &lt;strong>whoever controls the user interface controls the user relationship&lt;/strong>. A company that owns the interface thereby owns user engagement, data, and the revenue opportunities that arise from them. Services relegated to the backend, by contrast, become freely replaceable commodities—not only easy to substitute, but also stripped of any direct contact with their customers.&lt;/p>
&lt;p>History has repeatedly proved this law. Facebook, for example, built its business empire precisely by turning third-party applications into pure content providers. The early social-gaming giant Zynga learned this lesson the hard way. When Facebook changed its platform rules and tightened restrictions, the visibility of Zynga&amp;rsquo;s games plummeted. Zynga&amp;rsquo;s fate was sealed, because Facebook held a firm grip on user attention and thus dictated Zynga&amp;rsquo;s revenue and customer interaction.&lt;/p>
&lt;p>Similarly, Twitter blocked third-party clients because these clients allowed users to bypass Twitter&amp;rsquo;s advertising system, which amounted to &amp;ldquo;stealing&amp;rdquo; the platform&amp;rsquo;s user attention. Apple&amp;rsquo;s attitude toward web apps is another highly persuasive example: for years, Apple deliberately limited the functionality of web apps on iOS to ensure that native apps in the App Store stayed dominant, thereby preserving Apple&amp;rsquo;s direct relationship with users and its revenue streams.&lt;/p>
&lt;h2 id="mcps-naive-proposal">MCP&amp;rsquo;s Naive Proposal
&lt;/h2>&lt;p>MCP is, in effect, asking software vendors to voluntarily accept a new model: &lt;strong>turning their core functionality into simple backend services accessed primarily through AI-driven interfaces&lt;/strong>.&lt;/p>
&lt;p>Imagine a future in which booking a trip is done entirely through an AI assistant that interacts invisibly behind the scenes with airlines, hotels, and travel agencies via MCP. In this model, the interface—the point of user contact and decision-making—belongs entirely to the AI assistant, leaving the vendors unable to reach user attention directly.&lt;/p>
&lt;p>This effectively demotes vendors from &amp;ldquo;destinations&amp;rdquo; with differentiated brands and customer loyalty to standardized &amp;ldquo;utilities.&amp;rdquo; Such a shift would seriously threaten the core ability of vendors to capture value.&lt;/p>
&lt;p>Software-as-a-Service (SaaS) and tool vendors rely heavily on direct interaction with users to monetize their businesses—for example, upselling value-added features, crafting branded experiences, and collecting valuable user data.&lt;/p>
&lt;p>Once they fully embrace MCP, these vendors hand the user interface over to external AI aggregators, inevitably losing their customer relationships and direct monetization channels.&lt;/p>
&lt;h2 id="evidence-from-the-current-ai-ecosystem">Evidence from the Current AI Ecosystem
&lt;/h2>&lt;p>In reality, major software companies have behaved very cautiously in handling their relationships with AI-driven platforms such as OpenAI&amp;rsquo;s &lt;strong>ChatGPT&lt;/strong> and Anthropic&amp;rsquo;s &lt;strong>Claude&lt;/strong>.&lt;/p>
&lt;p>Whether Salesforce, Microsoft, or Google, all of them are seeking to embed AI capabilities deeply into their own proprietary interfaces, rather than allowing their tools to be fully invoked by external AI agents.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629-1_hu_1c27de0fc4a773cd.webp"
width="1024"
height="686"
srcset="https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629-1_hu_a8f15bf055ce4acc.webp 480w, https://chengxiaqiucao.github.io/post/105-mcp_must_fail/Pasted-20250629-1_hu_1c27de0fc4a773cd.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="149"
data-flex-basis="358px"
>
&lt;/p>
&lt;p>For example, Einstein GPT from Salesforce integrates AI directly into its customer relationship management (CRM) system, locking users firmly inside its own ecosystem. Similarly, Microsoft has prioritized deeply embedding Copilot AI into the Office and Windows environments. When tool vendors do attempt external AI integration, they usually provide only limited functionality—enough to attract users, but not enough to fully replace their own interfaces. A travel app, for instance, might let an AI assistant browse flight information, but will ultimately steer users back to its own platform to complete the booking, so as to preserve the crucial customer interaction and upselling opportunity.&lt;/p>
&lt;h2 id="mcp-is-bound-to-face-difficulties">MCP Is Bound to Face Difficulties
&lt;/h2>&lt;p>Past experience clearly reveals why MCP has struggled to gain widespread adoption—especially since the large software vendors that dominate market attention could never pivot fully to MCP.&lt;/p>
&lt;p>If these vendors truly believed it was worthwhile to give up user attention in exchange for open integration, they would have long since offered fully featured public APIs for free. The opposite is true: they typically build tightly controlled ecosystems, attracting new users through selective integration, and would never voluntarily surrender control over the user experience or revenue.&lt;/p>
&lt;p>This careful balancing act highlights MCP&amp;rsquo;s fundamental flaw: no matter how elegant or superior a protocol may be on the technical side, software vendors have no incentive to hand their precious customer relationships and monetization capabilities over to external aggregators.&lt;/p>
&lt;h2 id="platform-economics-is-the-foundation-of-technology">Platform Economics Is the Foundation of Technology
&lt;/h2>&lt;p>Ultimately, what decides MCP&amp;rsquo;s fate is not its technical merits or demerits, but commercial incentives and the dynamics of platform economics. Platform owners will inevitably find ways to protect their core asset—the direct connection with users. The approach MCP proposes fundamentally upends this dynamic, setting it against deeply entrenched economic incentives.&lt;/p>
&lt;p>In practice, MCP may gain limited adoption among some smaller vendors or niche communities where openness itself has intrinsic value. Among the mainstream SaaS vendors and large platforms that dominate today&amp;rsquo;s digital economy, however, adopting MCP is at best more about extending one&amp;rsquo;s own reach than exposing one&amp;rsquo;s own capabilities.&lt;/p>
&lt;p>In essence, although MCP aspires to become a universal standard, it faces a harsh economic reality: no company wants to resign itself to becoming an invisible backdrop. Every company will fight tooth and nail to defend its control over the user interface (that is, &lt;strong>control of the user relationship&lt;/strong>) and to limit any integration that might threaten its strategic position.&lt;/p>
&lt;h3 id="conclusion">Conclusion
&lt;/h3>&lt;p>The vision of seamless, universal AI integration painted by MCP is undeniably compelling, but in the business world, striking technology alone rarely decides success or failure.&lt;/p>
&lt;p>The battle over standards is ultimately a battle over economic power. MCP&amp;rsquo;s design challenges the very incentive structures that have driven the digital economy for decades. It is precisely for this reason that MCP faces enormous obstacles on the road to widespread adoption.&lt;/p>
&lt;p>Until it can better align with platform economics and vendors&amp;rsquo; inherent incentives, MCP&amp;rsquo;s ambition to become the universal standard for AI-tool integration is likely to remain a distant dream.&lt;/p>
&lt;p>Original article link:
&lt;a class="link" href="https://www.forbes.com/councils/forbestechcouncil/2025/06/12/mcp-will-fail-and-heres-why/" target="_blank" rel="noopener"
>https://www.forbes.com/councils/forbestechcouncil/2025/06/12/mcp-will-fail-and-heres-why/&lt;/a>&lt;/p></description></item><item><title>The Sky Is Falling for Cursor - Google Open-Sources Gemini-cli, the Ultimate Overachiever of Coding Assistants Is Here</title><link>https://chengxiaqiucao.github.io/en/post/102-gemini-cli/</link><pubDate>Thu, 26 Jun 2025 13:21:59 +0800</pubDate><guid>https://chengxiaqiucao.github.io/en/post/102-gemini-cli/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626.webp" alt="Featured image of post The Sky Is Falling for Cursor - Google Open-Sources Gemini-cli, the Ultimate Overachiever of Coding Assistants Is Here" />&lt;h2 id="preface">Preface
&lt;/h2>&lt;p>Yesterday (2025-6-25), Google made a big splash by open-sourcing a command-line-based AI coding Agent, &lt;code>Gemini-Cli&lt;/code>, which deeply integrates AI-assisted programming into the Terminal command-line interface that developers know best. It also directly incorporates Google&amp;rsquo;s latest &lt;code>Gemini 2.5 Pro&lt;/code> capabilities, free for developers to use (with a cap, but a generous one). In just one day, it shot up to 20K stars on GitHub, a clear sign of just how enthusiastic developers are about this tool!!&lt;/p>
&lt;p>Open-source project address: &lt;a class="link" href="https://github.com/google-gemini/gemini-cli" target="_blank" rel="noopener"
>https://github.com/google-gemini/gemini-cli&lt;/a>&lt;/p>
&lt;p>The star history, a terrifying vertical climb 😂&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-4_hu_9ba2719d9e18f57f.webp"
width="1024"
height="620"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-4_hu_ca39a5294cde2743.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-4_hu_9ba2719d9e18f57f.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="165"
data-flex-basis="396px"
>
&lt;/p>
&lt;p>Below we bring you an out-of-the-box hands-on experience!&lt;/p>
&lt;h2 id="installation">Installation
&lt;/h2>&lt;p>Installing &lt;code>Gemini-Cli&lt;/code> is very convenient. It depends on &lt;code>node.js&lt;/code>; make sure Node.js 18 or above is installed on your machine, then simply run:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">npx https://github.com/google-gemini/gemini-cli
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Or install it with npm and then run &lt;code>gemini&lt;/code>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">npm install -g @google/gemini-cli
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">gemini
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>This brings you to the command-line startup screen:&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626_hu_901185c6c0de428e.webp"
width="1024"
height="569"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626_hu_adad402076698165.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626_hu_901185c6c0de428e.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="180"
data-flex-basis="432px"
>
&lt;/p>
&lt;p>Pick a coding theme you like, and you will then be prompted to authenticate; usually you can simply sign in with your Google account. Once authorization shows the following information, you can continue using it.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-1_hu_86837983014c8082.webp"
width="1024"
height="454"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-1_hu_89fd95b2ff82e500.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-1_hu_86837983014c8082.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="225"
data-flex-basis="540px"
>
&lt;/p>
&lt;p>After authorization, you have access to a number of large AI models by default, including Gemini 25 pro, and it &amp;ldquo;lavishly&amp;rdquo; provides &lt;strong>60 requests per minute and 1,000 per day&lt;/strong> of AI calls. Compared with many other large models that still impose limits by token count, this is genuinely generous! Compared with &lt;code>Cursor&lt;/code>&amp;rsquo;s paid tier, which caps usage at 500 requests per month, Cursor must be crying in the bathroom by now~~&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-2_hu_b11c4ab5019493ba.webp"
width="1024"
height="533"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-2_hu_b24c6619c8c4fc3e.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-2_hu_b11c4ab5019493ba.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="192"
data-flex-basis="461px"
>
&lt;/p>
&lt;h2 id="hands-on-results">Hands-on Results
&lt;/h2>&lt;p>Without further ado, as a testing professional, I first asked it to help build an AI-based test case generation tool.&lt;/p>
&lt;p>The instruction I gave is as follows&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span class="line">&lt;span class="cl">&lt;span class="n">Write&lt;/span> &lt;span class="n">a&lt;/span> &lt;span class="n">web&lt;/span> &lt;span class="n">program&lt;/span> &lt;span class="n">that&lt;/span> &lt;span class="n">supports&lt;/span> &lt;span class="n">uploading&lt;/span> &lt;span class="n">a&lt;/span> &lt;span class="n">requirements&lt;/span> &lt;span class="n">document&lt;/span> &lt;span class="ow">and&lt;/span> &lt;span class="n">calls&lt;/span> &lt;span class="n">AI&lt;/span> &lt;span class="n">capabilities&lt;/span> &lt;span class="n">to&lt;/span> &lt;span class="nb">convert&lt;/span> &lt;span class="n">it&lt;/span> &lt;span class="n">into&lt;/span> &lt;span class="n">test&lt;/span> &lt;span class="n">cases&lt;/span>&lt;span class="o">.&lt;/span> &lt;span class="n">The&lt;/span> &lt;span class="n">cases&lt;/span> &lt;span class="n">are&lt;/span> &lt;span class="n">displayed&lt;/span> &lt;span class="n">on&lt;/span> &lt;span class="n">the&lt;/span> &lt;span class="n">page&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">table&lt;/span> &lt;span class="n">form&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">with&lt;/span> &lt;span class="n">fields&lt;/span> &lt;span class="n">including&lt;/span> &lt;span class="n">Case&lt;/span> &lt;span class="n">ID&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Case&lt;/span> &lt;span class="n">Name&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Description&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Test&lt;/span> &lt;span class="n">Steps&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">Priority&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Pass&lt;/span> &lt;span class="n">Criteria&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Associated&lt;/span> &lt;span class="n">Requirement&lt;/span> &lt;span class="n">ID&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">optional&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">etc&lt;/span>&lt;span class="o">.&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Very quickly, after a brief analysis, it produced an implementation plan.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-5_hu_f2097fe25442f51d.webp"
width="1024"
height="606"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-5_hu_22ed59e752fe3f16.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-5_hu_f2097fe25442f51d.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="168"
data-flex-basis="405px"
>
&lt;/p>
&lt;p>As the actual work began, it automatically created the relevant code files and guided me step by step to complete everything from data mocking to real AI capability integration.&lt;/p>
&lt;p>After more than half an hour of collaboration (mostly pasting error messages back to it whenever errors came up), we finally succeeded in building a basic AI test case generation tool.&lt;/p>
&lt;p>For example, I uploaded the requirements &lt;code>req-sprint0.md&lt;/code> from a testing practice site I had open-sourced earlier:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt"> 10
&lt;/span>&lt;span class="lnt"> 11
&lt;/span>&lt;span class="lnt"> 12
&lt;/span>&lt;span class="lnt"> 13
&lt;/span>&lt;span class="lnt"> 14
&lt;/span>&lt;span class="lnt"> 15
&lt;/span>&lt;span class="lnt"> 16
&lt;/span>&lt;span class="lnt"> 17
&lt;/span>&lt;span class="lnt"> 18
&lt;/span>&lt;span class="lnt"> 19
&lt;/span>&lt;span class="lnt"> 20
&lt;/span>&lt;span class="lnt"> 21
&lt;/span>&lt;span class="lnt"> 22
&lt;/span>&lt;span class="lnt"> 23
&lt;/span>&lt;span class="lnt"> 24
&lt;/span>&lt;span class="lnt"> 25
&lt;/span>&lt;span class="lnt"> 26
&lt;/span>&lt;span class="lnt"> 27
&lt;/span>&lt;span class="lnt"> 28
&lt;/span>&lt;span class="lnt"> 29
&lt;/span>&lt;span class="lnt"> 30
&lt;/span>&lt;span class="lnt"> 31
&lt;/span>&lt;span class="lnt"> 32
&lt;/span>&lt;span class="lnt"> 33
&lt;/span>&lt;span class="lnt"> 34
&lt;/span>&lt;span class="lnt"> 35
&lt;/span>&lt;span class="lnt"> 36
&lt;/span>&lt;span class="lnt"> 37
&lt;/span>&lt;span class="lnt"> 38
&lt;/span>&lt;span class="lnt"> 39
&lt;/span>&lt;span class="lnt"> 40
&lt;/span>&lt;span class="lnt"> 41
&lt;/span>&lt;span class="lnt"> 42
&lt;/span>&lt;span class="lnt"> 43
&lt;/span>&lt;span class="lnt"> 44
&lt;/span>&lt;span class="lnt"> 45
&lt;/span>&lt;span class="lnt"> 46
&lt;/span>&lt;span class="lnt"> 47
&lt;/span>&lt;span class="lnt"> 48
&lt;/span>&lt;span class="lnt"> 49
&lt;/span>&lt;span class="lnt"> 50
&lt;/span>&lt;span class="lnt"> 51
&lt;/span>&lt;span class="lnt"> 52
&lt;/span>&lt;span class="lnt"> 53
&lt;/span>&lt;span class="lnt"> 54
&lt;/span>&lt;span class="lnt"> 55
&lt;/span>&lt;span class="lnt"> 56
&lt;/span>&lt;span class="lnt"> 57
&lt;/span>&lt;span class="lnt"> 58
&lt;/span>&lt;span class="lnt"> 59
&lt;/span>&lt;span class="lnt"> 60
&lt;/span>&lt;span class="lnt"> 61
&lt;/span>&lt;span class="lnt"> 62
&lt;/span>&lt;span class="lnt"> 63
&lt;/span>&lt;span class="lnt"> 64
&lt;/span>&lt;span class="lnt"> 65
&lt;/span>&lt;span class="lnt"> 66
&lt;/span>&lt;span class="lnt"> 67
&lt;/span>&lt;span class="lnt"> 68
&lt;/span>&lt;span class="lnt"> 69
&lt;/span>&lt;span class="lnt"> 70
&lt;/span>&lt;span class="lnt"> 71
&lt;/span>&lt;span class="lnt"> 72
&lt;/span>&lt;span class="lnt"> 73
&lt;/span>&lt;span class="lnt"> 74
&lt;/span>&lt;span class="lnt"> 75
&lt;/span>&lt;span class="lnt"> 76
&lt;/span>&lt;span class="lnt"> 77
&lt;/span>&lt;span class="lnt"> 78
&lt;/span>&lt;span class="lnt"> 79
&lt;/span>&lt;span class="lnt"> 80
&lt;/span>&lt;span class="lnt"> 81
&lt;/span>&lt;span class="lnt"> 82
&lt;/span>&lt;span class="lnt"> 83
&lt;/span>&lt;span class="lnt"> 84
&lt;/span>&lt;span class="lnt"> 85
&lt;/span>&lt;span class="lnt"> 86
&lt;/span>&lt;span class="lnt"> 87
&lt;/span>&lt;span class="lnt"> 88
&lt;/span>&lt;span class="lnt"> 89
&lt;/span>&lt;span class="lnt"> 90
&lt;/span>&lt;span class="lnt"> 91
&lt;/span>&lt;span class="lnt"> 92
&lt;/span>&lt;span class="lnt"> 93
&lt;/span>&lt;span class="lnt"> 94
&lt;/span>&lt;span class="lnt"> 95
&lt;/span>&lt;span class="lnt"> 96
&lt;/span>&lt;span class="lnt"> 97
&lt;/span>&lt;span class="lnt"> 98
&lt;/span>&lt;span class="lnt"> 99
&lt;/span>&lt;span class="lnt">100
&lt;/span>&lt;span class="lnt">101
&lt;/span>&lt;span class="lnt">102
&lt;/span>&lt;span class="lnt">103
&lt;/span>&lt;span class="lnt">104
&lt;/span>&lt;span class="lnt">105
&lt;/span>&lt;span class="lnt">106
&lt;/span>&lt;span class="lnt">107
&lt;/span>&lt;span class="lnt">108
&lt;/span>&lt;span class="lnt">109
&lt;/span>&lt;span class="lnt">110
&lt;/span>&lt;span class="lnt">111
&lt;/span>&lt;span class="lnt">112
&lt;/span>&lt;span class="lnt">113
&lt;/span>&lt;span class="lnt">114
&lt;/span>&lt;span class="lnt">115
&lt;/span>&lt;span class="lnt">116
&lt;/span>&lt;span class="lnt">117
&lt;/span>&lt;span class="lnt">118
&lt;/span>&lt;span class="lnt">119
&lt;/span>&lt;span class="lnt">120
&lt;/span>&lt;span class="lnt">121
&lt;/span>&lt;span class="lnt">122
&lt;/span>&lt;span class="lnt">123
&lt;/span>&lt;span class="lnt">124
&lt;/span>&lt;span class="lnt">125
&lt;/span>&lt;span class="lnt">126
&lt;/span>&lt;span class="lnt">127
&lt;/span>&lt;span class="lnt">128
&lt;/span>&lt;span class="lnt">129
&lt;/span>&lt;span class="lnt">130
&lt;/span>&lt;span class="lnt">131
&lt;/span>&lt;span class="lnt">132
&lt;/span>&lt;span class="lnt">133
&lt;/span>&lt;span class="lnt">134
&lt;/span>&lt;span class="lnt">135
&lt;/span>&lt;span class="lnt">136
&lt;/span>&lt;span class="lnt">137
&lt;/span>&lt;span class="lnt">138
&lt;/span>&lt;span class="lnt">139
&lt;/span>&lt;span class="lnt">140
&lt;/span>&lt;span class="lnt">141
&lt;/span>&lt;span class="lnt">142
&lt;/span>&lt;span class="lnt">143
&lt;/span>&lt;span class="lnt">144
&lt;/span>&lt;span class="lnt">145
&lt;/span>&lt;span class="lnt">146
&lt;/span>&lt;span class="lnt">147
&lt;/span>&lt;span class="lnt">148
&lt;/span>&lt;span class="lnt">149
&lt;/span>&lt;span class="lnt">150
&lt;/span>&lt;span class="lnt">151
&lt;/span>&lt;span class="lnt">152
&lt;/span>&lt;span class="lnt">153
&lt;/span>&lt;span class="lnt">154
&lt;/span>&lt;span class="lnt">155
&lt;/span>&lt;span class="lnt">156
&lt;/span>&lt;span class="lnt">157
&lt;/span>&lt;span class="lnt">158
&lt;/span>&lt;span class="lnt">159
&lt;/span>&lt;span class="lnt">160
&lt;/span>&lt;span class="lnt">161
&lt;/span>&lt;span class="lnt">162
&lt;/span>&lt;span class="lnt">163
&lt;/span>&lt;span class="lnt">164
&lt;/span>&lt;span class="lnt">165
&lt;/span>&lt;span class="lnt">166
&lt;/span>&lt;span class="lnt">167
&lt;/span>&lt;span class="lnt">168
&lt;/span>&lt;span class="lnt">169
&lt;/span>&lt;span class="lnt">170
&lt;/span>&lt;span class="lnt">171
&lt;/span>&lt;span class="lnt">172
&lt;/span>&lt;span class="lnt">173
&lt;/span>&lt;span class="lnt">174
&lt;/span>&lt;span class="lnt">175
&lt;/span>&lt;span class="lnt">176
&lt;/span>&lt;span class="lnt">177
&lt;/span>&lt;span class="lnt">178
&lt;/span>&lt;span class="lnt">179
&lt;/span>&lt;span class="lnt">180
&lt;/span>&lt;span class="lnt">181
&lt;/span>&lt;span class="lnt">182
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-markdown" data-lang="markdown">&lt;span class="line">&lt;span class="cl">&lt;span class="gu">### Personal Book Management System - Iteration 1 Requirements Document
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Version**&lt;/span>: v1.0
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Goal**&lt;/span>: Implement basic create, read, update, and delete (CRUD) functions for personal books
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">#### **User Story 1 - Adding a Book**
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**As a**&lt;/span> book collector
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**I want to**&lt;/span> add a new book to my library
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**So that**&lt;/span> I can keep a record of the books I own
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Acceptance Criteria (Given-When-Then):**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">1.&lt;/span> &lt;span class="gs">**Successful Addition**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user is on the &amp;#34;Add Book&amp;#34; page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* the required fields (Book Title, Author) are filled in and Submit is clicked
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system saves the book, shows an &amp;#34;Added successfully&amp;#34; message, and navigates to the book list page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">2.&lt;/span> &lt;span class="gs">**Addition Failed (Missing Validation)**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user has not filled in &amp;#34;Book Title&amp;#34; or &amp;#34;Author&amp;#34;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* the Submit button is clicked
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system shows a red error message below the corresponding field
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">#### **User Story 2 - Viewing the Book List**
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**As a**&lt;/span> book collector
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**I want to**&lt;/span> view the list of all books
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**So that**&lt;/span> I can quickly browse my collection
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Acceptance Criteria:**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">1.&lt;/span> &lt;span class="gs">**Basic List Display**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* at least one book exists
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* the user visits the home page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* all books are shown in a table (including at least name, author, and reading status)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">2.&lt;/span> &lt;span class="gs">**Empty State Handling**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* there are no books
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* the user visits the home page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* a &amp;#34;No books yet, click to add&amp;#34; prompt and a navigation link are shown
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">#### **User Story 3 - Editing Book Information**
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**As a**&lt;/span> book collector
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**I want to**&lt;/span> edit book information
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**So that**&lt;/span> I can update a book&amp;#39;s status or notes
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Acceptance Criteria:**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">1.&lt;/span> &lt;span class="gs">**Successful Edit**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user enters a book&amp;#39;s &amp;#34;Edit&amp;#34; page from the list page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* a field is modified (such as updating the reading status to &amp;#34;Read&amp;#34;) and submitted
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system saves the changes, returns to the list page, and shows the updated data
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">2.&lt;/span> &lt;span class="gs">**Invalid Data Interception**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user enters letters in the price field
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* Submit is clicked
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system blocks submission and shows &amp;#34;Please enter a valid number&amp;#34;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">#### **User Story 4 - Deleting a Book**
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**As a**&lt;/span> book collector
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**I want to**&lt;/span> delete books I no longer need
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**So that**&lt;/span> my library stays tidy
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Acceptance Criteria:**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">1.&lt;/span> &lt;span class="gs">**Deletion Operation**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user is on the book list page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* a book&amp;#39;s &amp;#34;Delete&amp;#34; button is clicked
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system removes the book and the list refreshes in real time
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">#### **User Story 5 - Searching Books**
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**As a**&lt;/span> book collector
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**I want to**&lt;/span> search books by name or author
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**So that**&lt;/span> I can quickly locate the book I want
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gs">**Acceptance Criteria:**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">1.&lt;/span> &lt;span class="gs">**Basic Search**&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Given* the user types a keyword into the search box at the top of the list page
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *When* the &amp;#34;Search&amp;#34; button is clicked
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">-&lt;/span> *Then* the system shows books whose name or author matches (case-insensitive)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">### Field Definitions (Book Attributes)
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Field | Type | Required | Description | Example |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">|--------------|----------|------|-------------------------------|----------------------|
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Book Title | Text | ✓ | Book title (length ≤ 100 characters) | The Three-Body Problem |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Author | Text | ✓ | Author name (length ≤ 50 characters) | Liu Cixin |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Synopsis | Long Text | ✗ | Book description (length ≤ 500 characters) | A sci-fi masterpiece... |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Publication Date | Date | ✗ | YYYY-MM-DD format | 2008-01-01 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| List Price | Decimal | ✗ | Positive number (≥ 0) | 68.5 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| User Purchase Price | Decimal | ✗ | Positive number (≥ 0) | 52.0 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| User Notes | Long Text | ✗ | Reading notes (length ≤ 1000 characters) | A stunning view of the cosmos... |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Reading Status | Enum | ✗ | To Read / Read / Reading (default To Read) | To Read |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| In-Library Status | Enum | ✗ | In Library / Borrowed In / Lent Out / Archived (default In Library) | Lent Out |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Self-Rating | Integer | ✗ | 1-5 stars (default 3 stars) | 5 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">---
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">### Tech Stack
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="gu">&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Module | Technology Choice |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">|--------|-----------------------|
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Backend | Python + FastAPI |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Database | SQLite |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Frontend | HTML/CSS + Bootstrap |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| API Interaction| AJAX (Fetch API) |
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>The developed program calls DeepSeek deployed locally via Ollama, and then generates test cases! The interface is as follows:&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-3_hu_b9140ae6eededed1.webp"
width="1024"
height="618"
srcset="https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-3_hu_6c7fdeaaa31fb612.webp 480w, https://chengxiaqiucao.github.io/post/102-gemini-cli/Pasted-20250626-3_hu_b9140ae6eededed1.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="165"
data-flex-basis="397px"
>
&lt;/p>
&lt;p>It really is too good to pass up! Go recommend it to your friends~~&lt;/p>
&lt;hr>
&lt;p>Reply with &lt;code>进群&lt;/code> to join Qiucao&amp;rsquo;s tech discussion group, share techniques with friends, and exchange news~~
Reply with &lt;code>大纲&lt;/code> to view the detailed syllabus of Qiucao&amp;rsquo;s advanced systematic testing technology course 😉😉😉&lt;/p></description></item><item><title>GitHub Trending New Tools of the Month - 202506</title><link>https://chengxiaqiucao.github.io/en/post/099-temp/</link><pubDate>Thu, 05 Jun 2025 00:00:00 +0000</pubDate><guid>https://chengxiaqiucao.github.io/en/post/099-temp/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/099-temp/snap_20250604.webp" alt="Featured image of post GitHub Trending New Tools of the Month - 202506" />&lt;p>In the previous article, we introduced how we used Tencent&amp;rsquo;s intelligent programming assistant to develop a WeChat mini program that dynamically fetches the hottest open-source tools that emerged over the past month.&lt;/p>
&lt;p>Although the first version was put together quickly, it had quite a few bugs; after several hours of continuous tweaking, its functionality is finally more or less working.
&lt;img src="https://chengxiaqiucao.github.io/post/099-temp/snap_20250604_hu_7ec00792a7788bfe.webp"
width="1024"
height="2146"
srcset="https://chengxiaqiucao.github.io/post/099-temp/snap_20250604_hu_36d508d5d72a083e.webp 480w, https://chengxiaqiucao.github.io/post/099-temp/snap_20250604_hu_7ec00792a7788bfe.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="47"
data-flex-basis="114px"
>
&lt;/p>
&lt;p>The project&amp;rsquo;s README documentation:&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/099-temp/snap_20250604-1_hu_df86ceee1e9efab3.webp"
width="1024"
height="2175"
srcset="https://chengxiaqiucao.github.io/post/099-temp/snap_20250604-1_hu_f2e238ea79a81e70.webp 480w, https://chengxiaqiucao.github.io/post/099-temp/snap_20250604-1_hu_df86ceee1e9efab3.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="47"
data-flex-basis="112px"
>
&lt;/p>
&lt;p>Below are some of the most popular open-source projects from last month. Let us also take a look at which projects are attracting the most attention right now.&lt;/p>
&lt;h2 id="1-bytedancedeer-flow">1. &lt;strong>bytedance/deer-flow&lt;/strong>
&lt;/h2>&lt;p>ByteDance&amp;rsquo;s &lt;strong>deep research framework&lt;/strong> builds a Multi-Agent system on top of LangChain/LangGraph, supporting complex tasks such as automatically generating research reports, PPTs, and two-person podcasts (with the help of Volcano Engine TTS). Its innovations include:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Replay mode&lt;/strong>: Visualizes the multi-turn Agent collaboration process, making debugging and learning easier.&lt;/li>
&lt;li>&lt;strong>Human-AI collaboration&lt;/strong>: Users can modify AI-generated content in real time through natural language, dynamically adjusting the research direction and details.&lt;/li>
&lt;li>&lt;strong>Efficient architecture&lt;/strong>: Reduces token consumption through the &amp;ldquo;Handoffs&amp;rdquo; mechanism and optimizes the task execution flow.&lt;br>
&lt;strong>Use cases&lt;/strong>: Automated content generation and academic research assistant. Requires Python 3.12+ and Node.js 22+ for deployment.&lt;/li>
&lt;/ul>
&lt;p>In short, it turns AI into a small team that collaborates to complete complex tasks. And you can step in at any time to change its working direction in real time, so you don&amp;rsquo;t have to watch AI racing off in the wrong direction!&lt;/p>
&lt;blockquote>
&lt;p>GitHub: &lt;a class="link" href="https://github.com/bytedance/deer-flow" target="_blank" rel="noopener"
>https://github.com/bytedance/deer-flow&lt;/a>&lt;/p>&lt;/blockquote>
&lt;h2 id="2-agentcodeecursor-free-everyday">2. &lt;strong>agentcodee/cursor-free-everyday&lt;/strong>
&lt;/h2>&lt;p>A tool that cracks the &lt;strong>Cursor Pro limitations&lt;/strong>, solving the feature lockout after the official 14-day trial (such as the GPT-4 call count limit). Its features include:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Automatic account management&lt;/strong>: Get a temporary account with one click and bypass device-binding restrictions.&lt;/li>
&lt;li>&lt;strong>Cross-platform support&lt;/strong>: Compatible with Windows/macOS/Linux, with a graphical activation program.&lt;/li>
&lt;li>&lt;strong>Free and open source&lt;/strong>: Community-driven and continuously updated to adapt to new versions.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>In one sentence&lt;/strong>: Bypass the 14-day trial limit of the Cursor IDE and use GPT-4 to write code for free.&lt;/p>
&lt;blockquote>
&lt;p>GitHub: &lt;a class="link" href="https://github.com/agentcodee/cursor-free-everyday" target="_blank" rel="noopener"
>https://github.com/agentcodee/cursor-free-everyday&lt;/a>&lt;/p>&lt;/blockquote>
&lt;h2 id="3-ngxsonsmolvlm-realtime-webcam">3. &lt;strong>ngxson/smolvlm-realtime-webcam&lt;/strong>
&lt;/h2>&lt;p>A real-time webcam processing tool based on the &lt;strong>lightweight vision model SmolVLM&lt;/strong> (2 billion parameters), designed for edge computing. Its core advantages:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Low resource requirements&lt;/strong>: Preloaded model plus multi-threading optimization lets it run smoothly on low-spec devices.&lt;/li>
&lt;li>&lt;strong>Plug and play&lt;/strong>: Provides Python/Node.js scaffolding to quickly implement features like object recognition and crowd counting.&lt;/li>
&lt;li>&lt;strong>On-device adaptation&lt;/strong>: Improves the image token compression ratio by 9x and speeds up inference by 3-16x compared with similar models.&lt;/li>
&lt;/ul>
&lt;p>A small 2B-parameter model can run real-time image recognition on an ordinary computer.&lt;/p>
&lt;blockquote>
&lt;p>GitHub: &lt;a class="link" href="https://github.com/ngxson/smolvlm-realtime-webcam" target="_blank" rel="noopener"
>https://github.com/ngxson/smolvlm-realtime-webcam&lt;/a>&lt;/p>&lt;/blockquote>
&lt;h2 id="4-enescingozawesome-n8n-templates-ecosystem-project">4. &lt;strong>enescingoz/awesome-n8n-templates&lt;/strong> (Ecosystem Project)
&lt;/h2>&lt;p>&lt;strong>A template library for the n8n automation tool&lt;/strong>, providing ready-to-use workflow examples (such as syncing Dida List to Notion). Technical highlights:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Event-driven architecture&lt;/strong>: Flexibly integrates third-party APIs through HTTP nodes and Shell script nodes.&lt;/li>
&lt;li>&lt;strong>Low-cost self-hosting&lt;/strong>: Supports Docker deployment as an alternative to high-cost solutions like Zapier.&lt;/li>
&lt;li>&lt;strong>Extensibility&lt;/strong>: Can be combined with the OpenAI API to enhance automation logic (such as automatic email classification).&lt;/li>
&lt;/ul>
&lt;p>n8n is a mainstream solution for intelligent workflows, and this library essentially provides a large number of ready-made templates to copy from&lt;/p>
&lt;blockquote>
&lt;p>GitHub: &lt;a class="link" href="https://github.com/enescingoz/awesome-n8n-templates" target="_blank" rel="noopener"
>https://github.com/enescingoz/awesome-n8n-templates&lt;/a>&lt;/p>&lt;/blockquote>
&lt;h2 id="5-ag-ui-protocolag-ui">5. &lt;strong>ag-ui-protocol/ag-ui&lt;/strong>
&lt;/h2>&lt;p>&lt;strong>An interaction protocol between AI Agents and front ends&lt;/strong>, standardizing the communication flow of multi-agent collaboration. Its core features:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Event-driven&lt;/strong>: Defines 16 standard events (such as state sync and streaming messages), supporting SSE/WebSocket transport.&lt;/li>
&lt;li>&lt;strong>Framework compatibility&lt;/strong>: Seamlessly integrates with Agent frameworks such as LangGraph and CrewAI.&lt;/li>
&lt;li>&lt;strong>Secure routing&lt;/strong>: Ensures communication security through Secure Proxy middleware.&lt;/li>
&lt;/ul>
&lt;p>Through this library, the interaction standards between AI and front-end interfaces are standardized, achieving the advantages of breaking through long waits for AI results and allowing intervention at any time during task execution.&lt;/p>
&lt;blockquote>
&lt;p>GitHub: &lt;a class="link" href="https://github.com/ag-ui-protocol/ag-ui" target="_blank" rel="noopener"
>https://github.com/ag-ui-protocol/ag-ui&lt;/a>&lt;/p>&lt;/blockquote></description></item><item><title>Building a Personal Knowledge Base - Deploying DeepSeek with WSL + Ollama and Integrating It with VS Code</title><link>https://chengxiaqiucao.github.io/en/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/</link><pubDate>Thu, 15 May 2025 00:00:00 +0000</pubDate><guid>https://chengxiaqiucao.github.io/en/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-3.webp" alt="Featured image of post Building a Personal Knowledge Base - Deploying DeepSeek with WSL + Ollama and Integrating It with VS Code" />&lt;p>At present, large-model applications are in full swing. Major LLMs such as &lt;code>Deepseek&lt;/code> also provide online assistant services, and combined with &lt;code>mcp-server&lt;/code> they can further extend into local tool capabilities.&lt;/p>
&lt;p>But for materials strongly tied to local business and data, online large-model training datasets generally cannot cover them, especially some sensitive data or data with high security requirements, for which using online large models is impractical. Therefore, in both personal use and real work, deploying large models locally and adding a local knowledge base is also a rigid requirement.&lt;/p>
&lt;p>This article records and shares the process of building a local large model in WSL through Ollama and CherryStudio, and integrating the local model into VS Code&amp;rsquo;s AI assistant.&lt;/p>
&lt;h2 id="ollama-introduction">Ollama Introduction
&lt;/h2>&lt;p>Ollama is a simple, easy-to-use local large language model runtime framework developed in Go, designed specifically for conveniently deploying and running large language models (LLMs) on local machines. Ollama is short for &lt;strong>Omni-Layer Learning Language Acquisition Model (all-round learning language acceptance model)&lt;/strong>.&lt;/p>
&lt;h2 id="deepseek-local-models-and-runtime-configuration">Deepseek Local Models and Runtime Configuration
&lt;/h2>&lt;p>Deepseek currently comes in multiple versions based on the size of the parameter set used for local deployment, ranging from &lt;strong>1.5B&lt;/strong> to &lt;strong>671B&lt;/strong> and beyond. The larger the parameter set, the more intelligent the AI, but the higher the hardware requirements accordingly.&lt;/p>
&lt;p>Generally, the recommended hardware configurations for different Deepseek model versions are as follows:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Model&lt;/th>
&lt;th>CPU&lt;/th>
&lt;th>Memory&lt;/th>
&lt;th>Disk&lt;/th>
&lt;th>VRAM&lt;/th>
&lt;th>Use Case&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>DeepSeek-R1-1.5B&lt;/td>
&lt;td>4 cores&lt;/td>
&lt;td>8 GB+&lt;/td>
&lt;td>3 GB+&lt;/td>
&lt;td>Not required (GTX 1650 optional for CPU acceleration)&lt;/td>
&lt;td>Personal use, such as laptops and desktops&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-7B&lt;/td>
&lt;td>8 cores&lt;/td>
&lt;td>16 GB+&lt;/td>
&lt;td>8 GB+&lt;/td>
&lt;td>8 GB+ VRAM (e.g. RTX 3070/4060)&lt;/td>
&lt;td>Local development for small and medium enterprises&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-8B&lt;/td>
&lt;td>8 cores&lt;/td>
&lt;td>16 GB+&lt;/td>
&lt;td>8 GB+&lt;/td>
&lt;td>8 GB+ VRAM&lt;/td>
&lt;td>Local development for SMEs (lightweight tasks with improved accuracy)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-14B&lt;/td>
&lt;td>12 cores&lt;/td>
&lt;td>32 GB+&lt;/td>
&lt;td>15 GB+&lt;/td>
&lt;td>16 GB+ VRAM (e.g. RTX 4090 or A5000)&lt;/td>
&lt;td>Local development for SMEs (medium-weight tasks)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-32B&lt;/td>
&lt;td>16 cores&lt;/td>
&lt;td>64 GB+&lt;/td>
&lt;td>30 GB+&lt;/td>
&lt;td>24 GB+ VRAM (e.g. A100 40 GB or RTX 3090)&lt;/td>
&lt;td>Professional domain tasks, such as healthcare, research, and law&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-70B&lt;/td>
&lt;td>32 cores&lt;/td>
&lt;td>128 GB+&lt;/td>
&lt;td>70 GB+&lt;/td>
&lt;td>Multi-GPU parallel (e.g. 2x A100 80GB or 4x RTX 4090)&lt;/td>
&lt;td>Large enterprises or research institutions, professional domain tasks&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DeepSeek-R1-671B (Full Version)&lt;/td>
&lt;td>64 cores&lt;/td>
&lt;td>512 GB+&lt;/td>
&lt;td>300 GB+&lt;/td>
&lt;td>Multi-GPU parallel (e.g. 8x A100/H100)&lt;/td>
&lt;td>National-level research tasks&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>For individual users like us, we usually choose from 1.5B to 14B based on our own computer configuration. Of course, if you do not use local models frequently, my personal suggestion is to match one tier lower in both configuration and recommended model.&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="deploying-local-deepseek-in-wsl-with-ollama">Deploying Local Deepseek in WSL with Ollama
&lt;/h2>&lt;p>Because the author currently mainly wants to connect some local data to Deepseek and has no need to use local LLMs frequently, here I choose to deploy &lt;strong>DeepSeek-R1-14B&lt;/strong>. In addition, to avoid the LLM consuming large amounts of resources every time the computer starts up, I want to run the LLM under WSL on a Windows machine.&lt;/p>
&lt;h3 id="wsl-configuration">WSL Configuration
&lt;/h3>&lt;p>If WSL is not yet enabled on the current system, you can enable it first (the process will not be described in detail; in Windows 11, running WSL install [corresponding Linux distribution] is sufficient to install it).&lt;/p>
&lt;p>Check the &lt;strong>WSL&lt;/strong> status from the command line:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-batch" data-lang="batch">&lt;span class="line">&lt;span class="cl">C&lt;span class="p">:&lt;/span>&lt;span class="nl">\qiucao&lt;/span>&lt;span class="c1">&amp;gt;wsl --status&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Default Distribution: Ubuntu-24.04
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Default Version: 2
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>WSL&amp;rsquo;s default network mode is NAT. Here you can use the &lt;code>WSL Setting&lt;/code> program to modify the current configuration and change it to &lt;code>Mirrored&lt;/code> mode, sharing the host network.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-1_hu_c0aec88b4901f7c9.webp"
width="1024"
height="617"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-1_hu_c9a189f1a5c9e75c.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-1_hu_c0aec88b4901f7c9.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="165"
data-flex-basis="398px"
>
&lt;/p>
&lt;h3 id="installing-ollama">Installing Ollama
&lt;/h3>&lt;p>Go to the Ollama official website (&lt;a class="link" href="https://ollama.com/" target="_blank" rel="noopener"
>https://ollama.com/&lt;/a>) download page. Because we are deploying in WSL, choose the Linux installation.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419_hu_384914324e87dc5e.webp"
width="1024"
height="508"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419_hu_cd1b689f9bb6a91b.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419_hu_384914324e87dc5e.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="201"
data-flex-basis="483px"
>
&lt;/p>
&lt;p>Execute the following command and wait for the download and automatic installation to complete.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">curl -fsSL https://ollama.com/install.sh &lt;span class="p">|&lt;/span> sh
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Check the version after installation&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">~$ ollama --version
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ollama version is 0.6.5
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="deploying-deepseek">Deploying Deepseek
&lt;/h3>&lt;p>After Ollama is installed, you can select the corresponding large model to install from the list of large models provided by Ollama. The currently supported model list can be found at the following address on the official website: &lt;a class="link" href="https://ollama.com/library" target="_blank" rel="noopener"
>https://ollama.com/library&lt;/a>&lt;/p>
&lt;p>Execute the following command to download and run Deepseek.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">ollama run deepseek-r1:14b
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_deepseek_hu_658fb0f6c9a8fd17.webp"
width="1024"
height="209"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_deepseek_hu_72e5171ab0ef0d81.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_deepseek_hu_658fb0f6c9a8fd17.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="490"
data-flex-basis="1178px"
>
&lt;/p>
&lt;p>After a successful installation, you can ask a question to test whether Deepseek is providing service normally.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-2_hu_4bae2e8f62d8f2bf.webp"
width="1024"
height="115"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-2_hu_808f18f03c643d04.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-2_hu_4bae2e8f62d8f2bf.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="888"
data-flex-basis="2132px"
>
&lt;/p>
&lt;h3 id="adding-a-knowledge-base-analysis-model">Adding a Knowledge Base Analysis Model
&lt;/h3>&lt;p>At this point, Deepseek is actually deployed locally. But if we want to use local data and documents through Deepseek, we also need to deploy a &lt;strong>semantic vector model&lt;/strong> (Embedding Model) to convert local data into knowledge base data that the large model can analyze. Here we choose the &lt;strong>bge-m3&lt;/strong> model, a general-purpose vector model that supports multiple languages, long texts, and a variety of retrieval methods.&lt;/p>
&lt;p>Execute:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">ollama pull bge-m3
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_bge_hu_d88878aa76f5f5ad.webp"
width="1024"
height="178"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_bge_hu_a53ecd7c9e2fb6b6.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/ollama_bge_hu_d88878aa76f5f5ad.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="576"
data-flex-basis="1383px"
>
&lt;/p>
&lt;h2 id="managing-the-knowledge-base-and-providing-a-local-interface-with-cherry-studio">Managing the Knowledge Base and Providing a Local Interface with Cherry Studio
&lt;/h2>&lt;p>After installing Deepseek, although we can interact with Deepseek from the command line, it is still not friendly enough, and managing the local knowledge base is not convenient either. So here we can also install Cherry Studio, an open-source local AI assistant and knowledge base client. Just download the Windows version from the official website (&lt;a class="link" href="https://cherry-ai.com" target="_blank" rel="noopener"
>https://cherry-ai.com&lt;/a>) and install it.
&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-3_hu_5bc6c662290996b6.webp"
width="1024"
height="472"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-3_hu_dfe9fd0678b8fbb1.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/snap_20250419-3_hu_5bc6c662290996b6.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="217"
data-flex-basis="520px"
>
&lt;/p>
&lt;p>Open Cherry Studio and follow the steps below to add the Deepseek we just deployed through Ollama.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_hu_8f63401f090a0a07.webp"
width="1024"
height="629"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_hu_49a630e5e64cbdfe.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_hu_8f63401f090a0a07.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="162"
data-flex-basis="390px"
>
&lt;/p>
&lt;p>You will see the already installed model; add it in.
&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_model_hu_85f7b6ff325ab5da.webp"
width="1024"
height="694"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_model_hu_2086e4f3a5e5df0e.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/cherry_model_hu_85f7b6ff325ab5da.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="147"
data-flex-basis="353px"
>
Then you can use Cherry Studio&amp;rsquo;s knowledge base management to bring the local documents we want to add into the large model&amp;rsquo;s dataset. This includes methods such as adding files directly, specifying a directory directly, and collecting from websites, which is very convenient.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/add_knowledge_hu_b3fb53dfd217be9e.webp"
width="1024"
height="629"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/add_knowledge_hu_78d09a45838d4d91.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/add_knowledge_hu_b3fb53dfd217be9e.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="162"
data-flex-basis="390px"
>
&lt;/p>
&lt;h2 id="integrating-local-deepseek-into-vs-code">Integrating Local Deepseek into VS Code
&lt;/h2>&lt;p>Once we have a local LLM, if we want to use it in VS Code, we can use VS Code&amp;rsquo;s &lt;code>AI Toolkit&lt;/code> extension to add the local LLM as follows.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_1_hu_1ae13ebc1a2661dd.webp"
width="1024"
height="513"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_1_hu_230244637f7e1dfa.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_1_hu_1ae13ebc1a2661dd.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="199"
data-flex-basis="478px"
>
&lt;/p>
&lt;p>Test the capabilities of the local library in VS Code.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_2_hu_db60771e5812785.webp"
width="1024"
height="721"
srcset="https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_2_hu_7b2b7e3e9d687df6.webp 480w, https://chengxiaqiucao.github.io/post/093-deepseek%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2/vs_code_2_hu_db60771e5812785.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="142"
data-flex-basis="340px"
>
&lt;/p>
&lt;p>The above is our hands-on sharing of deploying local Deepseek.&lt;/p></description></item><item><title>How Can Test Developers Make Good Use of Cursor?</title><link>https://chengxiaqiucao.github.io/en/post/092-cursor%E7%9A%8412rules/</link><pubDate>Tue, 13 May 2025 00:00:00 +0000</pubDate><guid>https://chengxiaqiucao.github.io/en/post/092-cursor%E7%9A%8412rules/</guid><description>&lt;img src="https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor.webp" alt="Featured image of post How Can Test Developers Make Good Use of Cursor?" />&lt;h2 id="preface">Preface
&lt;/h2>&lt;p>Many people who are new to AI-assisted programming have probably heard of how powerful &lt;code>Cursor&lt;/code> is. For beginners, the free quota of the free version of Cursor is more than enough to let everyone experience its formidable capabilities.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_hu_781815639c7e7dae.webp"
width="1024"
height="464"
srcset="https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_hu_4f511162cee92d8f.webp 480w, https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_hu_781815639c7e7dae.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="220"
data-flex-basis="529px"
>
&lt;/p>
&lt;p>However, in real-world use — based on my own experience — if you simply treat it as a conversation partner and complete development tasks the way you would communicate with a person, you will waste a great deal of time correcting its misunderstandings, and there is a very high chance that after some conversation it will alter your original work beyond recognition, wasting a large amount of effort.&lt;/p>
&lt;h2 id="cursors-12-rules">Cursor&amp;rsquo;s 12 Rules
&lt;/h2>&lt;p>In fact, whether Cursor can work more effectively has a lot to do with how you use it. Cursor&amp;rsquo;s chief designer &lt;strong>Ryo Lu&lt;/strong> earlier shared on X 12 rules for making good use of Cursor:&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_12_rules_hu_2dfe3009b7e98df0.webp"
width="1024"
height="2035"
srcset="https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_12_rules_hu_8048ba0d67a4cf92.webp 480w, https://chengxiaqiucao.github.io/post/092-cursor%E7%9A%8412rules/cursor_12_rules_hu_2dfe3009b7e98df0.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="50"
data-flex-basis="120px"
>
&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Set clear project rules:&lt;/strong> Before starting a project, define 5-10 clear project rules so Cursor understands your code structure and constraints. For existing codebases, you can try the &lt;code>/generate rules&lt;/code> command to generate rules.&lt;/li>
&lt;li>&lt;strong>Be specific in prompts:&lt;/strong> Be very specific in your prompts, detailing the tech stack, expected behavior, and constraints, just like writing a mini spec.&lt;/li>
&lt;li>&lt;strong>Work file by file:&lt;/strong> Handle a small portion each time; generate, test, and review while staying focused.&lt;/li>
&lt;li>&lt;strong>Tests first:&lt;/strong> Write tests first, lock down the test cases, then generate code until all tests pass.&lt;/li>
&lt;li>&lt;strong>Strict review and correction:&lt;/strong> Always review the AI&amp;rsquo;s output and manually fix any errors, then tell Cursor to use those corrections as examples.&lt;/li>
&lt;li>&lt;strong>Limit the scope:&lt;/strong> Use commands such as &lt;code>@ file&lt;/code>, &lt;code>@ folders&lt;/code>, and &lt;code>@ git&lt;/code> to restrict Cursor&amp;rsquo;s attention to specific parts of the codebase.&lt;/li>
&lt;li>&lt;strong>Provide full context:&lt;/strong> Keep design documents and checklists in the &lt;code>.cursor/&lt;/code> directory so the Cursor agent can fully understand what needs to be done next.&lt;/li>
&lt;li>&lt;strong>Fix wrong code directly:&lt;/strong> If the generated code is wrong, just modify it manually. Cursor learns faster from edits than from explanations.&lt;/li>
&lt;li>&lt;strong>Leverage chat history:&lt;/strong> Use chat history to iterate on old prompts without starting from scratch.&lt;/li>
&lt;li>&lt;strong>Choose models wisely:&lt;/strong> Select models purposefully according to your needs. For example, Gemini suits the pursuit of precision, while Claude suits scenarios requiring broader knowledge.&lt;/li>
&lt;li>&lt;strong>Handle new or unfamiliar stacks:&lt;/strong> When working with a new or unfamiliar tech stack, paste in links to the relevant documentation. Have Cursor explain all errors and fixes line by line.&lt;/li>
&lt;li>&lt;strong>Optimize performance for large projects:&lt;/strong> For large projects, let it index overnight and limit the context scope to keep performance smooth.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Using Cursor well = fast, clean code.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Using it wrong = AI spaghetti you’ll be cleaning up all week.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Here’s how to actually use it right:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">1. Set 5-10 clear project rules upfront so Cursor knows your structure and constraints. Try /generate rules for existing codebases.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">2. Be specific in prompts. Spell out tech stack, behavior, and constraints like a mini spec.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">3. Work file by file; generate, test, and review in small, focused chunks.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">4. Write tests first, lock them, and generate code until all tests pass.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">5. Always review AI output and hard‑fix anything that breaks, then tell Cursor to use them as examples.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">6. Use @ file, @ folders, @ git to scope Cursor’s attention to the right parts of your codebase.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">7. Keep design docs and checklists in .cursor/ so the agent has full context on what to do next.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">8. If code is wrong, just write it yourself. Cursor learns faster from edits than explanations.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">9. Use chat history to iterate on old prompts without starting over.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">10. Choose models intentionally. Gemini for precision, Claude for breadth.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">11. In new or unfamiliar stacks, paste in link to documentation. Make Cursor explain all errors and fixes line by line.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">12.Let big projects index overnight and limit context scope to keep performance snappy.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Structure and control wins (for now)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Treat Cursor agent like a powerful junior — it can go far, fast, if you show it the way.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="how-can-test-developers-make-good-use-of-cursor">How Can Test Developers Make Good Use of Cursor?
&lt;/h2>&lt;p>As a test developer or test automation engineer, how can we make good use of Cursor when writing test scripts or tools to better improve our efficiency and output? In this article, referring to the 12 rules above, we summarize a set of relevant practical guidelines.&lt;/p>
&lt;h3 id="initialization-and-context-building---training-cursor-into-a-test-domain-expert">Initialization and Context Building - Training Cursor into a &amp;ldquo;Test Domain Expert&amp;rdquo;
&lt;/h3>&lt;p>At the start of a project or when joining it midway, the first priority is to let Cursor fully understand the standards and constraints of the current testing environment. High-quality context input is the prerequisite for high-quality code output.&lt;/p>
&lt;h4 id="define-project-testing-rules-and-conventions-rule-1">Define Project Testing Rules and Conventions (Rule 1)
&lt;/h4>&lt;p>In test automation projects, consistency in coding standards, framework selection, and design patterns is crucial. Based on &lt;code>Rule 1: Set clear project rules&lt;/code>, we can use the &lt;code>.cursor/rules.md&lt;/code> file to make this tacit team knowledge explicit and provide Cursor with a clear program of action. For existing projects, you can first use the &lt;code>/generate rules&lt;/code> command to initially extract the rules, and then add to them manually.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>: In a Python Flask-based web project, the testing stack is Pytest and Selenium. You can define the following rules in &lt;code>.cursor/rules.md&lt;/code>:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;span class="lnt">6
&lt;/span>&lt;span class="lnt">7
&lt;/span>&lt;span class="lnt">8
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-mysql" data-lang="mysql">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># .cursor/rules.md
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">cite_start&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="k">All&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">unit&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">files&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">named&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">test_&lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">py&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">UI&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">files&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">named&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">ui_test_&lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">py&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">cite_start&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="n">Test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">functions&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">must&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">start&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">with&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">test_&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">cite_start&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="k">Use&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Pytest&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">fixtures&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">environment&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">setup&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">teardown&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">cite_start&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="n">UI&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">tests&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">follow&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Page&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Object&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pattern&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">with&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">page&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">objects&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">encapsulated&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">cite_start&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="n">Avoid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">hard&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">coded&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">waits&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">prefer&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">WebDriver&lt;/span>&lt;span class="s1">&amp;#39;s explicit wait mechanism
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s1">- [cite_start]Test reports are generated uniformly with the Allure framework
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h4 id="provide-detailed-instructions-to-simulate-test-scenarios-rule-2">Provide Detailed Instructions to Simulate &amp;ldquo;Test Scenarios&amp;rdquo; (Rule 2)
&lt;/h4>&lt;p>The quality of your interaction with AI directly determines the quality of the output code. Instructions for test automation especially demand precision, because they must fully describe the feature under test, input data, expected behavior, and even exceptional paths.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>: Write integration tests for the user login feature.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Ineffective instruction&lt;/strong>: &lt;code>Write a login test.&lt;/code>&lt;/li>
&lt;li>&lt;strong>Well-structured instruction&lt;/strong>:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Please use the Pytest framework to write integration tests for the user login feature of a Flask application (endpoint POST /api/login, accepting username and password). The following three scenarios need to be covered:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">1. Successful login (using admin/password123);
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">2. Incorrect password (using admin/wrongpass);
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">3. User does not exist (using nonexistent/anypass). For the success scenario, assert that the HTTP status code is 200 and the response contains a non-empty token. For the failure scenarios, assert that the status code is 401.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="iterative-development-and-correction---achieving-continuous-integration-of-test-code">Iterative Development and Correction - Achieving &amp;ldquo;Continuous Integration of Test Code&amp;rdquo;
&lt;/h3>&lt;p>Breaking down complex testing tasks and developing through an agile loop of &amp;ldquo;generate - verify - correct&amp;rdquo; is an effective strategy for ensuring code quality and project progress.&lt;/p>
&lt;h4 id="small-steps-incremental-verification-rule-3">Small Steps, Incremental Verification (Rule 3)
&lt;/h4>&lt;p>You should resist the temptation to generate all the tests for an entire complex module in one go.&lt;/p>
&lt;p>The right approach is to break the task down into the smallest verifiable units and tackle them one by one.&lt;/p>
&lt;p>For example, when writing tests for a set of RESTful APIs, you should follow the logical order of &amp;ldquo;create user -&amp;gt; get user -&amp;gt; update user -&amp;gt; delete user&amp;rdquo;, generating and verifying the test code one at a time&lt;/p>
&lt;p>This approach helps locate problems quickly and avoids the accumulation of errors.&lt;/p>
&lt;h4 id="applying-test-driven-development-tdd-rule-4">Applying Test-Driven Development (TDD) (Rule 4)
&lt;/h4>&lt;p>Test-driven development is a classic model for ensuring code quality, and Cursor can be a powerful accelerator for it. Engineers first define the expected behavior of a function (that is, write the test cases), then have the AI generate implementation code that satisfies those tests.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>: Implement a discount calculation function &lt;code>calculate_discount(price, discount_rate)&lt;/code>.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Define the test&lt;/strong>: First ask Cursor: &lt;code>Generate a Pytest test case for the calculate_discount function. When price=100 and discount_rate=0.1, the expected return value is 90; when discount_rate is negative, a ValueError exception should be raised.&lt;/code>&lt;/li>
&lt;li>&lt;strong>Generate the implementation&lt;/strong>: After the test code &lt;code>test_calculate_discount.py&lt;/code> is generated, run it (it will fail at this point), then give Cursor a new instruction: &lt;code>Based on the test cases just generated, implement the calculate_discount function.&lt;/code>&lt;/li>
&lt;li>&lt;strong>Close the verification loop&lt;/strong>: Once Cursor generates the function implementation, run the tests again until they all pass.&lt;/li>
&lt;/ol>
&lt;h4 id="proactive-correction-and-mutual-learning-rule-5">Proactive Correction and Mutual Learning (Rule 5)
&lt;/h4>&lt;p>It is worth noting that AI-generated code is not always correct, and the engineer&amp;rsquo;s review and correction is the last line of defense. Fixing errors directly in the code is the most effective way to train Cursor, far better than explaining to it in natural language.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>:
For example, in a UI test generated by Cursor, it used an unstable and incorrect XPath locator &lt;code>//button[@id='submit']&lt;/code>. After the test run fails, we can directly change it manually to a correct locator, such as &lt;code>//input[@value='Login']&lt;/code>. After the correction, you can leave a note in the chat to reinforce its learning: &lt;code>&amp;quot;I have fixed the locator for the login button; the new locator is more accurate. Please refer to this pattern in subsequent tasks.&amp;quot;&lt;/code> .&lt;/p>
&lt;h3 id="fine-grained-management---achieving-intelligent-scheduling-of-test-resources">Fine-Grained Management - Achieving &amp;ldquo;Intelligent Scheduling of Test Resources&amp;rdquo;
&lt;/h3>&lt;p>In large projects, how to keep Cursor focused on the right information is key to determining its efficiency and relevance.&lt;/p>
&lt;h4 id="precisely-limit-the-context-scope-rule-6">Precisely Limit the Context Scope (Rule 6)
&lt;/h4>&lt;p>In a large codebase, testing tasks are often related only to a specific module or service. By using the &lt;code>@folders&lt;/code> or &lt;code>@file&lt;/code> commands, you can significantly narrow Cursor&amp;rsquo;s analysis scope and keep it focused on the necessary context.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>:
When writing API tests for the &lt;code>user_service&lt;/code> microservice, all relevant code resides in the &lt;code>services/user_service/&lt;/code> directory. In this case, you should first enter &lt;code>@folders services/user_service/&lt;/code> before asking, and then describe the specific testing requirements.&lt;/p>
&lt;h4 id="accumulate-project-knowledge-to-support-decisions-rule-7">Accumulate Project Knowledge to Support Decisions (Rule 7)
&lt;/h4>&lt;p>You can distill key information such as testing strategy, UI locator priorities, and data mocking conventions into documents stored in the &lt;code>.cursor/&lt;/code> directory. This is equivalent to providing Cursor with a &amp;ldquo;project-level knowledge base&amp;rdquo;.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>:
Create a &lt;code>.cursor/ui_locators_priority.md&lt;/code> file with the content: &amp;ldquo;UI element locator priority order: ID &amp;gt; Name &amp;gt; CSS Selector &amp;gt; XPath&amp;rdquo;. You can then reference it when asking: &lt;code>Please refer to the strategy in .cursor/ui_locators_priority.md and generate Selenium locator code for the 'Submit' button on the registration page.&lt;/code>.&lt;/p>
&lt;h3 id="problem-solving-and-efficiency-optimization---becoming-a-test-efficiency-accelerator">Problem Solving and Efficiency Optimization - Becoming a &amp;ldquo;Test Efficiency Accelerator&amp;rdquo;
&lt;/h3>&lt;p>Mastering advanced usage can further transform Cursor from an everyday assistant into a powerful tool for solving complex problems and accelerating learning.&lt;/p>
&lt;h4 id="choose-ai-models-wisely-rule-10">Choose AI Models Wisely (Rule 10)
&lt;/h4>&lt;p>Different AI models have different strengths. Choosing the right model based on the characteristics of the testing task can get you twice the result with half the effort.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Gemini (precision first)&lt;/strong>: suited to generating unit tests with strict syntax requirements, algorithm validation, or fine-grained test code using specific frameworks (such as React Testing Library).&lt;/li>
&lt;li>&lt;strong>Claude (breadth first)&lt;/strong>: better suited to scenarios that require understanding large amounts of context, such as generating comprehensive integration tests from API documentation, designing end-to-end (E2E) test scenarios, or exploring and suggesting test points in an unfamiliar codebase.&lt;/li>
&lt;/ul>
&lt;h4 id="use-documentation-to-quickly-master-new-technologies-rule-11">Use Documentation to Quickly Master New Technologies (Rule 11)
&lt;/h4>&lt;p>When a team introduces a new testing framework (such as Playwright), engineers can use Cursor to quickly get over the learning curve.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>:
Provide Cursor directly with a link to the official Playwright documentation and ask it to generate example code. When the generated code throws an error at runtime, you can paste the error message and ask: &amp;ldquo;This is an error that occurred while running a Playwright script; please explain the cause of the error line by line based on the official documentation and provide suggestions for fixing it.&amp;rdquo;.&lt;/p>
&lt;h4 id="limit-the-context-scope-rule-12">Limit the Context Scope (Rule 12)
&lt;/h4>&lt;p>When the project codebase is large, index it overnight and limit the context scope.&lt;/p>
&lt;p>&lt;strong>Practical example&lt;/strong>:&lt;/p>
&lt;p>When working on a large testing project, allow Cursor to handle indexing in the background and do the actual code generation the next day, so as to keep performance smooth.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Prioritize indexing core modules&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">@folder tests/unit
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Defer loading integration tests&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">@defer tests/integration
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>For our actual work, the essence of successfully using Cursor is a process of shifting from an &amp;ldquo;instruction giver&amp;rdquo; to an &amp;ldquo;intelligent collaborator&amp;rdquo; and a &amp;ldquo;knowledge guide&amp;rdquo;. The emphasis is on highlighting its systematic role in &lt;strong>intelligent collaboration, knowledge accumulation, and efficiency improvement&lt;/strong>.&lt;/p></description></item><item><title>The Definitive Guide to Prompt Engineering - The Art and Science of Empowering Software Testing</title><link>https://chengxiaqiucao.github.io/en/post/080-%E6%8F%90%E7%A4%BA%E8%AF%8D%E5%B7%A5%E7%A8%8B/</link><pubDate>Sun, 20 Apr 2025 00:00:00 +0000</pubDate><guid>https://chengxiaqiucao.github.io/en/post/080-%E6%8F%90%E7%A4%BA%E8%AF%8D%E5%B7%A5%E7%A8%8B/</guid><description>&lt;p>As the wave of artificial intelligence (AI) and large language models (LLMs) sweeps across the globe, the field of software testing is undergoing a profound transformation. Traditional testing methods are merging with cutting-edge AI technologies, and &lt;strong>Prompt Engineering&lt;/strong> is precisely the core skill for steering this transformation. This guide delves into the theory, practice, and advanced techniques of prompt engineering, and offers a series of concrete examples tailored to software testing roles, aiming to help test engineers and teams effectively leverage AI to improve testing efficiency, coverage, and depth.&lt;/p>
&lt;hr>
&lt;h3 id="chapter-1---getting-to-know-prompt-engineering-the-art-of-efficient-dialogue-with-ai">Chapter 1 - Getting to Know Prompt Engineering, the Art of Efficient Dialogue with AI
&lt;/h3>&lt;h4 id="11-what-is-prompt-engineering">1.1 What Is Prompt Engineering?
&lt;/h4>&lt;p>&lt;strong>Prompt engineering&lt;/strong> is a discipline devoted to designing, constructing, and optimizing input text (that is, &amp;ldquo;prompts&amp;rdquo;) so as to guide large language models (LLMs) such as GPT-4 and Claude to generate the high-quality, relevant outputs we expect. If an LLM is a powerful engine packed with vast knowledge, then the prompt is the steering wheel and accelerator that control that engine.&lt;/p>
&lt;p>For software testing, prompt engineering is far more than simply &amp;ldquo;asking AI a question&amp;rdquo;; it is a &lt;strong>strategic form of communication&lt;/strong>. With carefully designed prompts, testers can drive AI to complete a range of complex testing tasks, such as:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Generating test cases&lt;/strong>: Based on requirements documents, user stories, or code snippets, automatically create functional, boundary, exception, and other types of test cases.&lt;/li>
&lt;li>&lt;strong>Creating test data&lt;/strong>: Generate diverse test data that conforms to specific formats and business rules.&lt;/li>
&lt;li>&lt;strong>Writing automation scripts&lt;/strong>: Assist in writing, or directly generate, automation test scripts for frameworks such as Selenium, Cypress, and Playwright.&lt;/li>
&lt;li>&lt;strong>Analyzing test results&lt;/strong>: Summarize, classify, and perform root cause analysis on large volumes of test logs and reports.&lt;/li>
&lt;li>&lt;strong>Simulating user behavior&lt;/strong>: Create interaction scenarios that match specific user personas, for User Acceptance Testing (UAT) or exploratory testing.&lt;/li>
&lt;/ul>
&lt;p>Mastering prompt engineering means test engineers can hand tedious, repetitive work over to AI, freeing them to devote more energy to more creative and strategic testing activities.&lt;/p>
&lt;h4 id="12-core-principles---clarity-specificity-and-context">1.2 Core Principles - Clarity, Specificity, and Context
&lt;/h4>&lt;p>Successful prompt engineering follows one core principle: &lt;strong>Garbage In, Garbage Out (GIGO)&lt;/strong>. The quality of the information you give AI directly determines the quality of its output. Therefore, a good prompt typically has the following characteristics:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Clear &amp;amp; Specific&lt;/strong>: Avoid vague, general language. Tell AI directly what you want.&lt;/li>
&lt;li>&lt;strong>Contextual&lt;/strong>: Provide AI with ample background information, such as descriptions of the feature under test, relevant code, user personas, and business rules.&lt;/li>
&lt;li>&lt;strong>Role Assignment&lt;/strong>: Have AI play a specific role—for example, &amp;ldquo;You are a senior software testing expert&amp;rdquo;—which helps the model respond from a more professional perspective and tone.&lt;/li>
&lt;li>&lt;strong>Format Specification&lt;/strong>: Clearly define the output format you want, such as JSON, CSV, Markdown tables, or bulleted lists.&lt;/li>
&lt;li>&lt;strong>Iterative Refinement&lt;/strong>: Few prompts are perfect on the first try. Be prepared to make multiple attempts and adjustments based on AI&amp;rsquo;s feedback.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="chapter-2---a-glossary-of-prompt-engineering-terminology">Chapter 2 - A Glossary of Prompt Engineering Terminology
&lt;/h3>&lt;p>To better understand and apply prompt engineering, it is essential to be familiar with the following key terms.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;/th>
&lt;th>&lt;/th>
&lt;th>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Term&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Chinese Explanation&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Description&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Prompt&lt;/strong>&lt;/td>
&lt;td>Prompt&lt;/td>
&lt;td>The input text a user provides to an LLM to guide its response.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Zero-shot Prompting&lt;/strong>&lt;/td>
&lt;td>Zero-shot prompting&lt;/td>
&lt;td>Directly asking the LLM to complete a task without providing any examples. Suitable for tasks the model has already mastered.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Few-shot Prompting&lt;/strong>&lt;/td>
&lt;td>Few-shot prompting&lt;/td>
&lt;td>Providing a small number (usually 1-5) of examples in the prompt to show the LLM the expected input-output format and style.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Chain-of-Thought (CoT) Prompting&lt;/strong>&lt;/td>
&lt;td>Chain-of-thought prompting&lt;/td>
&lt;td>Guiding the LLM to reason step by step before giving the final answer, triggered by phrases such as &amp;ldquo;Let&amp;rsquo;s think step by step&amp;rdquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Role Prompting / Persona&lt;/strong>&lt;/td>
&lt;td>Role prompting / persona&lt;/td>
&lt;td>Assigning the LLM a specific role or identity (such as &amp;ldquo;senior security test engineer&amp;rdquo;) to influence the style, tone, and professional depth of its responses.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Context Window&lt;/strong>&lt;/td>
&lt;td>Context window&lt;/td>
&lt;td>The amount of information (measured in tokens) an LLM can remember and process in a single conversation. Information beyond this window is forgotten.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Token&lt;/strong>&lt;/td>
&lt;td>Token&lt;/td>
&lt;td>The basic unit of text an LLM processes, which may be a word, a character, or a word root.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Hallucination&lt;/strong>&lt;/td>
&lt;td>Hallucination&lt;/td>
&lt;td>The phenomenon where an LLM generates information that seems plausible but is actually false or inconsistent with the facts.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Temperature&lt;/strong>&lt;/td>
&lt;td>Temperature parameter&lt;/td>
&lt;td>A parameter controlling output randomness (usually between 0 and 1). A lower temperature makes output more deterministic and consistent, while a higher one makes it more creative and diverse.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Self-Consistency&lt;/strong>&lt;/td>
&lt;td>Self-consistency&lt;/td>
&lt;td>An advanced technique that generates multiple times (using a higher temperature) and &amp;ldquo;votes&amp;rdquo; on the results to select the most consistent answer, improving accuracy on complex reasoning tasks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>ReAct (Reasoning and Acting)&lt;/strong>&lt;/td>
&lt;td>Reasoning and acting&lt;/td>
&lt;td>An advanced framework that lets an LLM not only reason but also perform certain &amp;ldquo;actions&amp;rdquo; (such as calling external APIs or executing code) and fold the results of those actions into the next step of reasoning.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Delimiter&lt;/strong>&lt;/td>
&lt;td>Delimiter&lt;/td>
&lt;td>Using special characters or tags (such as ```, ###, &amp;lt;tag&amp;gt;) to clearly separate different parts of a prompt (such as instructions, context, and examples).&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h3 id="chapter-3---prompt-engineering-in-software-testing-practice">Chapter 3 - Prompt Engineering in Software Testing Practice
&lt;/h3>&lt;p>This chapter uses concrete cases to show how to apply prompt engineering at each stage of software testing.&lt;/p>
&lt;h4 id="31-case-1---generating-test-cases-from-user-stories-functional-testing">3.1 Case 1 - Generating Test Cases from User Stories (Functional Testing)
&lt;/h4>&lt;p>Suppose we have a &lt;strong>user story&lt;/strong> for an e-commerce platform: &amp;ldquo;As a logged-in user, I want to be able to add products to the shopping cart so that I can check out all at once later.&amp;rdquo;&lt;/p>
&lt;p>&lt;strong>A poor prompt 👎:&lt;/strong>&lt;/p>
&lt;blockquote>
&lt;p>Write test cases for the add-to-cart feature.&lt;/p>&lt;/blockquote>
&lt;p>This prompt is too vague and provides no context; AI may produce very generic, low-value test cases.&lt;/p>
&lt;p>&lt;strong>A good prompt (using Few-shot and role prompting) 👍:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;span class="lnt">21
&lt;/span>&lt;span class="lnt">22
&lt;/span>&lt;span class="lnt">23
&lt;/span>&lt;span class="lnt">24
&lt;/span>&lt;span class="lnt">25
&lt;/span>&lt;span class="lnt">26
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl"># Instructions
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">You are an experienced e-commerce software testing expert. Based on the following user story and business rules, generate a comprehensive set of functional test cases for the &amp;#34;add product to shopping cart&amp;#34; feature.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Role
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">- You are highly detail-oriented and able to consider all kinds of boundary cases and exception scenarios.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">- Your test cases should include: case ID, test title, preconditions, test steps, expected result, and case type (positive/negative).
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">- The output format should be a Markdown table.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Context - User Story
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&amp;#34;As a logged-in user, I want to be able to add products to the shopping cart so that I can check out all at once later.&amp;#34;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Context - Business Rules
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">1. The user must be logged in to add products.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">2. The cart can hold at most 50 different products.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">3. The maximum purchase quantity for a single product is 99.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">4. Products that are removed from sale or have zero stock cannot be added to the cart.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">5. After a successful add, the cart icon in the upper-right corner of the page should update the product count in real time.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Example (Few-shot)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Here is a reference example:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Case ID | Test Title | Preconditions | Test Steps | Expected Result | Case Type |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| :--- | :--- | :--- | :--- | :--- | :--- |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| TC-CART-001 | Verify a logged-in user can successfully add one product to the cart | User is logged in; cart is empty | 1. Browse to a product detail page with stock available.&amp;lt;br&amp;gt;2. Click the &amp;#34;Add to Cart&amp;#34; button. | 1. The page shows &amp;#34;Product successfully added to cart&amp;#34;.&amp;lt;br&amp;gt;2. The cart icon count updates to 1. | Positive |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Task
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Now, based on the above information, generate at least 10 detailed test cases for this feature, covering positive, negative, and boundary scenarios.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Possible AI output:&lt;/p>
&lt;p>AI will follow the instructions and, in the specified Markdown table format, generate a series of high-quality test cases, including verifying unlogged-in users, adding products up to the limit, adding out-of-stock products, and validating quantity input boundary values (0, 1, 99, 100).&lt;/p>
&lt;h4 id="32-case-2---generating-test-data-in-a-specific-format-data-driven-testing">3.2 Case 2 - Generating Test Data in a Specific Format (Data-Driven Testing)
&lt;/h4>&lt;p>When performing data-driven testing, we often need large amounts of data that conform to specific formats and rules.&lt;/p>
&lt;p>&lt;strong>Scenario&lt;/strong> - Testing a user registration form that has specific requirements for username, password, and email format.&lt;/p>
&lt;p>&lt;strong>A good prompt (using instructions and format specification) 👍:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;span class="lnt">21
&lt;/span>&lt;span class="lnt">22
&lt;/span>&lt;span class="lnt">23
&lt;/span>&lt;span class="lnt">24
&lt;/span>&lt;span class="lnt">25
&lt;/span>&lt;span class="lnt">26
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-mysql" data-lang="mysql">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Role
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">You&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">generator&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Task
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">Generate&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">20&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sets&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">user&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">registration&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">feature&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">output&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">them&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">CSV&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">format&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Data Requirements
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">The&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">should&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">contain&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">three&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">columns&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">username&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">password&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">email&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Column Definitions and Rules
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">username&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Must&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">be&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">6&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">15&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">characters&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">May&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">contain&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">only&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">lowercase&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">letters&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">digits&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Include&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">both&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">valid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">invalid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">usernames&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">too&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">short&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">too&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">long&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">or&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">containing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">special&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">characters&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">password&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Must&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">be&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">8&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">20&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">characters&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Must&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">contain&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">least&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">one&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">uppercase&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">letter&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">one&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">lowercase&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">letter&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">one&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">digit&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">one&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">special&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">character&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="o">!@&lt;/span>&lt;span class="c1">#$%^&amp;amp;*).
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Include&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">strong&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">passwords&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">comply&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">with&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">rules&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">weak&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">passwords&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">do&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">not&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">email&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Must&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">be&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">valid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">email&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">format&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Include&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">some&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">common&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">email&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">providers&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">such&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">gmail&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">outlook&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">yahoo&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">well&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">some&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">invalid&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">format&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">emails&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">missing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">@&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">symbol&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">or&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">having&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">an&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">invalid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">domain&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Output Format
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">Please&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">strictly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">follow&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">CSV&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">format&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">below&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">including&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">header&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">```&lt;/span>&lt;span class="n">csv&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="n">username&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">password&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">email&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;strong>Possible AI output:&lt;/strong>
AI will generate a text block in CSV format containing 20 rows of data that mix valid data with deliberately constructed invalid data, ready to be used directly in automated test scripts or manual testing.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;span class="lnt">6
&lt;/span>&lt;span class="lnt">7
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-csv" data-lang="csv">&lt;span class="line">&lt;span class="cl">&lt;span class="s">username&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">password&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">email&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">validuser1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">ValidPass1!&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">test.user1@gmail.com&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">short&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">WeakPass1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">test.user2@outlook.com&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">toolongusername123&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">AnotherGoodP@ss&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">test.user3@yahoo.com&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">invalid-user&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">Weak1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">invalid-email&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">user.123&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">StrongerP@ssword123&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">test.user4@gmail.com&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&lt;/span>&lt;span class="s">... (and so on)&lt;/span>&lt;span class="p">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h4 id="33-case-3---assisting-in-writing-automation-test-scripts-test-automation">3.3 Case 3 - Assisting in Writing Automation Test Scripts (Test Automation)
&lt;/h4>&lt;p>For test automation engineers, AI can become a powerful programming assistant.&lt;/p>
&lt;p>&lt;strong>Scenario&lt;/strong> - You need to write an automated test script using Selenium and Python for the &amp;ldquo;add to cart&amp;rdquo; feature mentioned earlier.&lt;/p>
&lt;p>&lt;strong>A good prompt (using chain-of-thought and code generation) 👍:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl"># Role
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">You are a senior test automation engineer, proficient in Python and Selenium WebDriver.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Task
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">For the test scenario &amp;#34;Verify a logged-in user can successfully add one product to the cart&amp;#34;, write a complete, executable Python Selenium automation test script.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Instructions and Thought Process (Chain-of-Thought)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Let&amp;#39;s complete this task step by step:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">1. **Set up the environment**: Import the necessary Selenium libraries, initialize the WebDriver (use the Chrome browser), and set an implicit wait.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">2. **Login operation**: First, write a function `login(username, password)` that navigates to the login page, enters the username and password, and then clicks the login button. Use ID selectors to locate elements.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">3. **Navigate to the product page**: After logging in, navigate to a specific product page. Assume the product page URL is &amp;#34;[http://example.com/product/123](http://example.com/product/123)&amp;#34;.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">4. **Perform the add operation**: Locate the &amp;#34;Add to Cart&amp;#34; button (assume its ID is `add-to-cart-button`) and click it.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">5. **Assertion verification**:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> * Add an explicit wait for the success message to appear (assume its CSS selector is `.success-message`).
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> * Get the text of that message and assert that its content is &amp;#34;Product successfully added to cart&amp;#34;.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> * Get the text of the count element next to the cart icon (assume its ID is `cart-item-count`) and assert that its value is &amp;#34;1&amp;#34;.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">6. **Cleanup**: Finally, close the browser with `driver.quit()`.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">7. **Code structure**: Wrap all operations in a main function or test class, and add comments to explain the key steps.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"># Please output the complete Python code.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Possible AI output:&lt;/p>
&lt;p>Based on this detailed, step-by-step instruction, AI will generate a well-structured, fully commented Python Selenium script containing all the necessary operations and assertions. This approach is far more efficient and accurate than a simple request such as &amp;ldquo;write me a Selenium script&amp;rdquo;.&lt;/p>
&lt;hr>
&lt;h3 id="chapter-4---advanced-prompt-engineering-techniques">Chapter 4 - Advanced Prompt Engineering Techniques
&lt;/h3>&lt;p>Once you have mastered the basics, you can apply more advanced techniques to tackle complex testing challenges.&lt;/p>
&lt;h4 id="41-deeper-applications-of-chain-of-thought-cot">4.1 Deeper Applications of Chain-of-Thought (CoT)
&lt;/h4>&lt;p>For tasks requiring complex logical reasoning, such as &lt;strong>Root Cause Analysis&lt;/strong>, deepening the application of CoT is crucial.&lt;/p>
&lt;p>&lt;strong>Scenario&lt;/strong> - An API test fails, returning a 500 error, and you need to analyze the possible causes.&lt;/p>
&lt;p>&lt;strong>Prompt:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;span class="lnt">21
&lt;/span>&lt;span class="lnt">22
&lt;/span>&lt;span class="lnt">23
&lt;/span>&lt;span class="lnt">24
&lt;/span>&lt;span class="lnt">25
&lt;/span>&lt;span class="lnt">26
&lt;/span>&lt;span class="lnt">27
&lt;/span>&lt;span class="lnt">28
&lt;/span>&lt;span class="lnt">29
&lt;/span>&lt;span class="lnt">30
&lt;/span>&lt;span class="lnt">31
&lt;/span>&lt;span class="lnt">32
&lt;/span>&lt;span class="lnt">33
&lt;/span>&lt;span class="lnt">34
&lt;/span>&lt;span class="lnt">35
&lt;/span>&lt;span class="lnt">36
&lt;/span>&lt;span class="lnt">37
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-mysql" data-lang="mysql">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Role
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">You&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">top&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">tier&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Site&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Reliability&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">Engineer&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">SRE&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">diagnosing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">an&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">API&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">failure&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Context
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">API&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">endpoint&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`/&lt;/span>&lt;span class="n">api&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">v1&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">users&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="err">{&lt;/span>&lt;span class="n">userId&lt;/span>&lt;span class="err">}&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">profile&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Problem&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">During&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">high&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">concurrency&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">load&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">testing&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">this&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">endpoint&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">occasionally&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">returns&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">an&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">HTTP&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">500&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Internal&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Server&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Error&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Log&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">snippet&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">```&lt;/span>&lt;span class="n">log&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">ERROR&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exhausted&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Could&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">not&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">get&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">from&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">...&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">Caused&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">by&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">java&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="k">sql&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">SQLTransientConnectionException&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">HikariPool&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">not&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">available&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">request&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">timed&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">out&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">after&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">30000&lt;/span>&lt;span class="n">ms&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Task
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="n">Please&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">use&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;chain-of-thought&amp;#34;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">method&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">to&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">analyze&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">potential&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">root&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">causes&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">this&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">problem&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">step&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">by&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">step&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">each&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">propose&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">concrete&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">investigation&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">steps&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">solution&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">recommendations&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Think&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">like&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">an&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">expert&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">analyze&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">from&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">multiple&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">layers&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">application&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">layer&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">layer&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">configuration&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">layer&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Thinking&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">begins&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Log&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">analysis&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">The&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">log&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">explicitly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">states&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;Connection pool exhausted&amp;#34;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exhausted&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">This&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">most&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">direct&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">clue&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Why&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exhausted&lt;/span>&lt;span class="o">?**&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">A&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Connections&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">not&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">released&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">Is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">there&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">logic&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">branch&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">application&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">code&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">does&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">not&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">properly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">close&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nf">close&lt;/span>&lt;span class="p">()&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">after&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">querying&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="o">?&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">B&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">The&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">too&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">small&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">Is&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">maximumPoolSize&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">configuration&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">HikariCP&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kt">set&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">too&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">low&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">current&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">concurrent&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">load&lt;/span>&lt;span class="o">?&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">C&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">The&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">queries&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">themselves&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">too&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">slow&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">there&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">slow&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">queries&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">hold&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connections&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">long&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kt">time&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">rapidly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exhausting&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">under&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">high&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">concurrency&lt;/span>&lt;span class="o">?&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">D&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">A&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">performance&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">bottleneck&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Has&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">server&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">itself&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">hit&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">CPU&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">memory&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">or&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">I&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">O&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">bottleneck&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">causing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">queries&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">to&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">respond&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">slowly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">indirectly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exhausting&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="o">?&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">How&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">to&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">investigate&lt;/span>&lt;span class="o">?**&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="k">For&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">A&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Review&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">all&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">code&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">paths&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">handle&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`/&lt;/span>&lt;span class="n">api&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">v1&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">users&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="err">{&lt;/span>&lt;span class="n">userId&lt;/span>&lt;span class="err">}&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">profile&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">requests&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">especially&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exception&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">handling&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">blocks&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">to&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">ensure&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connections&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">properly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">closed&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">finally&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">blocks&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="k">For&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">B&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">Check&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">application&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">configuration&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">files&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">such&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">application&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">properties&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">or&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">yml&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">for&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">value&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">spring&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">datasource&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">hikari&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">maximum&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">size&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Monitor&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kt">real&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="kt">time&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connection&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pool&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">usage&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="k">For&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">C&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Enable&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">slow&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">query&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">log&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">analyze&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">whether&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">there&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">slow&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">query&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">records&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="kt">time&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">problem&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">occurred&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Run&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="k">EXPLAIN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">ANALYZE&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">on&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SQL&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">statements&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">involved&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">this&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">API&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="k">For&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Cause&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">D&lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">Check&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">database&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">server&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">monitoring&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">dashboard&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">CPU&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">usage&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">memory&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">disk&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">I&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="n">O&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">active&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">connections&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">4&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">**&lt;/span>&lt;span class="n">Solution&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">recommendations&lt;/span>&lt;span class="o">?**&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">...&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Output
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="n">Based&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">on&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">chain&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">thought&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">above&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">organize&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">it&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">into&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">formal&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">incident&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">analysis&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">report&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>This kind of CoT prompt not only guides AI to a conclusion but, more importantly, forces it to display a structured, logically clear analysis process—something extremely valuable for complex diagnostic tasks.&lt;/p>
&lt;h4 id="42-self-consistency-for-exploratory-testing">4.2 Self-Consistency for Exploratory Testing
&lt;/h4>&lt;p>In &lt;strong>exploratory testing&lt;/strong>, which demands creative and divergent thinking, you can leverage &lt;code>Self-Consistency&lt;/code> to generate a more diverse set of testing ideas.&lt;/p>
&lt;p>&lt;strong>Scenario&lt;/strong> - Designing exploratory testing ideas for a new &amp;ldquo;online document collaboration&amp;rdquo; feature.&lt;/p>
&lt;p>&lt;strong>Prompt:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-mysql" data-lang="mysql">&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Role
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="n">You&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">highly&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">creative&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">destructive&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">software&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">tester&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">skilled&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">finding&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">bugs&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">that&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">users&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">never&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">expect&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Task
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">For&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;real-time online document collaboration&amp;#34;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">feature&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">generate&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">5&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">different&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">creative&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">exploratory&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">testing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nf">ideas&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">charters&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">What&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">I&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">need&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">are&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">diverse&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">unconventional&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">ideas&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1"># Instructions
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">I&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">will&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">run&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">this&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">prompt&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">multiple&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">times&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Please&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">think&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">about&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">generate&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">5&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">testing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">ideas&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">focusing&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">on&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">concurrent&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">operations&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">network&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">latency&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">conflicts&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">unconventional&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">user&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">interactions&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Please&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">output&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">in&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">form&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">of&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">bulleted&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">list&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">You&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">can&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">turn&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">up&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">the&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="s1">&amp;#39;s `temperature` parameter, for example to 0.8, and then run this prompt multiple times)
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;strong>Possible output for Run 1:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Simulate disconnect and reconnect&lt;/strong>: Two users edit simultaneously; one suddenly loses connectivity, makes a large number of changes, and then reconnects—observe how the data merges.&lt;/li>
&lt;li>&lt;strong>Frantic cursor movement&lt;/strong>: Multiple users furiously type, delete, and move cursors on the same line, testing rendering performance and synchronization accuracy.&lt;/li>
&lt;li>&amp;hellip;&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Possible output for Run 2:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Dynamic permission change&lt;/strong>: While one user is editing, an administrator suddenly downgrades their permission from &amp;ldquo;editable&amp;rdquo; to &amp;ldquo;read-only&amp;rdquo;—observe the behavior of their client.&lt;/li>
&lt;li>&lt;strong>Mixing rich text and plain text&lt;/strong>: One user pastes complex rich text (with formatting and images) while another simultaneously types plain text nearby—check whether the formatting gets scrambled.&lt;/li>
&lt;li>&amp;hellip;&lt;/li>
&lt;/ul>
&lt;p>By generating multiple times and synthesizing all the unique ideas, testers can obtain an exploratory testing checklist far richer and more comprehensive than what a single request would yield.&lt;/p>
&lt;hr>
&lt;h3 id="chapter-5---summary-and-outlook">Chapter 5 - Summary and Outlook
&lt;/h3>&lt;p>Prompt engineering is rapidly becoming one of the core competencies of software test engineers. It is not meant to replace testers&amp;rsquo; thinking, but to augment their capabilities, freeing them from repetitive labor so they can take on tasks that demand greater wisdom and insight.&lt;/p>
&lt;p>&lt;strong>The key to success lies in practice&lt;/strong>. Starting today, try applying the techniques introduced in this article to your daily work. Begin with small tasks—for example, having AI polish a defect report for you, or brainstorming some edge cases for the feature you are currently testing. As your understanding of the model&amp;rsquo;s &amp;ldquo;temperament&amp;rdquo; deepens, you will be able to build increasingly powerful prompts, truly achieving efficient collaboration with AI and lifting the efficiency and quality of software testing to an entirely new level.&lt;/p>
&lt;p>The future of software testing will be an era of deep integration between human wisdom and artificial intelligence—and prompt engineering is precisely the key that opens this door.&lt;/p>
&lt;hr></description></item><item><title>Translated - Eight Major Test Automation Trends for 2025</title><link>https://chengxiaqiucao.github.io/en/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/</link><pubDate>Wed, 09 Apr 2025 23:00:28 +0800</pubDate><guid>https://chengxiaqiucao.github.io/en/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/</guid><description>&lt;p>This article comes from &lt;strong>TestGuild&lt;/strong>&amp;rsquo;s analysis in January of this year&amp;rsquo;s testing development trends. So far, its judgments still appear objective and accurate, so I am sharing the translation with everyone.&lt;/p>
&lt;hr>
&lt;p>As we enter 2025, I believe the following &lt;strong>test automation trends&lt;/strong> will profoundly influence the future of software testing.&lt;/p>
&lt;h3 id="table-of-contents">Table of Contents
&lt;/h3>&lt;ul>
&lt;li>&lt;a class="link" href="#trend1" >1. AI Agent - The New Wave of Testing&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend2" >2. Shift-Right AI - Understanding Users&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend3" >3. QA for Everyone - Human-AI Collaboration&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend4" >4. The Evolving Tester Role - Adapting to the Future&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend5" >5. DevOps and SRE Integration - Continuous Quality&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend6" >6. End-to-End (E2E) Autonomous Quality Platforms&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend7" >7. Playwright - The Preferred Automation Tool&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#trend8" >8. Must-Know Programming Languages for Testers in 2025&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="#summary" >Conclusion - The Path to Test Automation Success in 2025&lt;/a>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="ai-agent---the-new-wave-of-testing">AI Agent - The New Wave of Testing &lt;a id="trend1">&lt;/a>
&lt;/h2>&lt;p>I believe 2025 will witness the continued expansion of AI-assisted testing.&lt;/p>
&lt;p>Why is that?&lt;/p>
&lt;p>The use of AI in testing is growing exponentially: surveys show that, as of 2024, 72.3% of teams are actively exploring or adopting AI-driven testing workflows, whereas just a few years ago this technology was still in the early-adoption stage. This trend marks the fastest technology adoption curve in the history of our TestGuild test automation survey.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409_hu_8cb6e933e68a792.webp"
width="1024"
height="389"
srcset="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409_hu_5aba6ba2aa501eec.webp 480w, https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409_hu_8cb6e933e68a792.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="263"
data-flex-basis="631px"
>
&lt;/p>
&lt;p>Building on the multimodal AI of 2024 (which processes multiple data types through specialized algorithms), the emerging trend is agentic AI.&lt;/p>
&lt;p>First, you may ask: what exactly is agentic AI?&lt;/p>
&lt;p>Such systems can operate autonomously, handling tasks that previously required human intervention. They can communicate, maintain long-term state, and make independent decisions based on interactions — essentially acting as a highly efficient team of testing assistants.&lt;/p>
&lt;p>Still not clear? Let us illustrate with an example.&lt;/p>
&lt;h3 id="example-of-an-agentic-ai-test-automation-workflow">Example of an Agentic AI Test Automation Workflow
&lt;/h3>&lt;p>Imagine a real-world scenario: agentic AI autonomously manages the full regression test suite for a large e-commerce platform.&lt;/p>
&lt;p>Rather than relying on pre-set scripts and fixed schedules, this agentic AI system will perform the following operations:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Priority determination&lt;/strong>: analyze recent code changes and feature releases, and rank regression tests according to the risk level of the modifications&lt;/li>
&lt;li>&lt;strong>Test selection and adaptation&lt;/strong>: dynamically select appropriate test cases, filtering a subset from the full suite based on risk assessment&lt;/li>
&lt;li>&lt;strong>Test execution and environment management&lt;/strong>: schedule test execution across multiple environments (browser/OS/device). If a test fails, automatically trigger diagnostic tests to collect detailed information, and even attempt to auto-fix simple issues&lt;/li>
&lt;li>&lt;strong>Result analysis and reporting&lt;/strong>: classify the severity of failures, identify patterns, and suggest fixes based on common error patterns&lt;/li>
&lt;li>&lt;strong>Feedback loop and continuous improvement&lt;/strong>: continuously self-optimize through accumulated experience&lt;/li>
&lt;/ul>
&lt;p>This vision is no fantasy. Survey data shows that teams are not only pursuing task automation but also relying on AI to make autonomous decisions — which is precisely the core of agentic AI:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Decision-making capability&lt;/strong>: AI tools are increasingly trusted to optimize test coverage and maintenance&lt;/li>
&lt;li>&lt;strong>Autonomy&lt;/strong>: interest in AI-driven pipelines and frameworks indicates that teams need solutions that minimize human intervention&lt;/li>
&lt;li>&lt;strong>Performance&lt;/strong>: the focus on AI-powered tools and frameworks signals a shift toward systems that learn and adapt dynamically&lt;/li>
&lt;/ul>
&lt;p>The pace of transformation has exceeded expectations: a webinar poll showed that 56% of teams are in the &amp;ldquo;research phase&amp;rdquo; of AI adoption, while 38% of enterprises see AI as a solution to the shortage of testing talent.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-1_hu_a45b71a4a0209c.webp"
width="1024"
height="953"
srcset="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-1_hu_eb3819713d31a4b4.webp 480w, https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-1_hu_a45b71a4a0209c.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="107"
data-flex-basis="257px"
>
&lt;/p>
&lt;p>The views of industry giants are consistent with this (the author extends them here to the field of test automation):&lt;/p>
&lt;p>Microsoft CEO Satya Nadella recently mentioned &lt;a class="link" href="https://www.cxtoday.com/data-analytics/microsoft-ceo-ai-agents-will-transform-saas-as-we-know-it/" target="_blank" rel="noopener"
>AI &amp;ldquo;agents&amp;rdquo; will transform SaaS&lt;/a>, achieving breakthroughs by handling complex tasks, learning continuously, and connecting seamlessly across systems. Experiments by Stanford researchers on &lt;a class="link" href="https://www.livescience.com/technology/artificial-intelligence/just-2-hours-is-all-it-takes-for-ai-agents-to-replicate-your-personality-with-85-percent-accuracy" target="_blank" rel="noopener"
>AI agents replicating human behavior&lt;/a> likewise confirm the potential of agentic AI to change the way we test.&lt;/p>
&lt;hr>
&lt;h2 id="shift-right-ai---understanding-users">Shift-Right AI - Understanding Users &lt;a id="trend2">&lt;/a>
&lt;/h2>&lt;p>Understanding real user behavior has become a core element of quality strategy in 2025. By analyzing user interactions in production environments, teams can discover patterns, predict problems, and ensure the software meets user expectations. The integration of AI enables teams to explore new paths for improving quality.&lt;/p>
&lt;p>Survey data shows a marked increase in attention to &lt;strong>predictive models and user behavior analysis&lt;/strong>, with teams focusing on using AI to uncover long-tail cases and refine their understanding of the user journey. &lt;a class="link" href="https://testguild.com/podcast/automation/a509-gojko/" target="_blank" rel="noopener"
>Gojko Adzic&lt;/a> envisions tools integrated directly into platforms, providing experience analytics and predictive models that proactively anticipate problems. This is especially valuable when managing massive volumes of user data (including long-tail cases), where AI plays a key role in identifying data patterns.&lt;/p>
&lt;p>This shift-right approach complements traditional shift-left methodologies by emphasizing quality assurance after deployment. Potential benefits include:&lt;/p>
&lt;ul>
&lt;li>Reduce user-reported defects through &lt;strong>proactive monitoring&lt;/strong>&lt;/li>
&lt;li>Improve feature adoption by &lt;strong>optimizing high-value user flows&lt;/strong>&lt;/li>
&lt;li>Improve test coverage through &lt;strong>data-driven decisions&lt;/strong> based on real usage patterns&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="qa-for-everyone---human-ai-collaboration">QA for Everyone - Human-AI Collaboration &lt;a id="trend3">&lt;/a>
&lt;/h2>&lt;p>With the adoption of agentic AI and end-to-end autonomous quality platforms (described in detail below), software testing will undergo dramatic changes in 2025. Low-code/no-code tools combined with AI allow testing to break through traditional barriers, enabling business analysts, developers, and even stakeholders without a technical background to participate in quality assurance. A webinar poll showed that &lt;strong>74%&lt;/strong> of participants considered themselves AI beginners, highlighting the need for tools that lower the barrier to entry.&lt;/p>
&lt;p>Intuitive low-code solutions reduce the learning curve and accelerate tool adoption by automating complex tasks such as test creation and defect detection. Surveys show that &lt;strong>32.3%&lt;/strong> of teams are actively experimenting with no-code testing solutions.&lt;/p>
&lt;p>At the same time, human oversight remains indispensable. As &lt;a class="link" href="https://testguild.com/podcast/automation/a522-tobias/" target="_blank" rel="noopener"
>Tobias Müller&lt;/a> put it: &amp;ldquo;The point is no longer whether to trust AI, but setting boundaries and trusting the rules you have set.&amp;rdquo; Teams that combine human experience with AI demonstrate better defect detection and faster testing cycles, proving the importance of human-AI collaboration.&lt;/p>
&lt;hr>
&lt;h2 id="the-evolving-tester-role---adapting-to-the-future">The Evolving Tester Role - Adapting to the Future &lt;a id="trend4">&lt;/a>
&lt;/h2>&lt;p>Testers are transforming into hybrid roles that blend traditional skills with AI, DevOps, and automation knowledge. Survey data confirms this shift:&lt;/p>
&lt;ul>
&lt;li>45% of teams emphasize the need for AI skills&lt;/li>
&lt;li>51.8% prioritize DevOps knowledge&lt;/li>
&lt;li>72.3% focus on automation expertise&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="devops-and-sre-integration---continuous-quality">DevOps and SRE Integration - Continuous Quality &lt;a id="trend5">&lt;/a>
&lt;/h2>&lt;p>The integration of testing with DevOps and Site Reliability Engineering (SRE) practices is the most significant test automation trend of 2025. As enterprises place growing emphasis on continuous delivery and operational resilience, testing is evolving into a proactive quality assurance activity that runs throughout the software lifecycle.&lt;/p>
&lt;p>Survey data reveals a significant shift: as of 2024, &lt;strong>51.8%&lt;/strong> of teams had adopted DevOps practices (only 16.9% in 2022). This growth confirms the deep integration of testing with DevOps/SRE workflows to safeguard software quality under high-speed delivery.&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-2_hu_5ccd3d9c8fd47040.webp"
width="1024"
height="391"
srcset="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-2_hu_c3a3eafcd12c84d5.webp 480w, https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-2_hu_5ccd3d9c8fd47040.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="262"
data-flex-basis="629px"
>
&lt;/p>
&lt;p>This integration goes beyond traditional QA, turning it into a continuous activity that improves the entire lifecycle and helping enterprises to:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Accelerate feedback loops&lt;/strong>: embed testing into CI/CD pipelines to detect issues immediately&lt;/li>
&lt;li>&lt;strong>Implement proactive quality assurance&lt;/strong>: integrate performance testing and monitoring into workflows to identify risks early&lt;/li>
&lt;li>&lt;strong>Foster team collaboration&lt;/strong>: shared quality ownership improves collaboration among QA, development, and operations teams&lt;/li>
&lt;/ul>
&lt;p>Survey data clearly supports this trend. From pipeline automation to performance monitoring, teams are adopting continuous quality practices aligned with operational excellence goals. If your organization has not yet integrated testing with DevOps/SRE, 2025 is the perfect time to make the transition.&lt;/p>
&lt;hr>
&lt;h2 id="end-to-end-e2e-autonomous-quality-platforms">End-to-End (E2E) Autonomous Quality Platforms &lt;a id="trend6">&lt;/a>
&lt;/h2>&lt;p>E2E platforms are becoming the core of testing strategy. These platforms integrate testing, usability, performance, accessibility, and security within a unified framework to address a broader range of quality concerns. By using AI to automate the testing lifecycle, teams report significant improvements in defect detection and test coverage.&lt;/p>
&lt;p>Survey data shows significant growth:&lt;/p>
&lt;ul>
&lt;li>Security testing grew from 8.2% in 2021 to 39.5% in 2024&lt;/li>
&lt;li>Performance testing adoption reached 41%&lt;/li>
&lt;li>API testing grew from 13.1% in 2021 to 46.2% in 2024&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409230826_hu_8a6ff6dbdecc0bf0.webp"
width="1024"
height="497"
srcset="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409230826_hu_20f7a83b64e34d53.webp 480w, https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409230826_hu_8a6ff6dbdecc0bf0.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="205"
data-flex-basis="494px"
>
These metrics reflect the growing reliance of enterprises on comprehensive quality platforms to manage all their testing needs.&lt;/p>
&lt;hr>
&lt;h2 id="playwright---the-preferred-automation-tool">Playwright - The Preferred Automation Tool &lt;a id="trend7">&lt;/a>
&lt;/h2>&lt;p>As I predicted last year, Playwright has become the tool of choice for many testers. According to the analysis in &lt;a class="link" href="https://testguild.com/playwright-cypress-ai/" target="_blank" rel="noopener"
>Playwright Surpasses Cypress (Future Outlook)&lt;/a>, this prediction has been validated.&lt;/p>
&lt;p>What about current progress? Thanks to outstanding versatility, reliability, and performance, Playwright continues to consolidate its leading position in 2025. The TestGuild 2024 survey and community feedback show its remarkable growth.&lt;/p>
&lt;p>Testing tool preferences have undergone a major shift (based on an analysis of 2018-2024 data):&lt;/p>
&lt;p>&lt;img src="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-3_hu_4c967a7769593ea2.webp"
width="1024"
height="360"
srcset="https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-3_hu_79c515b284889cc1.webp 480w, https://chengxiaqiucao.github.io/post/074-%E6%9C%80%E6%96%B0%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%B6%8B%E5%8A%BF2025/Pasted-20250409-3_hu_4c967a7769593ea2.webp 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="284"
data-flex-basis="682px"
>
&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Playwright&lt;/strong>: a 45.1% adoption rate makes it the fastest-growing tool, with advantages including cross-browser support, API testing capability, and efficient workflows&lt;/li>
&lt;li>&lt;strong>Selenium&lt;/strong>: once the market leader, its adoption rate has now dropped to 22.1% as teams pursue more efficient and stable solutions&lt;/li>
&lt;li>&lt;strong>Cypress&lt;/strong>: holding its ground in front-end testing, it maintains a stable user base of 14.4%&lt;/li>
&lt;/ul>
&lt;p>Playwright users commonly report:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Faster test execution&lt;/strong>: accelerating feedback loops and improving the development lifecycle&lt;/li>
&lt;li>&lt;strong>Lower test flakiness&lt;/strong>: producing more stable and reliable test results&lt;/li>
&lt;/ul>
&lt;p>Beyond its initial UI browser automation capabilities, Playwright has evolved to support advanced features such as &lt;strong>API testing&lt;/strong>, making it a comprehensive solution for modern testing needs.&lt;/p>
&lt;hr>
&lt;h2 id="must-know-programming-languages-for-testers-in-2025">Must-Know Programming Languages for Testers in 2025 &lt;a id="trend8">&lt;/a>
&lt;/h2>&lt;p>According to the &lt;a class="link" href="https://www.tiobe.com/tiobe-index/" target="_blank" rel="noopener"
>TIOBE Programming Community Index&lt;/a>, Python has topped the list for two consecutive years. This matches my expectation — thanks to its simplicity, strong library support, and dominance in AI/machine learning, Python remains the preferred language for testers in 2025. Whether you are just starting out in automation or are a seasoned testing expert, Python is the bridge connecting today&amp;rsquo;s challenges with the future possibilities of test automation.&lt;/p>
&lt;hr>
&lt;h2 id="conclusion---the-path-to-test-automation-success-in-2025">Conclusion - The Path to Test Automation Success in 2025 &lt;a id="summary">&lt;/a>
&lt;/h2>&lt;p>2025 will be a pivotal turning point for software testing, offering unprecedented opportunities for those who embrace change. The convergence of AI maturity, team collaboration, and tool evolution marks the dawn of a new era in quality assurance.&lt;/p>
&lt;p>Success requires not only paying attention to trends but also taking action:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Embrace agentic AI&lt;/strong>: explore how autonomous AI agents can optimize workflows and reduce human intervention&lt;/li>
&lt;li>&lt;strong>Adopt shift-right testing practices&lt;/strong>: balance traditional shift-left approaches with post-deployment monitoring to ensure the software meets real user expectations&lt;/li>
&lt;li>&lt;strong>Invest in skills development&lt;/strong>: equip your team with AI, automation, and DevOps knowledge to stay competitive&lt;/li>
&lt;li>&lt;strong>Integrate testing with DevOps/SRE&lt;/strong>: break down silos and embed quality assurance into every stage of delivery&lt;/li>
&lt;li>&lt;strong>Make good use of comprehensive tools&lt;/strong>: from Playwright to Python, choose tools that meet current needs and are future-ready&lt;/li>
&lt;/ul>
&lt;p>These trends signal a fundamental shift in how quality assurance is approached. As the boundaries between testing, development, and operations blur, the role of the modern tester is evolving into a strategic one. To gain a deeper grasp of these transformative trends, join the annual &lt;strong>Automation Guild conference&lt;/strong> and help shape the future of testing together with industry leaders.&lt;/p>
&lt;p>The road to innovation in 2025 is already laid out — are you ready to lead the change?&lt;/p>
&lt;hr></description></item></channel></rss>