Toolverse
All skills

trail-sense-android-tests

by kylecorry31

Add UI automation tests to Trail-Sense Android app using AutomationLibrary. Use when asked to create, add, write, or implement automated tests, UI tests, integration tests, or androidTests for Trail Sense tools. Covers test class structure, AutomationLibrary functions, and

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile

About this skill

Add UI automation tests to Trail-Sense Android app using AutomationLibrary. Use when asked to create, add, write, or implement automated tests, UI tests, integration tests, or androidTests for Trail Sense tools. Covers test class structure, AutomationLibrary functions, and testing patterns.

How to use

  1. Utwórz nowy plik testowy w katalogu app/src/androidTest/java/com/kylecorry/trail_sense/tools/[nazwa_narzędzia]/ z nazwą [Nazwa]Test.kt. Plik powinien rozszerzać klasę ToolTestBase i przekazywać ID narzędzia w konstruktorze.

  2. Zaimportuj wymagane klasy: AutomationLibrary, TestUtils, ToolTestBase oraz widoki i zasoby z pakietu com.kylecorry.trail_sense. Dodaj adnotację @Test do metod testowych.

  3. Napisz test weryfikujący podstawową funkcjonalność – sprawdź tytuł narzędzia za pomocą hasText(), a następnie przetestuj główne operacje: tworzenie elementu, edycję, usuwanie i akcje szybkie. Każdą operację umieść w osobnej prywatnej metodzie.

  4. Preferuj selekcję elementów po tekście zamiast ID – używaj click(string(R.string.nazwa)) lub click("Tekst") do klikania przycisków, zakładek i opcji menu. Weryfikuj tekst na ekranie za pomocą hasText() z ID widoku lub samego tekstu.

  5. Dla operacji na listach użyj clickListItemMenu() i TestUtils.back() do nawigacji. Testuj interakcje z formularzami, wyborem danych i potwierdzeniami w taki sam sposób – zawsze poprzez tekst widoczny użytkownikowi.

  6. Uruchom test za pomocą narzędzia do budowania projektu (np. Gradle) – test automatycznie otworzy narzędzie Trail Sense, wykona sekwencję akcji i zweryfikuje wyniki. Jeśli test nie przejdzie, sprawdź czy tekst i ID zasobów zgadzają się z aktualnym kodem aplikacji.

Related skills

openscad

by mitsuhiko

Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing platforms like MakerWorld.

Mobile
4291

xcodebuildmcp

by cameroncooke

Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).

Mobile
2225

flutter-development

by aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

Mobile
1,1601,122

automating-mobile-app-testing

by jeremylongshore

This skill enables automated testing of mobile applications on iOS and Android platforms using frameworks like Appium, Detox, XCUITest, and Espresso. It generates end-to-end tests, sets up page object models, and handles platform-specific elements. Use this skill when the user

Mobile
17142

godot

by bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI

Mobile
547680

create-plan

by antinomyhq

Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need

Mobile
13108