alumnium-hq/alumnium
关于
端到端测试框架
开发工具实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +6
- 1个月
- +8
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Alumnium
End-to-end Testing Harness
Installation
·
Quick Start
·
Documentation
Alumnium is an AI-native library and MCP for end-to-end testing. It builds upon the existing test automation ecosystem and simplifies interactions with applications, providing more robust mechanisms for verifying assertions. It works with Appium, Maestro, Playwright, or Selenium and gives you state-of-the-art capabilities.
https://github.com/user-attachments/assets/d191674e-4e67-41a4-b8fa-1e2f383aed77
Installation
MCP
curl -LsSf https://alumnium.ai/install.sh | sh
Then add to your agent:
claude mcp add alumnium --env OPENAI_API_KEY=... -- alumnium mcp
See MCP documentation for configuration, different MCP modes, and running over HTTP.
Java
dependencies {
testImplementation 'ai.alumnium:alumnium:0.24.0'
testRuntimeOnly 'ai.alumnium:alumnium-cli-darwin-arm64:0.24.0'
// Add other platforms as needed
}
Python
pip install alumnium
TypeScript
npm install alumnium
Refer to documentation for installation details on other MCP clients.
Quick Start
MCP
- Run your agent (Claude Code).
- Tell it to open the URL and test your application.
Java
import ai.alumnium.Alumni;
import org.openqa.selenium.chrome.ChromeDriver;
class AlumniumTest {
public static void main(String...args) {
ChromeDriver driver = new ChromeDriver();
Alumni al = new Alumni(driver);
driver.get("https://search.brave.com");
al.act("type 'selenium' into the search field, then press 'Enter'");
al.check("page title contains selenium");
al.check("search results contain selenium.dev");
al.quit();
}
}
Python
import os
from alumnium import Alumni
from selenium.webdriver import Chrome
os.environ["OPENAI_API_KEY"] = "..."
driver = Chrome()
driver.get("https://search.brave.com")
al = Alumni(driver)
al.do("type 'selenium' into the search field, then press 'Enter'")
al.check("page title contains selenium")
al.check("search results contain selenium.dev")
assert al.get("atomic number") == 34
al.quit()
TypeScript
import { Alumni } from "alumnium";
import { Builder } from "selenium-webdriver";
process.env.OPENAI_API_KEY = "...";
const driver = await new Builder().forBrowser("chrome").build();
const al = new Alumni(driver);
await driver.get("https://search.brave.com");
await al.do("type 'selenium' into the search field, then press 'Enter'");
await al.check("page title contains selenium");
await al.check("search results contain selenium.dev");
console.assert((await al.get("atomic number")) === 34);
await al.quit();
Check out documentation and more Java, Python and TypeScript examples.
Contributing
See the contributing guidelines for information on how to get involved in the project and develop locally.
Acknowledgments
Alumnium is a member of the TestMu AI Open Source Program, which supports the project community and development with the necessary tools. Thank you! 💚
探索相关项目
加载中…