Course outline: Tools and specialisms
Module 03 · Tools and specialisms
QA in practice: mobile, databases and teams
The topics that come up once you are on a real team: mobile apps, databases, products in many languages, and the people around you.
What you'll be able to do
- Plan mobile tests: devices, screen sizes, interruptions, networks, emulators and simulators.
- Check data with SQL: join two tables and find the rows that break a rule.
- Use Git as a tester: clone, branch, commit and open a pull request.
- Tell globalisation from localisation, and test a product for another region.
Mobile vs. Web App Testing
| Feature | Mobile App Testing | Web App Testing |
|---|---|---|
| Usage | Software programs used on mobile devices. | Software programs used on computers. |
| User Base | Developed for a broader range of users. | Developed for a shorter range of users compared to mobile. |
| Updates | New applications downloaded from app stores. | Applications updated on the website. |
| Responsive Design | More complex for small screens (mobiles, tablets). | Easier to code relative design for large screens (desktops, laptops). |
| Storage | Less storage capacity; testing can be difficult. | Larger storage capacity. |
| Connectivity | May not require internet, but connection quality/speed matters (LTE, etc.). | Generally requires an internet connection. |
| Complexity | More complex due to diverse devices and functionalities. | Simpler due to standardized desktop functionality. |
| Battery Life | Performance on full/low charge is critical; battery-draining apps get deleted. | Not a concern. |
| Considerations | Screen size, OEMs (Original Equipment Manufacturers (e.g., Samsung, Apple, Google)), storage capacity, etc. | Fewer device-specific considerations. |
| Interaction | Focus on interaction with user moves, voice, environment, gestures, etc. | Less focus on complex user interactions. |
| Tools/Frameworks | Appium, Espresso, XCUITest, Xamarin, Robotium, etc. | Selenium, WebLOAD, Acunetix, Netsparker, etc. |
| Peripheral Testing | Tablets, smartwatches, fitness trackers, medical devices. | Mouse, webcams, game controllers, keyboards. |
Mobile Testing Challenges
- Multitude of Mobile Devices
- Device Fragmentation & Various OS Platforms
- Different Mobile App Types
- Numerous Test Interfaces
- Variety Of Testing Tools
Types of Mobile Applications
Native: Built in a specific language (Swift/Objective-C (Primary languages for iOS development) for iOS, Java/Kotlin (Primary languages for Android development) for Android) for a specific platform.
Hybrid: Designed for multiple platforms using standard web languages (HTML5, JavaScript, C#) and compiled. Uses plugins for device-specific interactions.
Browser-based (Web App): Runs inside a mobile web browser, essentially a website optimized for mobile.
Emulator vs. Simulator
Simulator: Models an environment to mimic behavior without replicating hardware. Used for analysis and study, showing how the device *would* work. Doesn't exactly follow real environment activity.
Emulator: Software allowing one system (host) to imitate another (guest), including hardware, by translating the Instruction Set Architecture (ISA) (The part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and exception handling, and external I/O.).
Analogies & Examples
Simulator Analogy (Flight Simulator): Replicates flying experience (software behavior) but not the actual hardware mechanics.
Simulator Example (iOS Simulator): Mimics iPhone/iPad appearance/functionality. Faster but limited for hardware features (Bluetooth, push notifications).
Emulator Analogy (Arcade Emulator): Replicates old game software *and* hardware (CPU, memory) on a modern computer.
Emulator Example (Android Emulator): Replicates Android hardware/software, allowing testing of camera, GPS, network conditions.
Comparison
| Aspect | Emulator | Simulator |
|---|---|---|
| Definition | Replicates hardware and software. | Models software behavior only. |
| Purpose | Testing hardware-specific features, close replication. | Testing app functionality without precise hardware replication. |
| Accuracy | High-fidelity reproduction including hardware. | Generalized environment focused on software. |
| Performance | Can be slower due to hardware emulation. | Often faster, focuses on software behavior. |
| Hardware Interaction | Supports testing GPS, camera, network, etc. | Limited or no support for hardware features. |
| Use Cases | Firmware, OS features, hardware-dependent apps. | UI/UX, basic functionality testing in development. |
| Example | Android Emulator | iOS Simulator |
Mobile Application Test Types
Hardware Compatibility
Device Features
Display Variations
Device Temperature
Input Sensors
Input Methods
Screen Orientation
Interrupt Handling
Permissions
Power Consumption
OS Interactions
Notifications
Quick-access Links
User Preferences
App Type Specifics
Interoperability
Co-existence
Connectivity
Installation & Updates
Stress Testing
Security Testing
Performance Testing
Usability Testing
Database Testing
A type of software testing that checks the schema, tables, triggers, etc., of the database. It also checks data integrity and consistency and may involve creating complex queries to load/stress test the database and check its responsiveness.
Coverage Includes:
- Testing data integrity
- Checking data validity
- Performance checks
- Triggers and Functions
- Testing various procedures
Types of Database Testing:
- Structural Testing: Verifies elements inside the data repository (schema, tables, etc.) not directly operated by users. Requires SQL knowledge.
- Functional Testing: Authorizes functional requirements from the end-user's perspective (transactions, operations).
- Non-functional Testing: Includes Load, Stress, Security, Usability, and Compatibility testing.
SQL for testers
The screen shows what the application chose to show; the database shows what it really stored. With a few lines of SQL a tester can check the stored data against the rules, for every record at once. Imagine the orders of Cedar Books, the Academy's practice shop, kept in two tables: orders (one row per order: id, account, subtotal, discount, delivery, to_pay) and order_lines (one row per book in an order: order_id, title, price, qty).
Does each order's subtotal equal the sum of its lines? This query lists the orders where it does not:
SELECT o.id, o.subtotal, SUM(l.price * l.qty) AS lines_total
FROM orders o
JOIN order_lines l ON l.order_id = o.id
GROUP BY o.id, o.subtotal
HAVING o.subtotal <> SUM(l.price * l.qty);JOIN pairs each order with its lines, GROUP BY gathers the lines of each order, SUM adds them up, and HAVING keeps only the orders that disagree. A query that returns no rows is a passing check. Two more of the same kind:
-- The amount paid follows from the parts.
SELECT id, subtotal, discount, delivery, to_pay
FROM orders
WHERE to_pay <> subtotal - discount + delivery;
-- An order with no lines at all should not exist.
SELECT o.id
FROM orders o
LEFT JOIN order_lines l ON l.order_id = o.id
WHERE l.order_id IS NULL;The second query uses LEFT JOIN, which keeps every order even when it has no lines; the lines' columns are then empty (NULL), so WHERE l.order_id IS NULL finds the orphans. One rule above all: a tester reads with SELECT. In a shared or live database, never run UPDATE or DELETE to make a test pass.
Globalization vs. Localization
Globalization Testing (G11N): Ensures an application can function correctly in *any* cultural or local environment without requiring code changes. This involves testing support for multiple languages, date/time formats, currencies, and character sets. Example: Facebook supporting numerous languages globally.
Localization Testing (L10N): Verifies that an application has been adapted for a *specific* target geographical region and culture. This includes checking language translation accuracy, cultural appropriateness of UI elements, local conventions (like address formats), and regulatory compliance. Example: A website tailored specifically for the Chinese market (like QQ.com).
Why test G11N/L10N? To ensure a positive user experience, avoid cultural misunderstandings, meet market expectations, and comply with local regulations, ultimately expanding the application's reach and usability.
Worked example · Cedar Books
Mobile and localisation checks on Cedar Books
Cedar Books is a web shop, so on a phone it is a browser-based mobile app: no install, but every check of a small, touch-driven, often interrupted device still applies. Here is what to try on it:
| Check | On Cedar Books | Why |
|---|---|---|
| Narrow screens | Every page from 320 px wide, with no sideways scrolling (NFR-05) | Phones are where many shoppers browse |
| Touch | Apply, Add to basket and the pager are big enough to tap; nothing needs a mouse hover | A finger is wider than a pointer |
| Orientation | The basket and the checkout in portrait and in landscape | Layouts break when the width changes |
| Interruptions | A call or another app during payment: the basket and the form survive | Phones interrupt; desktops rarely do |
| Slow networks | Checkout on a throttled connection; the slow-bank card shows its message after 10 seconds (REQ-07) | Mobile networks are slow and patchy |
| Keyboards | The quantity field opens the number keypad | The right keypad saves taps and mistakes |
Try them on a real phone and in an emulator: the emulator is quick and repeatable, the phone shows what fingers, real networks and interruptions do.
Cedar Books sells in English only, with plain prices and no currency sign. Before it sells in another country, it needs localisation checks:
| Check | Example | Why |
|---|---|---|
| Dates | 31 Dec 2024 in the UK, 12/31/2024 in the US, 31.12.2024 in Germany | The same digits can mean different days |
| Numbers and money | 19.00 in English, 19,00 in French or German, with the currency sign before or after | A wrong separator changes an amount |
| Text length | "Add to basket" becomes "In den Warenkorb legen" in German | Longer words must still fit their buttons |
| Direction | Arabic and Hebrew read from right to left, so the whole layout mirrors | Icons and arrows must turn too |
| Accents and alphabets | Typing "Zahle" finds a title with "Zahlé" (REQ-02) | Search and sorting must handle every alphabet |
Globalisation testing makes sure the shop can take any of these without a code change; localisation testing checks each country's version once it exists: its translations, formats and local rules.
Try it: The exploratory session lab · The keyboard lab
Typical Software Team Roles
- Business Analyst: Understands business processes, translates needs into requirements.
- Product Owner: Holds product vision, ensures product meets customer requirements.
- Project Manager: Ensures delivery on time/budget, manages and motivates the team.
- UX/UI Designer: Creates user-friendly designs and user journeys.
- Software Architect: Designs high-level architecture, selects tools/platforms, sets code standards.
- Software Developer: Engineers and stabilizes the product, solves technical problems.
- Software Testing Engineer: Ensures application performs to requirements, finds defects.
- Test Automation Engineer: Designs automation ecosystem, writes/maintains test scripts.
- DevOps Engineer: Facilitates Dev/Ops cooperation, builds CI/CD pipelines.
Improving Dev & QA Communication
- Ensure Clear Requirements & Goals
- Build Empathy Across Teams
- Pair Testers with Developers
- Consistent & Constructive Feedback
- Emphasize “Test First” Approach
- Cross-Train Teams
- Leave Work-Related Ego
- Be Realistic
- Be Specific
- Be Organized
- Prioritize the Project
- Be Patient
- Share Ideas (Not Dictate)
- Accept Human Error
- Value Teamwork
- Utilize Agile & Pair Testing
- Listen Carefully
- Slow Down Speaking
- Be Diplomatic
- Understand Body Language
- Write Graciously
- Converse Efficiently
- Attend to Clients Promptly
- Rotate Information
JIRA for Project Management
JIRA is a software application from Atlassian used for issue tracking and project management, widely adopted by agile development teams to track bugs, stories, epics, and other tasks.
Key Aspects:
- Projects: Manage defects effectively within project contexts.
- Issues: Track and manage defects, tasks, stories, etc.
- Workflow: Process the issue/defect life cycle (e.g., Open → In Progress → Resolved → Closed).
- Search: Find issues easily using basic search, filters, or JQL (JIRA Query Language - a powerful way to search for issues in JIRA.).
- Dashboards: Customizable display of project metrics, assignments, and issue status using gadgets.
Benefits:
- Plan, Track and Work Faster
- Central source of information
- Organize documentation tasks
- Track progress and meet deadlines
- Measure time spent
- Provide feedback faster
Usage as QA:
- Creating issues (bugs, tasks)
- Searching and filtering issues
- Tracking workflow status
- Understanding main fields and templates
- Viewing dashboards for progress
Git for testers
Automated tests are code, and teams keep code in Git: a record of every change, who made it and why. A tester who adds tests works the way developers do. Say you want to add the coupon tests and the basket page object for Cedar Books to your team's test repository:
git clone https://github.com/your-team/cedar-books-tests.git
cd cedar-books-tests
git switch -c add-coupon-tests
# write tests/basket-page.ts and tests/coupons.spec.ts, then:
git status
git add tests/basket-page.ts tests/coupons.spec.ts
git commit -m "Add coupon tests with a basket page object"
git push -u origin add-coupon-tests- clone copies the repository, with its whole history, to your computer.
- switch -c (or the older checkout -b) starts a branch: your own line of work, apart from main.
- status shows what you changed; add picks the files for the next commit.
- commit records the change with a message that says what it does.
- push sends the branch to the shared repository.
Then open a pull request on GitHub (a merge request on GitLab): a request to merge your branch into main. A teammate reviews the tests, the pipeline runs them, and when both are happy the branch is merged. Before you start the next piece of work, run git switch main and git pull, so you begin from the latest version. If two people changed the same lines, Git reports a conflict: you choose what the lines should say, then commit again.
Helpful Resources
Sign in to keep your progress: a tick here lives in this browser only.
Test yourself
Quiz: Mobile, databases and teams
10 questions, about 8 minutes. Sign in to take the quiz.
10 questions, about 8 minutes, no time limit. 7 right answers pass, and passing marks the lesson as read. Every new quiz draws new questions.