Skip to content

umesh-khatiwada/Meroshare-IPO-Auto-FillUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MeroShare Nepal Automation Tool πŸ‡³πŸ‡΅

An automated tool for applying to IPO/FPO shares on MeroShare Nepal using Cypress E2E testing framework.

License: MIT Node.js Version Cypress

⚠️ Disclaimer

This tool is for educational purposes only. Use it responsibly and in accordance with MeroShare's terms of service. The authors are not responsible for any misuse or consequences arising from the use of this tool.

πŸš€ Features

  • Multi-user Support: Apply for shares using multiple user accounts
  • Automated Form Filling: Automatically fills application forms
  • Bank Integration: Supports multiple banks and BOID selection
  • Error Handling: Robust error handling and logging
  • Configurable: Easy configuration through JSON files
  • Open Source: MIT licensed and community-driven

πŸ“‹ Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn package manager
  • Valid MeroShare accounts
  • Valid bank accounts with BOID numbers

πŸ› οΈ Installation

  1. Clone the repository:
git clone https://github.com/your-username/meroshare-automation.git
cd meroshare-automation
  1. Install dependencies:
npm install
  1. Set up configuration files:
# Copy example files and configure them
cp cypress/fixtures/meroUser_example.json cypress/fixtures/meroUser.json
cp cypress/fixtures/companyDetails_example.json cypress/fixtures/companyDetails.json

βš™οΈ Configuration

User Configuration

Edit cypress/fixtures/meroUser.json with your user details:

[
  {
    "name": "Your Name",
    "bank": "YOUR BANK LIMITED (CODE)",
    "user": "your_username",
    "pwd": "your_password",
    "crnNumber": "your_crn_or_boid",
    "appliedKitta": "10",
    "selectBank": "YOUR BANK LTD.",
    "transactionPIN": "your_pin"
  }
]

Company Configuration

Edit cypress/fixtures/companyDetails.json:

{
  "companyName": "Company Name Ltd."
}

πŸƒβ€β™‚οΈ Usage

Development Mode (Interactive)

npm run cy:open

Headless Mode (CI/CD)

npm run cy:run

Run Specific Test

npm run test:meroshare

πŸ“ Project Structure

β”œβ”€β”€ cypress/
β”‚   β”œβ”€β”€ e2e/
β”‚   β”‚   └── meroshare/
β”‚   β”‚       └── merosharelogin.cy.js     # Main test file
β”‚   β”œβ”€β”€ fixtures/
β”‚   β”‚   β”œβ”€β”€ meroUser.json                # User configurations
β”‚   β”‚   β”œβ”€β”€ meroUser_example.json        # Example user config
β”‚   β”‚   β”œβ”€β”€ companyDetails.json          # Company details
β”‚   β”‚   └── companyDetails_example.json  # Example company config
β”‚   β”œβ”€β”€ support/
β”‚   β”‚   β”œβ”€β”€ commands.js                  # Custom Cypress commands
β”‚   β”‚   β”œβ”€β”€ e2e.js                      # Support file
β”‚   β”‚   └── utils.js                    # Utility functions
β”‚   └── cypress.config.js               # Cypress configuration
β”œβ”€β”€ package.json
└── README.md

πŸ”§ Configuration Options

User Fields

Field Description Required
name Full name as registered βœ…
bank Bank name with code βœ…
user MeroShare username βœ…
pwd MeroShare password βœ…
crnNumber CRN or BOID number βœ…
appliedKitta Number of shares to apply βœ…
selectBank Bank for payment βœ…
transactionPIN Transaction PIN βœ…

Supported Banks

  • Kumari Bank Limited
  • NIC Asia Bank Limited
  • Global IME Bank Limited
  • And many more...

πŸ§ͺ Testing

Run the test suite:

npm test

Run with specific browser:

npx cypress run --browser chrome

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm test
  5. Commit changes: git commit -m 'Add amazing feature'
  6. Push to branch: git push origin feature/amazing-feature
  7. Submit a pull request

Coding Standards

  • Use meaningful variable names
  • Add comments for complex logic
  • Follow existing code style
  • Write tests for new features

πŸ“ Changelog

v1.0.0

  • Initial release
  • Multi-user support
  • Basic IPO application automation
  • Bank integration

βš–οΈ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Cypress.io for the amazing testing framework
  • MeroShare Nepal for providing the platform
  • Contributors and the community

πŸ“ž Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with detailed information
  3. Join our community discussions

⭐ Star History

If this project helped you, please consider giving it a star! ⭐


Made with ❀️ for the Nepalese investment community

About

The Meroshare IPO Auto Fill-Up script, provided by CDSC, utilizes JSON files to manage the user list.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •