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

create-triconautomationframwork-trial-cucumber

v0.0.15

Published

Custom npm initializer for Playwright cucumber Type Script

Downloads

2

Readme

Framework Flow

Nilgiri Framework


Folder Structure

nilgirinest/
├── spec/
│   ├── apiSpec/
│   │   ├── api.spec.ts
|   ├── uiSpec/
|       ├── ui.spec.ts
├── endtoend/
│   ├── features/
│   │   ├── home.feature
|   ├── steps/
|   |   ├── homeStepDef.ts
|   ├── hook.ts
│   
├── common/
|   ├── apiBase.ts
│   ├── uiBase.ts
|   
├── elementFactory/
│   ├── pageOne.ts
│   ├── pageTwo.ts
|
├── utils/
│   ├── uiCommonMethodModule.ts
│   ├── uiElementFactoryModule.ts
│   
├── resource/
│   ├── apiTestData
|   |   ├── apiTestData.json
|   |
│   ├── uiTestData
|       ├── uiTestData.json
|
├── report/
|   ├── tesms-webhook.js
|
├── node_modules/
├── package.json
├── package-lock.json
├── .gitignore
├── README.md
├── cucumber.json
├── generateReport.ts
├── tsConfig.json
  • node_modules: Contains all the npm packages required by the project.
  • pageFactory: This directory holds the page object models, facilitating easy maintenance and readability.
  • common: Shared utilities and functions that can be reused across different tests are located here.
  • resource: Contains subdirectories for different types of test data and other resources:
    • apiTestData: JSON files or other data formats for API testing.
    • uiTestData: Data files specific to UI testing.
    • downloads: A placeholder directory for files downloaded during test sessions.
  • spec: Test specifications are divided into two categories:
    • apiSpec: Contains specification files for API tests.
    • uiSpec: Contains specification files for UI tests.
  • endtoend: Test specifications are divided into two categories:
    • features: Contains feature files for the End to End and business use cases.
    • steps: Contains steps Defination for the Feature Files.
  • test-results: Stores the output from test executions, such as reports and logs.
  • utils: Helper methods and utility functions to support various testing operations.
  • .gitignore: Specifies intentionally untracked files to ignore.
  • package.json & package-lock.json: Define project metadata and lock down the versions of npm packages.
  • playwright.config.ts: Configuration file for Playwright test runner.
  • README.md: Documentation for the project.

Installation

Before you begin, ensure you have Node.js installed on your system.

  1. Clone the repository:
    git clone https://your-repository-url
  2. Navigate to the project directory:
    cd nigirinest

Record Your Test

Record your test with Playwright CodeGen

Playwright CodeGen Demo

Running Tests

Execute the following command to run all tests:

npm run automation

For running specific tests, you can use:

npx playwright test --grep "test name pattern"

Adding New Tests

To add a new UI test:

  1. Create a new .ts file in the spec/uiSpec directory.
  2. Write your test using the Playwright API and the page objects from elementFactory.

For API tests, follow a similar process in the spec/apiSpec directory.

Contributing

We welcome contributions to the NilgiriNest framework. Please read through our contributing guidelines before making a pull request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository issue tracker.NilgiriNest GitHub repository.

License

NilgiriNest is open-source software licensed under the licensed under the MIT license.

Thank you for choosing NilgiriNest for your automation needs!