8 Mobile Application Testing And Deployment

Mobile Application Development · Unit 8

Mobile Application Testing and Deployment

Exam-focused notes for Mobile Application Testing and Deployment (Mobile Application Development, BIT406): what the TU syllabus asks and how it has actually been tested, with 1 solved past questions from this unit.

Mobile Application Testing and Deployment in short

An app must be tested on many devices and then released to users. The topic covers black box and white box testing, common approaches for mobile testing, and how apps are deployed.

Mobile Application Testing and Deployment: notes

Black box testing methods

Black box testing checks what the software does, without looking at its code. The tester gives inputs and compares the output with what is expected. It is also called functional testing.

Common techniques:

  • Equivalence partitioning: divide inputs into groups that should behave the same, and test one from each group.
  • Boundary value analysis: test values at and next to the limits. For an age field of 18 to 60, test 17, 18, 60 and 61.
  • Decision table testing: test every combination of conditions.
  • State transition testing: test movement between screens or states.
  • Use case testing: follow real user tasks.

Advantages: no code knowledge is needed, and it shows the user's view. Limits: it can miss hidden code faults and some paths may remain untested.

An Android UI test with Espresso is a black box style test. It finds a view, acts on it and checks the result:

onView(withId(R.id.save)).perform(click());
onView(withId(R.id.status)).check(matches(withText("Saved")));

What this unit covers

  • Black box testing methods
  • White box testing methods
  • Mobile application testing approaches
  • Application deployment strategies
  • Testing and deployment lifecycle

Black box testing methods

0 · 10 marks

Distinguish between black box testing and white box testing. Explain how mobile applications are developed, tested and deployed.[10]

Show solved answer

Model Answer: Black Box vs White Box Testing & Mobile App Development Lifecycle

Part 1: Distinction Between Black Box and White Box Testing

Black Box Testing

Black box testing is a testing methodology where the tester has no knowledge of the internal code structure, implementation details, or logic of the application. The tester treats the software as a "black box" and focuses on:

  • Input-Output behavior: Testing what the application does with given inputs
  • Functional requirements: Verifying that features work as specified
  • User perspective: Testing from an end-user viewpoint
  • Test cases based on: Requirements, specifications, and use cases

Advantages:

  • Simulates real user experience
  • Finds bugs that users would encounter
  • No need for programming knowledge

Disadvantages:

  • Cannot test internal logic thoroughly
  • May miss edge cases in code
  • Lower code coverage

White Box Testing

White box testing is a testing methodology where the tester has complete knowledge of the internal code structure, design, and implementation. The tester can examine and test:

  • Code paths: All possible execution paths through the code
  • Internal logic: Conditional statements, loops, and algorithms
  • Data flow: How data moves through the system
  • Test cases based on: Code structure and logic

Advantages:

  • Comprehensive code coverage
  • Finds logic errors and bugs in code
  • Tests all execution paths
  • Identifies dead code

Disadvantages:

  • Requires programming expertise
  • Time-consuming
  • May miss user-level issues
AspectBlack BoxWhite Box
KnowledgeNo internal knowledgeComplete code knowledge
FocusFunctionalityCode structure
Tester TypeQA/Non-technicalDeveloper/Technical
CoverageFunctional coverageCode coverage

Part 2: Mobile Application Development, Testing, and Deployment

1. Mobile Application Development

Development Phases:

a) Planning & Requirements

  • Define app objectives and target audience
  • Gather functional and non-functional requirements
  • Choose platform(s): iOS, Android, or cross-platform

b) Design

  • UI/UX design and wireframing
  • Database schema design
  • Architecture design (MVC, MVVM, etc.)

c) Development

  • Write code using appropriate frameworks (Swift, Kotlin, React Native, Flutter)
  • Implement features and functionality
  • Integrate APIs and backend services
  • Version control management

d) Build & Compilation

  • Compile source code into executable format
  • Generate APK (Android) or IPA (iOS) files

2. Mobile Application Testing

Testing Levels:

a) Unit Testing

  • Test individual functions and components
  • Use frameworks like JUnit, XCTest

b) Integration Testing

  • Test interaction between modules
  • Test API integration

c) System Testing

  • Test complete application functionality
  • Test on actual devices and emulators

d) User Acceptance Testing (UAT)

  • Real users test the application
  • Verify business requirements

Testing Considerations:

  • Device compatibility: Test on various devices, screen sizes, OS versions
  • Performance testing: Battery consumption, memory usage, network bandwidth
  • Security testing: Data encryption, authentication, authorization
  • Usability testing: User interface and experience
  • Network conditions: Test on WiFi, 3G, 4G, offline scenarios

3. Mobile Application Deployment

Pre-Deployment:

  • Final testing and bug fixes
  • Version numbering and release notes
  • Signing certificates (iOS) and keystore (Android)

Deployment Steps:

a) App Store Submission

  • iOS: Submit to Apple App Store (requires review, 1-3 days)
  • Android: Submit to Google Play Store (automatic review, minutes to hours)
  • Include app description, screenshots, privacy policy

b) Release Strategies

  • Full Release: Deploy to all users immediately
  • Staged Rollout: Deploy to percentage of users gradually (5%, 25%, 50%, 100%)
  • Beta Testing: Release to limited users for feedback

c) Post-Deployment

  • Monitor app performance and crashes
  • Collect user feedback and ratings
  • Plan updates and patches
  • Maintain version compatibility

Deployment Challenges:

  • App store approval delays
  • Device fragmentation (Android)
  • OS version compatibility
  • Network connectivity issues
  • User data migration

Summary: Black box testing validates functionality from user perspective, while white box testing ensures code quality. Mobile app development follows a structured lifecycle from planning through deployment, with rigorous testing across multiple devices and conditions before release through app stores.

Open this answer on its own page →