Testing Web APIs
Book information
Description
inside front cover Testing Web APIs Copyright dedication contents front matter foreword preface acknowledgments about this book Who should read this book How this book is organized: A road map Prerequisites About the code liveBook discussion forum about the author about the cover illustration Part 1 The value of web API testing 1 Why and how we test web APIs 1.1 What’s going on in your web APIs? 1.1.1 Complexity within web APIs 1.1.2 Complexity across many web APIs 1.2 How does testing help us? 1.2.1 Imagination 1.2.2 Implementation 1.2.3 The value of testing 1.2.4 Being strategic with API testing Summary 2 Beginning our testing journey 2.1 Introducing our product 2.1.1 Introducing our sandbox API 2.2 Familiarizing ourselves with restful-booker-platform 2.2.1 Researching the product 2.2.2 Researching beyond the product 2.3 Capturing our understanding 2.3.1 The power of models 2.3.2 Building our own models 2.4 Congratulations—you’re testing! Summary 3 Quality and risk 3.1 Defining quality 3.1.1 Quality characteristics 3.1.2 Getting to know our users 3.1.3 Setting quality goals for our strategy 3.2 Identify risks to quality 3.2.1 Learning to identify risk 3.2.2 Headline game 3.2.3 Oblique testing 3.2.4 RiskStorming 3.3 A strategy’s first steps 3.3.1 Picking the right approach for testing a risk Summary Part 2 Beginning our test strategy 4 Testing API designs 4.1 How do we test API designs? 4.1.1 Tools for questioning 4.1.2 Expanding your API design-testing techniques and tools 4.2 Using API documentation tools to test designs 4.2.1 Documenting APIs with Swagger/OpenAPI 3 4.2.2 Beyond documentation 4.3 Encouraging teams to test API designs 4.3.1 Getting buy-in and initiating opportunities to test API designs 4.3.2 Taking advantage of existing sessions 4.3.3 Establishing your own sessions 4.4 Testing API designs as part of a testing strategy Summary 5 Exploratory testing APIs 5.1 The value of exploratory testing 5.1.1 The testing cycle in exploratory testing 5.2 Planning to explore 5.2.1 Generating charters 5.2.2 Charters and exploratory testing sessions 5.2.3 Organizing our exploratory testing 5.3 Exploratory testing: A case study 5.3.1 Beginning the session 5.3.2 Knowing when something isn’t right 5.3.3 Coming up with ideas for testing 5.3.4 Using tools 5.3.5 Note-taking 5.3.6 Knowing when to stop 5.3.7 Running your own exploratory testing session 5.4 Sharing your discoveries 5.5 Exploratory testing as part of a strategy Summary 6 Automating web API tests 6.1 Getting value from automation 6.1.1 The illusion of automation 6.1.2 Automation as change detection 6.1.3 Letting risk be our guide 6.2 Setting up a Web API automation tool 6.2.1 Dependencies 6.2.2 Structuring our framework 6.3 Creating automated API checks 6.3.1 Automated check 1: A GET request 6.3.2 Automated check 2: A POST request 6.3.3 Automated check 3: Combining requests 6.3.4 Running your automated tests as integration tests 6.4 Utilizing automation in our strategy Summary 7 Establishing and implementing a testing strategy 7.1 Establishing a strategy for our context 7.1.1 Identifying what’s a priority 7.1.2 Different strategies for different contexts 7.2 Turning a testing strategy into a testing plan 7.2.1 Understanding your context’s testability 7.2.2 Organizing and documenting a plan 7.2.3 Executing and reflecting on a plan 7.2.4 Evolving our strategy Summary Part 3 Expanding our test strategy 8 Advanced web API automation 8.1 Acceptance test-driven development 8.1.1 Setting up an automated acceptance testing framework 8.1.2 Creating our failing automated check 8.1.3 Getting our automated check to pass 8.1.4 Beware of traps 8.2 Web API mocking 8.2.1 Getting set up 8.2.2 Building our mocked check 8.3 Running as part of a pipeline 8.3.1 Integrated with codebase 8.3.2 Separate to codebase Summary 9 Contract testing 9.1 What contract testing is and how can it help 9.2 Setting up a contract testing framework 9.2.1 Introducing Pact 9.3 Building a consumer contract test 9.3.1 Adding Pact to our class 9.3.2 Building the consumer check 9.3.3 Setting up and publishing to a Pact Broker 9.4 Building a provider contract test 9.4.1 Building the provider contract test 9.4.2 Testing out a change 9.5 Contract testing as part of a testing strategy Summary 10 Performance testing 10.1 Planning a performance test 10.1.1 Types of performance tests 10.1.2 Types of measurements for performance tests 10.1.3 Establishing performance testing goals and key performance indicators (KPIs) 10.1.4 Creating user flows 10.2 Implementing a performance test 10.2.1 Setting our performance testing tool 10.2.2 Building our performance test script 10.3 Executing and measuring a performance test 10.3.1 Preparing and executing our performance test 10.3.2 Analyzing results 10.4 Setting performance testing expectations Summary 11 Security testing 11.1 Working with threat models 11.1.1 Creating a model 11.1.2 Discovering threats with STRIDE 11.1.3 Creating threat trees 11.1.4 Mitigating threats 11.2 Applying a security mindset to our testing 11.2.1 Security testing in testing API design sessions 11.2.2 Exploratory security testing 11.2.3 Automation and security testing 11.3 Security testing as part of a strategy Summary 12 Testing in production 12.1 Planning out testing in production 12.1.1 What to track 12.1.2 Service-level objectives 12.1.3 Service-level agreements 12.1.4 Service-level indicators 12.1.5 What to save 12.2 Setting up testing in production 12.2.1 Setting up a Honeycomb account 12.2.2 Adding Honeycomb to APIs 12.2.3 Advanced querying 12.2.4 Building SLO triggers 12.3 Taking testing in production further 12.3.1 Testing with synthetic users 12.3.2 Testing hypotheses 12.4 Expanding your strategy by testing in production Summary Appendix A. Installing the sandbox API platform A.1 Setting up restful-booker-platform index inside back cover
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF