Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa3de31

Browse files
readme updated.
1 parent 54e2900 commit fa3de31

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

‎README.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,80 @@
11
# php-laravel-dusk-todo
22
A Sample app to automate on lambdatest grid.
3+
4+
### Installating project dependencies.
5+
```bash
6+
composer install
7+
composer dump-autoload
8+
```
9+
10+
11+
### Configuring test.
12+
```bash
13+
cp .env.example .env
14+
```
15+
- Set LT_USERNAME with your username can be obtained from lamabdtest dashbaord
16+
- Set LT_ACCESS_KEY with your access key can be genrated from lamabdtest dashbaord
17+
- To update platform configuration.
18+
Go to -> tests/DuskTestCase.php -> driver method:
19+
```php
20+
return RemoteWebDriver::create($url,
21+
DesiredCapabilities::chrome()
22+
->setCapability("platform", "win10")
23+
->setCapability("browserName", "chrome")
24+
->setCapability("version", "71.0")
25+
->setCapability("resolution", "1024x768")
26+
->setCapability("build", "LaravelDusk Build")
27+
->setCapability("name", "LaravelDusk Test")
28+
->setCapability("network", true)
29+
->setCapability("video", true)
30+
->setCapability("visual", true)
31+
->setCapability("console", true)
32+
->setCapability("tunnel", false)
33+
);
34+
```
35+
36+
- List of supported platfrom, browser, version can be found at https://www.lambdatest.com/capabilities-generator/
37+
38+
### Note: If you want use lambdatest ssh tunnel
39+
- Please set tunnel value `true` in capabilities. e.g:
40+
41+
Go to -> tests/DuskTestCase.php -> driver method:
42+
```php
43+
return RemoteWebDriver::create($url,
44+
DesiredCapabilities::chrome()
45+
->setCapability("platform", "win10")
46+
->setCapability("browserName", "chrome")
47+
->setCapability("version", "71.0")
48+
->setCapability("resolution", "1024x768")
49+
->setCapability("build", "LaravelDusk Build")
50+
->setCapability("name", "LaravelDusk Test")
51+
->setCapability("network", true)
52+
->setCapability("video", true)
53+
->setCapability("visual", true)
54+
->setCapability("console", true)
55+
->setCapability("tunnel", true)
56+
);
57+
```
58+
- Download and setup tunnel binary. Tunnel Instruction can be found at
59+
For windows https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Windows
60+
61+
For Mac https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+MacOS
62+
63+
For Linux https://www.lambdatest.com/support/docs/display/TD/Local+Testing+For+Linux
64+
65+
66+
### Executing test
67+
```bash
68+
php artisan dusk
69+
```
70+
71+
72+
73+
74+
75+
### Test case creation
76+
- To genrate test case class execute `php artisan dusk:make {test case name}` in your project dir. e.g:
77+
```bash
78+
php artisan dusk:make TodoTest
79+
```
80+
- Our sample Test case Go to -> tests/Browser/TodoTest.php file. It navigates our sample app check some checkboxes add some to do.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /