npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lambdatest/node-fetch-sessions

v1.1.0

Published

This CLI fetches lambdatest automation test session details based on build name

Downloads

62

Readme

LambdaTest Logo

Node fetch sessions

npm version

A command-line interface(CLI) to fetch LambdaTest automation session details through @lambdatest/node-rest-client.

Steps to fetch LambdaTest automation session details

Step 1. Installation

$ npm i -g  @lambdatest/node-fetch-sessions

Step 2. Set LambdaTest Username and Access Key in environment variables.

For Linux/macOS:

$ export LT_USERNAME="YOUR_USERNAME"
$ export LT_ACCESS_KEY="YOUR ACCESS KEY"

For Windows:

$ set LT_USERNAME="YOUR_USERNAME"
$ set LT_ACCESS_KEY="YOUR ACCESS KEY"

Step 3. Set Build Name for which the test session information is required

For Linux/macOS:

$ export LT_BUILD_NAME="<Add Build Name>"

For Windows:

$ set LT_BUILD_NAME="<Add Build Name>"

Step 4. Retrieve the list of automation sessions

$ lt-reporter run

Expected Output

{
    "success":true,
    "error":"",
    "msg":"session listing retrieved",
    "data":
    {
        "Meta":{"attributes":{"org_id":******},
        "result_set":{"count":1,"limit":10000,"offset":0,"total":1}},
        "data":[{"test_id":"****-*****-*****-*****",
        "build_id":*******,
        "build_name":"Python Slack Test Demo",
        "user_id":******,
        "username":"*****",
        "status_ind":"passed",
        "create_timestamp":"2022-09-12 15:03:35",
        "start_timestamp":"2022-09-12 15:03:49",
        "end_timestamp":"2022-09-12 15:04:11",
        "remark":"completed",
        "browser":"firefox",
        "platform":"win11",
        "version":"100.0",
        "name":"Python Demo Test",
        "session_id":"*****-*****-*****-*****",
        "duration":"22",
        "test_type":"selenium",
        "selenium_logs":"Link to selenium logs",
        "console_logs":"Link to console logs ",
        "network_logs":"link to network logs",
        "command_logs":"link to command logs",
        "video_url":"link to the test video",
        "screenshot_url":"link to the screenshot"}],
        "message":"Retrieve build list was successful",
        "status":"success"}
    }

Note: In order to retreive the list of only Cypress tests run the command below

$ lt-reporter run --cypress

Expected Output

{
    "success":true,
    "error":"",
    "msg":"Retrieve enhanced cypress report was successfull",
    "data":[
        "*****-*****-*****-*****":{
        "stats":{"suites":1,"tests":3,"passes":2,"pending":0,"failures":1,
        "start":"2022-09-06T10:03:01.902Z",
        "end":"2022-09-06T10:03:12.146Z",
        "duration":10244,
        "testsRegistered":6,
        "passPercent":33.33333333333333,
        "pendingPercent":0,
        "other":0,
        "hasOther":false,
        "skipped":0,
        "hasSkipped":false},
        "results":[
            {"uuid":"",
            "title":"",
            "fullFile":"",
            "file":"",
            "beforeHooks":null,
            "afterHooks":null,
            }]}}
        ]
}

In case your Build does not have a Cypress test the Command Line Interface returns the following

No cypress tests found in the build with name <Your Build Name>

License

Node fetch sessions is available under the Apache License 2.0. Use it wisely.

About LambdaTest

LambdaTest is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs.

Features

  • Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.
  • Real-time cross browser testing on 3000+ environments.
  • Test on Real device cloud
  • Blazing fast test automation with HyperExecute
  • Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.
  • Smart Visual Regression Testing on cloud
  • 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.
  • Automated Screenshot testing across multiple browsers in a single click.
  • Local testing of web and mobile apps.
  • Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.
  • Geolocation testing of web and mobile apps across 53+ countries.
  • LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports