Submit Search
Upload
Unit test
•
0 likes
•
769 views
Tran Duc
Follow
Unit test for iphone app development.
Read less
Read more
Mobile
Report
Share
Report
Share
1 of 43
Download now
Download to read offline
Recommended
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
Derek Smith
Workshop unit test
Workshop unit test
Francesco Garavaglia
Unit Testing
Unit Testing
Sergey Podolsky
JUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
Onkar Deshpande
Unit Testing in Java
Unit Testing in Java
Ahmed M. Gomaa
An Introduction to Unit Testing
An Introduction to Unit Testing
Joe Tremblay
Unit tests & TDD
Unit tests & TDD
Dror Helper
Unit testing best practices
Unit testing best practices
nickokiss
Recommended
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
Derek Smith
Workshop unit test
Workshop unit test
Francesco Garavaglia
Unit Testing
Unit Testing
Sergey Podolsky
JUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
Onkar Deshpande
Unit Testing in Java
Unit Testing in Java
Ahmed M. Gomaa
An Introduction to Unit Testing
An Introduction to Unit Testing
Joe Tremblay
Unit tests & TDD
Unit tests & TDD
Dror Helper
Unit testing best practices
Unit testing best practices
nickokiss
Unit Testing And Mocking
Unit Testing And Mocking
Joe Wilson
Unit and integration Testing
Unit and integration Testing
David Berliner
Unit Testing (C#)
Unit Testing (C#)
Prashant Cholachagudd
JUnit Presentation
JUnit Presentation
priya_trivedi
JUNit Presentation
JUNit Presentation
Animesh Kumar
UNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
Beginners - Get Started With Unit Testing in .NET
Beginners - Get Started With Unit Testing in .NET
Baskar K
An introduction to unit testing
An introduction to unit testing
Adam Stephensen
C++ Unit Test with Google Testing Framework
C++ Unit Test with Google Testing Framework
Humberto Marchezi
Junit
Junit
Manav Prasad
Agile Testing and Test Automation
Agile Testing and Test Automation
Naveen Kumar Singh
Integration testing
Integration testing
queen jemila
Automation Testing using Selenium
Automation Testing using Selenium
Naresh Chintalcheru
Unit testing with java
Unit testing with java
Dinuka Malalanayake
Java Unit Testing
Java Unit Testing
Nayanda Haberty
Understanding Unit Testing
Understanding Unit Testing
ikhwanhayat
Testing
Testing
Sonali Chauhan
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
Edureka!
TestNG
TestNG
Prabhanshu Saraswat
TDD (Test Driven Design)
TDD (Test Driven Design)
nedirtv
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 And Mocking
Unit Testing And Mocking
Joe Wilson
Unit and integration Testing
Unit and integration Testing
David Berliner
Unit Testing (C#)
Unit Testing (C#)
Prashant Cholachagudd
JUnit Presentation
JUnit Presentation
priya_trivedi
JUNit Presentation
JUNit Presentation
Animesh Kumar
UNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
Beginners - Get Started With Unit Testing in .NET
Beginners - Get Started With Unit Testing in .NET
Baskar K
An introduction to unit testing
An introduction to unit testing
Adam Stephensen
C++ Unit Test with Google Testing Framework
C++ Unit Test with Google Testing Framework
Humberto Marchezi
Junit
Junit
Manav Prasad
Agile Testing and Test Automation
Agile Testing and Test Automation
Naveen Kumar Singh
Integration testing
Integration testing
queen jemila
Automation Testing using Selenium
Automation Testing using Selenium
Naresh Chintalcheru
Unit testing with java
Unit testing with java
Dinuka Malalanayake
Java Unit Testing
Java Unit Testing
Nayanda Haberty
Understanding Unit Testing
Understanding Unit Testing
ikhwanhayat
Testing
Testing
Sonali Chauhan
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
Edureka!
TestNG
TestNG
Prabhanshu Saraswat
TDD (Test Driven Design)
TDD (Test Driven Design)
nedirtv
What's hot
(20)
Unit Testing And Mocking
Unit Testing And Mocking
Unit and integration Testing
Unit and integration Testing
Unit Testing (C#)
Unit Testing (C#)
JUnit Presentation
JUnit Presentation
JUNit Presentation
JUNit Presentation
UNIT TESTING PPT
UNIT TESTING PPT
Beginners - Get Started With Unit Testing in .NET
Beginners - Get Started With Unit Testing in .NET
An introduction to unit testing
An introduction to unit testing
C++ Unit Test with Google Testing Framework
C++ Unit Test with Google Testing Framework
Junit
Junit
Agile Testing and Test Automation
Agile Testing and Test Automation
Integration testing
Integration testing
Automation Testing using Selenium
Automation Testing using Selenium
Unit testing with java
Unit testing with java
Java Unit Testing
Java Unit Testing
Understanding Unit Testing
Understanding Unit Testing
Testing
Testing
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
TestNG
TestNG
TDD (Test Driven Design)
TDD (Test Driven Design)
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
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