Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .lambdatest/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# LambdaTest Configuration

# Project and folder configuration
project_id: "01KJA57JN0Z4GSFJXAWCJR26J9"
folder_id: "01KJA580V0AT4TDTZYV1RVNBJE"

# Test Run configuration
assignee: 3152569
environment_id: 924

# Test URL for automation
test_url: "https://demo.lambdatestinternal.com"
12 changes: 11 additions & 1 deletion hooks/examples/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ const KEY = process.env.LT_ACCESS_KEY || "accessKey";
// gridUrl: gridUrl can be found at automation dashboard
const GRID_HOST = process.env.GRID_HOST || "@hub.lambdatest.com/wd/hub"; //connect to lambdatest hub

function generateDynamicBuildName() {
const now = moment();
const minutes = now.minutes();
const roundedMinutes = Math.floor(minutes / 5) * 5;
const timestamp = now.clone().minutes(roundedMinutes).seconds(0).milliseconds(0).format("YYYY-MM-DD_HH-mm");

return `Build_${timestamp}`;
}


async function searchTextOnGoogle() {
var keys = process.argv;
console.log(keys);
Expand All @@ -24,7 +34,6 @@ async function searchTextOnGoogle() {
// Setup Input capabilities
let capabilities = {
platform: platform,
build: "Build-" + moment().startOf('minute').subtract(moment().minute() % 5, 'minutes').format("YYYY-MM-DD-HH-mm"),

browserName: browserName,
version: version,
Expand All @@ -34,6 +43,7 @@ async function searchTextOnGoogle() {
accessKey: KEY,
name: "test session",
"LT:Options": {
"build": generateDynamicBuildName(),
"smartUI.project": "smartuigithub",
"smartUI.options": {
"output": {
Expand Down
Loading