Submit Search
Upload
Unit test
•
Download as PPTX, PDF
•
0 likes
•
770 views
Tran Duc
Follow
Unit test for iphone app development.
Read less
Read more
Mobile
Report
Share
Report
Share
1 of 43
Download now
Recommended
Unit testing best practices
Unit testing best practices
nickokiss
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
Derek Smith
Unit Testing And Mocking
Unit Testing And Mocking
Joe Wilson
Workshop unit test
Workshop unit test
Francesco Garavaglia
C++ Unit Test with Google Testing Framework
C++ Unit Test with Google Testing Framework
Humberto Marchezi
Unit tests & TDD
Unit tests & TDD
Dror Helper
An Introduction to Unit Testing
An Introduction to Unit Testing
Joe Tremblay
An introduction to Google test framework
An introduction to Google test framework
Abner Chih Yi Huang
Recommended
Unit testing best practices
Unit testing best practices
nickokiss
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
Derek Smith
Unit Testing And Mocking
Unit Testing And Mocking
Joe Wilson
Workshop unit test
Workshop unit test
Francesco Garavaglia
C++ Unit Test with Google Testing Framework
C++ Unit Test with Google Testing Framework
Humberto Marchezi
Unit tests & TDD
Unit tests & TDD
Dror Helper
An Introduction to Unit Testing
An Introduction to Unit Testing
Joe Tremblay
An introduction to Google test framework
An introduction to Google test framework
Abner Chih Yi Huang
Unit Testing
Unit Testing
Sergey Podolsky
Unit testing
Unit testing
Slideshare
Introduction to JUnit
Introduction to JUnit
Devvrat Shukla
Unit Testing
Unit Testing
Scott Leberknight
Understanding Unit Testing
Understanding Unit Testing
ikhwanhayat
Unit and integration Testing
Unit and integration Testing
David Berliner
Google test training
Google test training
Thierry Gayet
Unit testing with JUnit
Unit testing with JUnit
Pokpitch Patcharadamrongkul
Mocking in Java with Mockito
Mocking in Java with Mockito
Richard Paul
TDD - Test Driven Development
TDD - Test Driven Development
Tung Nguyen Thanh
Angular Unit Testing
Angular Unit Testing
Shailendra Chauhan
Unit Testing with Jest
Unit Testing with Jest
Maayan Glikser
Unit Testing (C#)
Unit Testing (C#)
Prashant Cholachagudd
TestNG Session presented in PB
TestNG Session presented in PB
Abhishek Yadav
Unit Testing in Angular
Unit Testing in Angular
Knoldus Inc.
UNIT TESTING
UNIT TESTING
Marius Crisan
JUnit Presentation
JUnit Presentation
priya_trivedi
testng
testng
harithakannan
An introduction to unit testing
An introduction to unit testing
Adam Stephensen
Unit Tests And Automated Testing
Unit Tests And Automated Testing
Lee Englestone
Introduction of unit test to management
Introduction of unit test to management
weili_at_slideshare
Unit test in a nutshell
Unit test in a nutshell
Roberto Bettazzoni
More Related Content
What's hot
Unit Testing
Unit Testing
Sergey Podolsky
Unit testing
Unit testing
Slideshare
Introduction to JUnit
Introduction to JUnit
Devvrat Shukla
Unit Testing
Unit Testing
Scott Leberknight
Understanding Unit Testing
Understanding Unit Testing
ikhwanhayat
Unit and integration Testing
Unit and integration Testing
David Berliner
Google test training
Google test training
Thierry Gayet
Unit testing with JUnit
Unit testing with JUnit
Pokpitch Patcharadamrongkul
Mocking in Java with Mockito
Mocking in Java with Mockito
Richard Paul
TDD - Test Driven Development
TDD - Test Driven Development
Tung Nguyen Thanh
Angular Unit Testing
Angular Unit Testing
Shailendra Chauhan
Unit Testing with Jest
Unit Testing with Jest
Maayan Glikser
Unit Testing (C#)
Unit Testing (C#)
Prashant Cholachagudd
TestNG Session presented in PB
TestNG Session presented in PB
Abhishek Yadav
Unit Testing in Angular
Unit Testing in Angular
Knoldus Inc.
UNIT TESTING
UNIT TESTING
Marius Crisan
JUnit Presentation
JUnit Presentation
priya_trivedi
testng
testng
harithakannan
An introduction to unit testing
An introduction to unit testing
Adam Stephensen
Unit Tests And Automated Testing
Unit Tests And Automated Testing
Lee Englestone
What's hot
(20)
Unit Testing
Unit Testing
Unit testing
Unit testing
Introduction to JUnit
Introduction to JUnit
Unit Testing
Unit Testing
Understanding Unit Testing
Understanding Unit Testing
Unit and integration Testing
Unit and integration Testing
Google test training
Google test training
Unit testing with JUnit
Unit testing with JUnit
Mocking in Java with Mockito
Mocking in Java with Mockito
TDD - Test Driven Development
TDD - Test Driven Development
Angular Unit Testing
Angular Unit Testing
Unit Testing with Jest
Unit Testing with Jest
Unit Testing (C#)
Unit Testing (C#)
TestNG Session presented in PB
TestNG Session presented in PB
Unit Testing in Angular
Unit Testing in Angular
UNIT TESTING
UNIT TESTING
JUnit Presentation
JUnit Presentation
testng
testng
An introduction to unit testing
An introduction to unit testing
Unit Tests And Automated Testing
Unit Tests And Automated Testing
Viewers also liked
Introduction of unit test to management
Introduction of unit test to management
weili_at_slideshare
Unit test in a nutshell
Unit test in a nutshell
Roberto Bettazzoni
TDD Dojo - Test Driven Development Coding Dojo
TDD Dojo - Test Driven Development Coding Dojo
Roberto Bettazzoni
Tdd & unit test
Tdd & unit test
GomathiNayagam S
Why Johnny Can't Unit Test His Legacy Code - And What You Can Do About It
Why Johnny Can't Unit Test His Legacy Code - And What You Can Do About It
Howard Deiner
Unbox yourself Into Testing
Unbox yourself Into Testing
vodqancr
Inverting The Testing Pyramid
Inverting The Testing Pyramid
Naresh Jain
Testing web application
Testing web application
jayashreesaravanan
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated Testing
Dimitri Ponomareff
Unit Test + Functional Programming = Love
Unit Test + Functional Programming = Love
Alvaro Videla
Web application testing with Selenium
Web application testing with Selenium
Kerry Buckley
Viewers also liked
(11)
Introduction of unit test to management
Introduction of unit test to management
Unit test in a nutshell
Unit test in a nutshell
TDD Dojo - Test Driven Development Coding Dojo
TDD Dojo - Test Driven Development Coding Dojo
Tdd & unit test
Tdd & unit test
Why Johnny Can't Unit Test His Legacy Code - And What You Can Do About It
Why Johnny Can't Unit Test His Legacy Code - And What You Can Do About It
Unbox yourself Into Testing
Unbox yourself Into Testing
Inverting The Testing Pyramid
Inverting The Testing Pyramid
Testing web application
Testing web application
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated Testing
Unit Test + Functional Programming = Love
Unit Test + Functional Programming = Love
Web application testing with Selenium
Web application testing with Selenium
Similar to Unit test
Test driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + Eclipse
UTC Fire & Security
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
Pepe
Why Unit Testingl
Why Unit Testingl
priya_trivedi
Why unit testingl
Why unit testingl
Priya Sharma
Why Unit Testingl
Why Unit Testingl
priya_trivedi
Unit Testing
Unit Testing
Anuj Arora
DSR Testing (Part 1)
DSR Testing (Part 1)
Steve Upton
Unit testing
Unit testing
Murugesan Nataraj
TDD Best Practices
TDD Best Practices
Attila Bertók
Testing 101
Testing 101
Noam Barkai
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
Alessandro Alpi
Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010
Ed Blankenship
Unit testing php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2
Tricode (part of Dept)
Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra Solutions
Quontra Solutions
SELJE_Database_Unit_Testing_Slides.pdf
SELJE_Database_Unit_Testing_Slides.pdf
Eric Selje
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Engineering Software Lab
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Comunidade NetPonto
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docx
keturahhazelhurst
TDD Workshop UTN 2012
TDD Workshop UTN 2012
Facundo Farias
utPLSQL: Unit Testing for Oracle PL/SQL
utPLSQL: Unit Testing for Oracle PL/SQL
Steven Feuerstein
Similar to Unit test
(20)
Test driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + Eclipse
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
Why Unit Testingl
Why Unit Testingl
Why unit testingl
Why unit testingl
Why Unit Testingl
Why Unit Testingl
Unit Testing
Unit Testing
DSR Testing (Part 1)
DSR Testing (Part 1)
Unit testing
Unit testing
TDD Best Practices
TDD Best Practices
Testing 101
Testing 101
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010
Unit testing php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2
Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra Solutions
SELJE_Database_Unit_Testing_Slides.pdf
SELJE_Database_Unit_Testing_Slides.pdf
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docx
TDD Workshop UTN 2012
TDD Workshop UTN 2012
utPLSQL: Unit Testing for Oracle PL/SQL
utPLSQL: Unit Testing for Oracle PL/SQL
Recently uploaded
Android Application Components with Implementation & Examples
Android Application Components with Implementation & Examples
ChandrakantDivate1
Leading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdf
CWS Technology
Mobile Application Development-Components and Layouts
Mobile Application Development-Components and Layouts
ChandrakantDivate1
Mobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s Tools
ChandrakantDivate1
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
nishacall1
Thane 💋 Call Girls 7738631006 💋 Call Girls in Thane Escort service book now. ...
Thane 💋 Call Girls 7738631006 💋 Call Girls in Thane Escort service book now. ...
Pooja Nehwal
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Cara Menggugurkan Kandungan 087776558899
9999266834 Call Girls In Noida Sector 52 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 52 (Delhi) Call Girl Service
nishacall1
Recently uploaded
(8)
Android Application Components with Implementation & Examples
Android Application Components with Implementation & Examples
Leading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdf
Mobile Application Development-Components and Layouts
Mobile Application Development-Components and Layouts
Mobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s Tools
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
Thane 💋 Call Girls 7738631006 💋 Call Girls in Thane Escort service book now. ...
Thane 💋 Call Girls 7738631006 💋 Call Girls in Thane Escort service book now. ...
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
9999266834 Call Girls In Noida Sector 52 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 52 (Delhi) Call Girl Service
Unit test
1.
Unit Test Đức Trần
2.
Unit Test Why Testing? Beginning
Unit Test Asynchronous Testing Performance Testing
3.
Why Testing? Find bug Clear
requirement Maintenance
4.
How? 1. Code 2. Add
Tests 3. Modify code for passing Tests Vs 1. Write Tests 2. Write code that pass Tests (Test-Driven Development)
5.
Beginning Unit Test
6.
Beginning Unit Test XCTest Test
Target Running Test Viewing Result
7.
XCTest Subclass XCTestCase Implement Test
method (Beginning with “test”) - (void)testMyMethodWorks Use Assertion (Macro) APIs to report failures - XCTAssertEqual(value, expectValue);
8.
Test Target Test Target: -
Test code - Resources Automatically included in new project Existing projects can add test targets
9.
Running Test Command+U Buttons in
source editor sidebar Buttons in Test Navigator
10.
Viewing Result Test Navigator
11.
Viewing Result Test Navigator Issue
Navigator
12.
Viewing Result Test Navigator Issue
Navigator Source Editor
13.
Viewing Result Test Navigator Issue
Navigator Source Editor Test Report
14.
Demo Adding Test Case
15.
Prepare “fake” data
16.
Create Model
17.
Create Service
18.
Write Test Case
19.
Implement Method Write code
to implement methods. Check if test cases are passed
20.
Asynchronous Testing
21.
Asynchronous Testing Create Expectation
Object: - XCTestExpectation *expectation = [self expectationWithDescription:@"Load Data"]; XCTestCase waits for Expectations to “Fullfill” - (void)waitForExpectationsWithTimeout:(NSTimeInterval)timeout handler:(nullable XCWaitCompletionHandler)handler; Handle when finishing asynchronous tasks: - [expectation fulfill];
22.
Demo Asynchronous Testing
23.
Add Asynchronous method
24.
Write Test case
25.
Implement method Write code
to implement methods. Check if test cases are passed
26.
Performance Testing
27.
Performance Testing How to
measure app performance? How to find which part causes performance problem? => Performance Testing.
28.
Measuring Performance Test code
block: - (void)measureBlock:(void (^)(void))block; Runs code block 10 time Measures time Results show in Xcode
29.
Performance Testing Setting Baselines Setting
Standard Deviation (STDDEV)
30.
Setting Baselines Baselines is
Average run time Detect Regressions: - Fail if (Baselines Average)>0.1 seconds and >10% Baselines are stored in sources Baselines are per-device configuration: - Device model, CPU, OS
31.
Setting Baseline No Baseline
Set Baseline
32.
Setting Baselines Normal case
(Baseline 1s) Error Case (Baseline 1s)
33.
Setting Baseline Baselines are
not enough
34.
Setting Standard Deviation
(STDDEV) Fail if (STDDEV)>0.1 seconds and >10%
35.
Standard Deviation Why STDDEV
too big? - File I/O, Network I/O? - Initialization? - Does it do the same work each time it's called? - System busy?
36.
Profiling Test Investigate functions’
performance
37.
Demo Performance Testing
38.
Performance Test
39.
Summary Why Testing? Beginning Unit
Test Asynchronous Testing Performance Testing
40.
Reference WWDC’s video: https://developer.apple.com/videos/play/wwdc2014/414/ Unit
Test Sample: https://developer.apple.com/library/mac/samplecode/UnitTests/History/History. html#//apple_ref/doc/uid/DTS40011742-RevisionHistory-DontLinkElementID_1 Udacity Course: https://www.udacity.com/course/viewer#!/c-cs212/l- 48688918/m-48276959 Demo Source: https://www.dropbox.com/s/mhjpllmxugyf02c/UnitTest.zip?dl=1
41.
QA? 1. How to
implement UITest? - Checkout apple’s Sample app: https://developer.apple.com/library/mac/samplecode/UnitTests/History/Hist ory.html#//apple_ref/doc/uid/DTS40011742-RevisionHistory- DontLinkElementID_1 - Checkout this WWDC session: https://developer.apple.com/videos/play/wwdc2015/406/
42.
Assignment Write a sample
app using UnitTest - Which test cases should we have to cover?
43.
Thanks for watching!
Download now