Skip to content

Commit 83c1594

Browse files
committed
Update smartui-web.json to match CLI default config structure
1 parent 6f573a5 commit 83c1594

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

.smartui.log

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[:debug] http request: GET /packageinfo
2+
[:debug] http response: {"status":200,"headers":{"date":"Wed, 19 Nov 2025 16:20:05 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"keep-alive","access-control-allow-methods":"GET, POST, PUT, OPTIONS,PATCH","access-control-allow-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization,username,traceparent,tracestate","access-control-expose-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range","cf-cache-status":"DYNAMIC","server":"cloudflare","cf-ray":"9a11086bda2bc0e2-DEL"},"body":{"data":{"latestVersion":"4.1.47","deprecated":false,"additionalDescription":"If you face any problems executing tests, upgrade your node version to v20.3 or above","additionalDescriptionLatestVersion":"If you face any problems executing tests, upgrade your node version to v20.3 or above"}}}
3+
LambdaTest SmartUI CLI v4.1.41
4+
If you face any problems executing tests, upgrade your node version to v20.3 or above
5+
A new version 4.1.47 is available!
6+
## No config file provided. Using default config.
7+
[auth:debug] http request: GET /token/verify
8+
[auth:debug] http response: {"status":200,"headers":{"date":"Wed, 19 Nov 2025 16:20:05 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"keep-alive","access-control-allow-methods":"GET, POST, PUT, OPTIONS,PATCH","access-control-allow-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization,username,traceparent,tracestate","access-control-expose-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range","cf-cache-status":"DYNAMIC","server":"cloudflare","cf-ray":"9a11086d9df4c0e2-DEL"},"body":{"status":"Success","message":"Project Token Successfully Verified","projectToken":"2608722#01KABDXWJ9RFT1Z8F33AT6XWKR#C#","orgId":2608722,"userId":2731326}}
9+
[startServer:debug] {"level":30,"time":1763569205931,"pid":84345,"hostname":"admin-MacBook-Pro","msg":"Server listening at http://[::1]:49152"}
10+
[startServer:debug] {"level":30,"time":1763569205932,"pid":84345,"hostname":"admin-MacBook-Pro","msg":"Server listening at http://127.0.0.1:49152"}
11+
[startServer:debug] Server started successfully on port 49152
12+
[createBuild:debug] http request: POST /build
13+
[createBuild:debug] {"git":{"branch":"main","commitId":"418bdbc","commitMessage":"Merge pull request #9 from JeeveshJ7/main","commitAuthor":"Sushobhit Dua","githubURL":"","baselineBranch":""},"config":{"web":{"browsers":["chrome","firefox","safari","edge"],"viewports":[{"width":1920,"height":0},{"width":1366,"height":0},{"width":1028,"height":0}]},"mobile":{"devices":["iPhone 14","Galaxy S24"],"fullPage":true,"orientation":"portrait"},"waitForPageRender":0,"waitForTimeout":1000,"waitForDiscovery":30000,"enableJavaScript":false,"cliEnableJavaScript":true,"scrollTime":8,"allowedHostnames":[],"allowedAssets":[],"smartIgnore":false,"delayedUpload":false,"useGlobalCache":false,"ignoreHTTPSErrors":false,"skipBuildCreation":false,"userAgent":"","requestHeaders":{},"allowDuplicateSnapshotNames":false,"useLambdaInternal":false,"useRemoteDiscovery":false,"useExtendedViewport":false,"loadDomContent":false,"showRenderErrors":false},"buildName":"","isStartExec":false,"packageVersion":"4.1.41","smartGit":false,"markBaseline":false,"baselineBuild":"","scheduled":""}
14+
[createBuild:debug] http response: {"status":200,"headers":{"date":"Wed, 19 Nov 2025 16:20:07 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"keep-alive","access-control-allow-methods":"GET, POST, PUT, OPTIONS,PATCH","access-control-allow-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization,username,traceparent,tracestate","access-control-expose-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range","cf-cache-status":"DYNAMIC","server":"cloudflare","cf-ray":"9a1108728853c0e2-DEL"},"body":{"data":{"buildURL":"https://smartui.lambdatest.com/builds/01KABDXWJ9RFT1Z8F33AT6XWKR?searchBuild=smartui-168dfa7d64","buildId":"2e88e112-aa7c-4037-949c-e8c0e797b9c4","buildName":"smartui-168dfa7d64","baseline":false,"gdprCompliance":false,"useKafkaFlow":true,"useDedicatedProxy":false,"removeHtmlComments":false,"checkPendingRequests":false}}}
15+
[finalizeBuild:debug] http request: DELETE /build
16+
[finalizeBuild:debug] http response: {"status":200,"headers":{"date":"Wed, 19 Nov 2025 16:20:09 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"keep-alive","access-control-allow-methods":"GET, POST, PUT, OPTIONS,PATCH","access-control-allow-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization,username,traceparent,tracestate","access-control-expose-headers":"Pragma,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range","cf-cache-status":"DYNAMIC","server":"cloudflare","cf-ray":"9a110881ef63c0e2-DEL"},"body":{"data":{"message":"Build finalized successfully"}}}
17+
[finalizeBuild:debug] Closed browser
18+
[finalizeBuild:debug] Closed server
19+
[finalizeBuild:error] Exiting process with code 1
20+
[finalizeBuild:debug] Process exited with code 1

smartui-web.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
"edge"
88
],
99
"viewports": [
10-
[1920, 1080],
11-
[1366, 768],
12-
[360, 640]
13-
],
14-
"waitForPageRender": 50000
10+
[
11+
1920
12+
],
13+
[
14+
1366
15+
],
16+
[
17+
1028
18+
]
19+
]
1520
},
1621
"mobile": {
1722
"devices": [
@@ -23,5 +28,7 @@
2328
},
2429
"waitForTimeout": 1000,
2530
"enableJavaScript": false,
26-
"allowedHostnames": []
31+
"allowedHostnames": [],
32+
"smartIgnore": false,
33+
"showRenderErrors": false
2734
}

src/test/java/com/lambdatest/sdk/SmartUISDKLocal.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ public void basicTest() throws Exception {
3434
System.out.println("Loading Url");
3535
driver.get("https://www.lambdatest.com/support/docs/");
3636
Thread.sleep(1000);
37-
SmartUISnapshot.smartuiSnapshot(driver, "docs");
38-
Thread.sleep(5000);
3937
driver.get("https://www.lambdatest.com");
4038
Thread.sleep(1000);
41-
SmartUISnapshot.smartuiSnapshot(driver, "homepage");
39+
SmartUISnapshot.smartuiSnapshot(driver, "screenshot");
4240
Thread.sleep(1000);
4341
System.out.println("Test Finished");
4442
}

0 commit comments

Comments
 (0)