Content abstract

The iOS Testing Guide is a book that focuses on iOS testing. It focuses on the specific practice methods of each testing stage and connects the activities of each testing stage through continuous integration. All the testing practices in this book are not theoretical, but come from the author’s practical work of exploration and practice. There is some simplification on the test instance to get out of the complex business. The emphasis of this book is on the introduction of methods.

Readers may benefit from: test engineers with some technical background; Mobile test engineer with some experience; IOS Development Engineer; Test technology enthusiasts.

IOS Test Guide

directory

Chapter 1 software testing and iOS testing

There is a brief introduction to testing and iOS testing, as well as an introduction to the scope of the book. 1.1 What is Software Testing 1.1.1 When do Testing Activities start 1.1.2 Software Testing and Software Defects 1.1.3 Software Testing and Software Quality 1.2 Types of Software Testing 1.2.1 Unit Testing 1.2.2 Integration Testing 1.2.3 System Testing 1.3 Some aspects of the iOS platform 1.4 Need to do iOS test

Chapter 2 Preparing for iOS Environment

Introduces the basic tools for iOs development and testing. 2.1 Developing test equipment 2.2 Installing and setting up Xcode 2.3 iOS Developer book 2.4 Preparation of knowledge

Chapter 3 iOS unit Testing

This chapter first introduces the tools of unit testing, and then, through practice, introduces the use of unit testing based on MVC pattern in detail, including basic testing methods for Model, Controller and View. Some advanced assertion tools and Mock tools are used in practice. And finally, again for these tools

Detailed introduction. 3.1 Unit Test Tool 3.1.1 OCUnit 3.1.2GHUnit 3.1.3GTM 3.2 Unit Test Practices 3.2.1 Introduction to Practice Items 3.2.2 Unit Test of Model 3.2.3 Unit test of Controller and View 3.3 Extended tools for unit testing 3.3.1 OCHamcrest 3.3.2 OCMockito

Chapter 4 UI automation testing for iOS

When it comes to UI automation testing, the first place to start must be the official tools. This chapter introduces UI Automation, the official ios test Automation tool, in detail through practice. It not only has practical response and basic API explanation, but also adds the author’s summary of UI Automation and a brief introduction of third-party tools. I want to go deeper

Light out. .4.1 Running UI Automation 4.2 Introduction to Instruments 4.3 Getting Started UI Automation 4.3.1 Before UI Automation Script Development 4.3.2 UI Automation Script Editing 4.3.3 UI Automation Practice 4.3.4 UI Automation Script Recording 4.3.5 UI Automation running on real devices 4.4 In-depth understanding of UI Automation API 4.4.1 Logger Log Output 4.4.2 Element and ElementArray 4.4.3 Simulation of gesture actions 4.4.4 Delay processing 4.4.5 Some system-level manipulation of Target objects 4.5 Organization of Test cases 4.6 Introduction to third-party Testing tools 4.6.1 Use of TuneupJs 4.6.2 Use of YNM3K

Chapter 5: Automated testing of iOS Web applications

IOS apps are not only Native apps, but also Web apps. Based on the author’s work experience and summary, this chapter introduces the best practices of ios Web automation testing, and analyzes the most popular Appium and WebDriver from the composition structure. 5.1 iOS Web Automation Testing using Selenium 5.1.1 WebDriver Architecture 5.1.2 iPhone River Practice 5.1.3 iPhone River Defects 5.2 iOS Web Automation Testing using Appium 5.2.1 Appium Overview 5.2.2 Appium Practices 5.3 Common Appium Methods 5.3.1 Methods for locating Appium controls 5.3.2 Methods for operating Appium controls

Chapter 6 continuous integration of iOS

Continuous integration is an embodiment of modern software development. Automated tests without continuous integration are semi-automated tests. This chapter not only introduces the general continuous integration tools, but also introduces iOS continuous integration based on the practice of previous chapters. 6.1 Continuous Integration Tools 6.1.1 Jenkins and Hudson 6.1.2 Jenkins Installation and Use 6.1.3 Jenkins Plug-ins 6.2 iOS Continuous Integration Practices 6.2.1 continuous Integration of iOS Web Automation Tests 6.2.2 iOS Continuous integration of UI automation tests 6.2.3 Continuous integration of iOS unit tests

Chapter 7 iOS test strategy and test method

In addition to functional testing, iOS applications also need a lot of specific testing, such as compatibility testing. This chapter mainly introduces several general special test types and methods. 7.1 iOS Testing Policies 7.2 Compatibility 7.3 Network Traffic 7.4 Upgrade 7.5 Performance 7.6 Stability

Chapter 8 iOS testing framework practices

There are many third-party open source tools available for iOS automation testing. This chapter classifies tools from their technical characteristics and implementation principles, and selects the best of each kind of tools for practice introduction. Of course, you can write your own automation tools based on this chapter. 8.1 iOS Testing Framework Overview 8.2 UI Automation Extension Tools Practice 8.3 UI Automation Driver Testing Framework Introduction 8.3.1 UI Automation Driver Testing Framework Introduction 8.3.2 Appium Testing Practice 8.4 Non-UI Automation Test Framework Practice 8.5 BDD Test framework introduction 8.5.1 Frank Test practice 8.5.2 More BDD 8.6 Automation Test framework analysis

Chapter 9 Xcode 5 tests new features

In the fourth quarter of 2013, Apple exploded with the release of development tool Xcode 5, mobile operating system iOS 7, and Mac operating system OS X 10.9. The release of this suite of tools also brings with it the introduction of some new features in testing. This chapter provides a supplementary introduction to these new features. 9.1 Unit Testing in Xcode 5 9.1.1 XCTest Testing Framework 9.1.2 Convenient unit test management 9.1.3 XCTest Refactoring Tool 9.1.4 New commands and Continuous Integration 9.2 iOS Continuous Integration Tool OS X Server 9.2.1 Installation and configuration OF OS X Server 9.2.2 Bots setup and Continuous integration on the Web 9.2.3 Xcode 5 and OS X Server

conclusion

As a test engineer to own the core competitiveness, efforts to improve themselves is the key, and how to improve, you need to see their own personal learning habits.

Finally, I just want to say that learning will not disappoint anyone, “iOS test Guide” ~ if you support my article, you may wish to forward + comment + attention three links, thank you!