lorantest-scripting

Write pytest test scripts for the LoranTest framework covering API and Web UI automation.

11|1|Updated Mar 31, 2023
One-click install
npx skills add https://github.com/WaterLoran/LoranTest --skill lorantest-scripting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lorantest-scripting
Source: https://github.com/WaterLoran/LoranTest/tree/main/.cursor/skills/lorantest-scripting
Command: npx skills add https://github.com/WaterLoran/LoranTest --skill lorantest-scripting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance for writing effective LoranTest test scripts, enabling users to automate API and Web UI testing with minimal effort and maximum maintainability.

Core Features & Use Cases

  • Structured Scripting: Learn the standard class and method structure for organizing tests.
  • Data Management: Understand how to use register for storing and retrieving test data across steps.
  • Assertion & Extraction: Master check for assertions and fetch for extracting data from API responses.
  • Advanced Orchestration: Implement complex scenarios with retry, restore, context, and more.
  • Use Case: A QA engineer needs to create a new test suite for an API. They can use this Skill to understand how to structure their test classes, call the necessary API Logic functions, assert the responses, and clean up any created data.

Quick Start

Refer to the 'SKILL.md' file for detailed instructions on writing LoranTest scripts, including class structure, register usage, and Logic function parameters.

Frequently Asked Questions about lorantest-scripting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure pytest test scripts for API and Web UI test automation?

Use this Skill to structure pytest test classes, manage register data, and encapsulate logic calls for robust API and Web UI test automation.

How do I manage test data across different steps in an automation framework?

Manage test data across steps by using the register mechanism to store and retrieve variables, ensuring data persists seamlessly throughout the API and UI test execution lifecycle.

How do I extract data from API responses and perform assertions in pytest?

Extract data from API responses and perform assertions in pytest by utilizing the fetch command for data extraction and the check command to validate response payloads against expected values.

Can I implement complex test orchestration with retry and restore mechanisms?

Yes, you can implement complex test orchestration by utilizing retry, restore, and context parameters to handle advanced scenarios, manage state, and ensure data cleanup in your test automation workflow.

What is the best way to handle data cleanup after API test automation?

The best way to handle data cleanup after API test automation is to integrate restore and context logic parameters within your test class structure, ensuring testing artifacts are removed post-execution.