browserstack-tester
Тестирование веб-интерфейса MikoPBX через BrowserStack. Запуск PHPUnit тестов с Selenium WebDriver в облачных браузерах. Использовать для автоматизированного тестирования админ-панели, проверки форм, навигации и интерактивных элементов.
Install
mkdir -p .claude/skills/browserstack-tester && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7782" && unzip -o skill.zip -d .claude/skills/browserstack-tester && rm skill.zipInstalls to .claude/skills/browserstack-tester
About this skill
BrowserStack Web UI Tester
Тестирование веб-интерфейса MikoPBX через BrowserStack. Запуск PHPUnit тестов с Selenium WebDriver в облачных браузерах. Использовать для автоматизированного тестирования админ-панели, проверки форм, навигации и интерактивных элементов.
Prerequisites
BrowserStack Local must be running on the host machine:
# In a separate terminal on macOS host:
cd ~/PhpstormProjects/mikopbx/Core/tests/AdminCabinet
./start-browserstack-local.sh
This creates a secure tunnel between BrowserStack cloud browsers and local PBX server.
Running Tests
Basic Test Execution
# Run specific test file
docker exec -t mikopbx_tests-refactoring /bin/sh -c "
cd /offload/rootfs/usr/www &&
SERVER_PBX=https://172.16.33.72 \
BROWSERSTACK_DAEMON_STARTED=true \
BROWSERSTACK_LOCAL_IDENTIFIER=local_test \
php vendor/bin/phpunit \
--configuration tests/Unit/phpunit.xml \
tests/AdminCabinet/Tests/YourTest.php"
Run Specific Test Method
docker exec -t mikopbx_tests-refactoring /bin/sh -c "
cd /offload/rootfs/usr/www &&
SERVER_PBX=https://172.16.33.72 \
BROWSERSTACK_DAEMON_STARTED=true \
BROWSERSTACK_LOCAL_IDENTIFIER=local_test \
php vendor/bin/phpunit \
--configuration tests/Unit/phpunit.xml \
tests/AdminCabinet/Tests/NetworkInterfacesTest.php \
--filter testAddNewVLAN"
Run Multiple Tests
# Use pipe (|) to run multiple test methods
--filter 'testAddNewVLAN|testStaticRoutes|testIPv6ManualConfiguration'
Environment Variables
| Variable | Description | Default |
|---|---|---|
SERVER_PBX | PBX server URL | https://172.16.33.72 |
BROWSERSTACK_DAEMON_STARTED | Skip local tunnel start | true |
BROWSERSTACK_LOCAL_IDENTIFIER | Tunnel identifier | local_test |
Test Structure
All tests extend MikoPBXTestsBase:
class MyFeatureTest extends MikoPBXTestsBase
{
public function setUp(): void
{
parent::setUp();
$this->setSessionName("Test: My Feature Name");
}
public function testMyFeature(): void
{
// Navigate to page
$this->clickSidebarMenuItemByHref("/admin-cabinet/my-feature/modify/");
$this->waitForAjax();
// Interact with form
$this->changeInputField('fieldName', 'value');
$this->selectDropdownItem('dropdown-id', 'option-value');
$this->changeCheckBoxState('checkbox-name', true);
// Submit and verify
$this->submitForm('form-id');
$this->assertInputFieldValueEqual('fieldName', 'value');
}
}
Key Helper Methods
Navigation
clickSidebarMenuItemByHref($href)- Navigate via sidebar menuchangeTabOnCurrentPage($tabId)- Switch tabswaitForAjax()- Wait for AJAX requests to complete
Form Interactions
changeInputField($name, $value)- Set input field valueselectDropdownItem($id, $value)- Select dropdown optionchangeCheckBoxState($name, $checked)- Toggle checkboxsubmitForm($formId)- Submit form
Assertions
assertInputFieldValueEqual($name, $expected)- Check input valueassertCheckBoxStageIsEqual($name, $expected)- Check checkbox stateassertMenuItemSelected($id, $value)- Check dropdown selection
Test Files Location
- Test classes:
tests/AdminCabinet/Tests/ - Base class:
tests/AdminCabinet/Lib/MikoPBXTestsBase.php - PHPUnit config:
tests/Unit/phpunit.xml - Test data factories:
tests/AdminCabinet/Tests/Data/
BrowserStack Dashboard
View test recordings and logs at: https://automate.browserstack.com/dashboard/
Common Patterns
Wait for Element
self::$driver->wait(10, 500)->until(
WebDriverExpectedCondition::visibilityOfElementLocated(
WebDriverBy::id('element-id')
)
);
Find Element by XPath
$element = self::$driver->findElement(
WebDriverBy::xpath("//div[contains(@class, 'my-class')]")
);
CSS Selector
$rows = self::$driver->findElements(
WebDriverBy::cssSelector('#my-table tbody tr:not(.template)')
);
References
- Test Patterns - Common testing patterns
- Troubleshooting - Common issues and solutions
More by mikopbx
View all skills by mikopbx →You might also like
flutter-development
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.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
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 workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversAutomate web browser actions efficiently using Selenium WebDriver for robust testing with Selenium on Python and seamles
Selenium WebDriver automates browser tasks for automated testing in software testing, supporting Chrome, Firefox, and Ed
Automate browsers easily with a Chrome extension and WebSocket—no headless setup. Ideal for Selenium, WebDriver, and bro
MCP tools build using selenium to automate web testing or scraping
Enhance software testing with Playwright MCP: Fast, reliable browser automation, an innovative alternative to Selenium s
Unlock browser automation studio with Browserbase MCP Server. Enhance Selenium software testing and AI-driven workflows
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.