{"id":16751656,"url":"https://github.com/lancercomet/aniber","last_synced_at":"2025-08-23T22:16:53.344Z","repository":{"id":75271250,"uuid":"63540891","full_name":"LancerComet/Aniber","owner":"LancerComet","description":"An e2e testing tool presets powered by Selenium and Nightwatch.","archived":false,"fork":false,"pushed_at":"2017-07-26T14:56:09.000Z","size":2687,"stargazers_count":46,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T08:09:43.276Z","etag":null,"topics":["e2e-tests","nightwatch","selenium"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LancerComet.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-17T16:12:19.000Z","updated_at":"2022-07-07T03:37:43.000Z","dependencies_parsed_at":"2023-06-05T23:30:43.518Z","dependency_job_id":null,"html_url":"https://github.com/LancerComet/Aniber","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LancerComet/Aniber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LancerComet%2FAniber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LancerComet%2FAniber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LancerComet%2FAniber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LancerComet%2FAniber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LancerComet","download_url":"https://codeload.github.com/LancerComet/Aniber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LancerComet%2FAniber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271770450,"owners_count":24817645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["e2e-tests","nightwatch","selenium"],"created_at":"2024-10-13T02:44:32.284Z","updated_at":"2025-08-23T22:16:53.287Z","avatar_url":"https://github.com/LancerComet.png","language":"JavaScript","readme":"# Aniber\n\u003e Aniber is an e2e testing tool presets powered by Selenium and Nightwatch.\n\u003e © 2016 LancerComet.\n\n## Introduction\nis an e2e testing tool presets powered by Selenium and Nightwatch.\nIt's standalone and you can test anything you want to any site.\n\n![](https://raw.githubusercontent.com/LancerComet/Aniber/master/assets/preview.gif)\n\n\n## Get started\n\n### Setup.\n1. `git clone`.\n2. Run `npm install` to get all dependencies.\n3. Run `npm run selenium-setup` to install selenium.\n\n### Something you may know ...\n- You must have Java 7 or later version runtime installed, and make sure command \"java\" is available. (Configured in PATH)\n- By default, Aniber will call **Phantomjs** up to run testing cases, but it allows you to use **Internet Explorer**, **Firefox** and **Chrome**. See the NPM Scripts command below.\n\n### Write testing cases.\n1. Make a new **.js** file and save it to folder **./tests**. You can name this file what you want.\n2. Write testing code.\n\u003e You may want to check the [documents](http://nightwatchjs.org/guide#unit-testing) about how to write testing case and using APIs.\n\n  Here is an example.\n  ```\n  module.exports = {\n    'Find the answer.': function (client) {\n      /*\n       * In this case, we will open bing.com and search \"what is microsoft\" and take a screenshot to save our answers.\n       */\n\n      const searchInput = '#sb_form_q'\n      const searchBtn = '#sb_form_go'\n      const question = 'what is microsoft'\n\n      // Launch browser and open bing.com.\n      client.url('http://bing.com').maximizeWindow()\n\n      // Make sure both \"body\" and search input are available.\n      client.expect.element('body').to.be.present\n      client.expect.element(searchInput).to.be.visible\n      client.pause(2000)  // Just wait 2s.\n\n      // Type \"what is microsoft\" in searching input and submit.\n      client.setValue(searchInput, question)\n      client.click(searchBtn)\n      client.pause(2000)\n\n      // Let's save these answers to a screenshot.\n      client.expect.element('body').to.be.present\n      client.saveScreenshot('reports/answers.png')  // Take a screenshot and save to \"reports/answer.png\".\n      client.end()\n    }\n  }\n  ```\n\n### Run your test.\nRun `npm start` to run your testing cases.\nIf you want use a different browser, see the commands below.\n\n## NPM Scripts\n - `npm start`: Run all testing cases by using default settings. It will use **Phantomjs** to run testing cases.\n - `npm run ie`: Run all testing cases by using **Internet Explorer**. You might do some extra work. Check these stuff below.\n - `npm run edge`: Run all testing cases by using **Microsoft Edge**. Make sure you are using Windows 10.\n - `npm run firefox`: Run all testing cases by using **Firefox**. Make sure Firefox has been installed.\n - `npm run chrome`: Run all testing case by using **Chrome**. Make sure Chrome has been installed.\n - `npm run selenium-setup`: Install Selenium to your project.\n - `npm run selenium-start`: Startup Selenium manually.\n - `npm run lint`: Run ESLint manually. It will only check project configuration files.\n\n## For Internet Explorer user\nYou must do something extra:\n - Tune off \"Enhanced Protected Mode\" in Internet Explorer \"Option -\u003e Security\" panel for each level if you are using IE 10 and higher.\n - Set your \"Zoom Level\" to 100%.\n\n## File Structure\n```\n\u003e\n|-  build\n|     |- selenium-conf.js     # Selenium and Driver configuration.\n|     |- selenium-setup.js    # Selenium setup function.\n|     |- selenium-start.js    # Selenium startup function.\n|\n|-  reports                   # Testing report.\n|-  tests                     # Testing cases.\n|\n|-  .editorconfig             # Editor Config file to override your editor. You can change or delete it if you hate it :)\n|-  .eslintignore             # ESLint ignoring list. Put everyting that you don't want it to be checked by ESLint here.\n|-  .eslintrc.js              # ESLint configuration.\n|-  nightwatch.json           # Nightwatch configuration file.\n|-  nightwatch.conf.js        # Nightwatch configuration file.\n|-  package.json              # Project configuration.\n|-  Readme.md                 # Introduction.\n|-  startup.js                # Entry file. To call up app.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancercomet%2Faniber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancercomet%2Faniber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancercomet%2Faniber/lists"}