Skip to main content
Glama
TestAuthoring.ts2.07 kB
import { ViewHierarchyAnalysis } from "./SourceMapping"; export interface LoggedToolCall { timestamp: Date; toolName: string; parameters: any; result: { success: boolean; data?: any; error?: string; }; } export interface TestAuthoringSession { sessionId: string; startTime: Date; endTime?: Date; deviceId: string; appId: string; description: string; toolCalls: LoggedToolCall[]; analysis: ViewHierarchyAnalysis[]; isActive: boolean; } export interface TestPlan { name: string; description?: string; generated: string; appId?: string; metadata?: Record<string, any>; steps: TestStep[]; } export interface TestStep { tool: string; params: Record<string, any>; description?: string; } export interface StartTestAuthoringResult { success: boolean; message: string; sessionId?: string; } export interface StopTestAuthoringResult { success: boolean; message: string; planPath?: string; kotlinTestPath?: string; } // Kotlin Test Generation Models export interface KotlinTestGenerationResult { success: boolean; message: string; sourceCode?: string; className?: string; testFilePath?: string; testMethods?: string[]; } export interface TestPattern { testRunner?: string; basePackage: string; testClassSuffix: string; imports: string[]; annotations: string[]; testMethodPattern: string; assertionStyle: "junit4" | "junit5" | "assertj"; } export interface KotlinTestTemplate { package: string; imports: string[]; className: string; annotations: string[]; testMethods: KotlinTestMethod[]; properties?: string[]; } export interface KotlinTestMethod { name: string; annotations: string[]; body: string; parameters?: string[]; returnType?: string; } export interface TestGenerationOptions { generateKotlinTest?: boolean; kotlinTestOutputPath?: string; testClassName?: string; testPackage?: string; useParameterizedTests?: boolean; assertionStyle?: "junit4" | "junit5" | "assertj"; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zillow/auto-mobile'

If you have feedback or need assistance with the MCP directory API, please join our Discord server