How to integrate with LT using codeception ?
Hi Tim,
Refer to the sample test case below:
?php
class FirstCest
{
public function frontpageWorks(AcceptanceTester $I)
{
sleep(5);
$I->amOnPage('/sample-todo-app');
sleep(2);
$I->checkOption('/html/body/div/div/div/ul/li[4]/input');
sleep(2);
$I->checkOption('/html/body/div/div/div/ul/li[5]/input');
}
}
In the test script, you need to update your test capabilities. Notice the declaration of class name “AcceptanceTester”. We used this class to specify test configuration and port number
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'https://lambdatest.github.io/sample-todo-app/'
host: '{username}:{token}@hub.lambdatest.com' #provide your LambdaTest credentials
port: 80
browser: chrome
Refer to the GitHub repo - Codeception Framework Integration to Run Codeception Selenium Tests on Online Grid | LambdaTest