GithubHelp home page GithubHelp logo

thebrainfamily / chimpy Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 28.0 5.26 MB

Develop acceptance tests & end-to-end tests with realtime feedback.

Home Page: https://thebrainfamily.github.io/chimpy

License: MIT License

JavaScript 99.07% Gherkin 0.39% HTML 0.05% Shell 0.50%

chimpy's People

Contributors

alanning avatar boda2004 avatar brucejo75 avatar dheerajbhaskar avatar dominikguzei avatar dweller23 avatar ejfrancis avatar gitter-badger avatar gregorskii avatar iksinski avatar joscha avatar josh-a-e avatar kaiserk avatar lgandecki avatar lucetius avatar marsimeau avatar mikecentiq avatar mnaughto avatar piamancini avatar rcywinski avatar rhyslbw avatar samhatoum avatar sanjo avatar sanjosolutions avatar sbacic avatar sirphoenix avatar snyk-community avatar stephendavidson avatar sudsy avatar twilczek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chimpy's Issues

TypeError: Cannot read property 'value' of undefined

Issue by thiagodelgado111
Friday Jul 29, 2016 at 19:25 GMT
Originally opened as xolvio/chimp#436


Expected behaviour

Step definition runs without throwing while trying to set values, click, submit forms and wait for given conditional statements.

Actual behaviour

An error is thrown intermitently

Steps to reproduce the problem

Cannot isolate the problem since it happens intermitently :(. This is the definition of the step where the problem occurs.

// Registration step 1
client.waitForExist('[hook="register-form"]');
client.setValue('[hook="email-address"]', userEmail);
client.submitForm('[hook="register-form"]');

client.waitForExist('[hook="register-form"]');
client.setValue('[hook="first-name"]', 'John');
client.setValue('[hook="last-name"]', 'Doe');
client.setValue('[hook="username"]', 'john_doe');
client.submitForm('[hook="register-form"]');

client.waitForExist('[hook="register-form"]');
client.setValue('[hook="password"]', 'userpassword');
client.submitForm('[hook="register-form"]');
expect(client.getText('[hook="success-message"]')).not.toBe('');
client.click('[hook="success-message"]');

client.waitUntil(function () {
  return !client.isVisible('[hook="success-message"]');
});
Used version
  • Chimp: 0.36.1
  • Node.js: v5.5
  • Operation system: Ubuntu LTS
Console / Log Output

https://gist.github.com/thiagodelgado111/561e1e00b2424fe58a0adb7bf41df6cf

I think that some error is being thrown somewhere on my code and then when chimp tries to report the error, something happens

[Meteor] global server variable not global to mocha files

Issue by brucejo75
Friday Apr 29, 2016 at 04:56 GMT
Originally opened as xolvio/chimp#355


I am trying to use the server global to initialize data for all of my tests outside of an it block. This becomes quite useful if you use a data pattern to create the tests. My example is to get the users DB and create a test to verify each user.

Is there some reason why server is only available in an it block? It took me 3-4 hrs to realize this limitation when I first started to use chimp.

Plus I am unable to create any sort of workaround. Frustrating.

Thanks!

Expected behaviour

I expect to be able to reference the global server variable in any scope within a mocha file. It is global after all.

Actual behaviour

The global servervariable is only defined within a test (it block).

Steps to reproduce the problem

try to use the global server variable outside of an it block and you will find it is undefined.

Used version
  • Chimp: 0.33.1
  • Node.js: v5.8.0
  • Operation system: Windows 10
  • Meteor: 1.3.2.4
Console / Log Output

N/A

Be less sensitive to closed windows / stale browser sessions

Issue by DominikGuzei
Sunday Sep 27, 2015 at 12:17 GMT
Originally opened as xolvio/chimp#78


Hey there!
Just wanted to point a problem that i am running into a lot when working with services like Facebook that use pop-ups etc. Chimp currently is really sensitive to browser windows not being closed "correctly" etc. which is kind of annoying when you try to setup a tab-switching workflow in your tests.

To try it, just run some tests and close the browser window by hand in the middle of anything. Chimp will completely freak out and not restart anymore. IMO it should not care at all – just stop the current test run and wait for the next file change to be there for you 😉

Here is one of the logs from such an error where i have to completely restart the test-server afterwards:

[chimp][hooks] BeforeFeatures hook had error
{ [Error: Window not found. The browser window may have been closed.
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Macintosh.local', ip: '25.174.89.152', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0_60'
Driver info: driver.version: unknown]
  message: 'Window not found. The browser window may have been closed.\nBuild info: version: \'2.47.1\', revision: \'411b314\', time: \'2015-07-30 03:03:16\'\nSystem info: host: \'Macintosh.local\', ip: \'25.174.89.152\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.5\', java.version: \'1.8.0_60\'\nDriver info: driver.version: unknown',
  type: 'RuntimeError' }
Error: Window not found. The browser window may have been closed.
  at Object.Future.wait (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/fibers/future.js:420:15)
  at Object.timeoutsAsyncScriptSync (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/xolvio-fiber-utils/index.js:48:19)
  at initBrowser (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/hooks.js:91:15)
  at /Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/hooks.js:119:7
  at /Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumber-wrapper.js:116:43

    - - - - -
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Macintosh.local', ip: '25.174.89.152', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0_60'
Driver info: driver.version: unknown
  at new ErrorHandler.RuntimeError (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/lib/utils/ErrorHandler.js:92:12)
  at RequestHandler.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/lib/utils/RequestHandler.js:138:25)
  at Request.self.callback (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:373:22)
  at Request.emit (events.js:98:17)
  at Request.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:1318:14)
  at Request.emit (events.js:117:20)
  at IncomingMessage.<anonymous> (/Users/dominik/.meteor/packages/xolvio_cucumber/.0.14.1.1kokaqw++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/chimp/node_modules/xolvio-sync-webdriverio/node_modules/webdriverio/node_modules/request/request.js:1266:12)
  at IncomingMessage.emit (events.js:117:20)
  at _stream_readable.js:944:16
  at process._tickDomainCallback (node.js:492:13)

[chimp] Finished running async processes with errors
[chimp] run complete with errors Cucumber steps failed
[chimp] Could not get Cucumber Results from run result:
[ undefined, [ null ] ]
[xolvio:cucumber] Bad response from Chimp server.
{ statusCode: 200,
  content: '',
  headers: 
   { 'content-type': 'application/json; charset=utf-8',
     'cache-control': 'no-cache',
     'content-length': '0',
     date: 'Sun, 27 Sep 2015 12:09:36 GMT',
     connection: 'keep-alive' },
  data: null }

chimp will load despite improperly formed config file

Issue by PierreCBSI
Thursday Apr 28, 2016 at 18:09 GMT
Originally opened as xolvio/chimp#354


Expected behaviour

Config file should raise a warning if improperly formatted config is passed

Actual behaviour

It seems the config file is loading, but defaults are actually loaded

Steps to reproduce the problem

in the directory you run chimp from, create a chimp.js file.

in it, copy the following text:

browser='firefox'

(note: using --browser='firefox' would throw out errors)
Launch chimp from the dir the file is saved as, note that the browser used is chrome and not firefox.

Used version
  • Chimp: 0.33.1
  • Node.js: 4.2.6
  • Operation system: osx
Console / Log Output

Cucumber hooks cannot use the driver on 0.34.1

Issue by jmflaherty
Tuesday May 10, 2016 at 19:38 GMT
Originally opened as xolvio/chimp#371


Expected behaviour

Cucumber hooks are able to interact with the driver without an issue.

Actual behaviour

On Chimp 0.34.1 the Cucumber hooks cannot use the driver, as in

var myHooks = function () {
    this.Before(function () {
        driver.windowHandleMaximize([driver.windowHandle]);
    });

    this.After(function () {
        driver.deleteCookie();
    });
};
module.exports = myHooks;

Showing the following error when executed.

Before                                      # features\steps\hooks.js:4
  Error: Couldn't connect to selenium server
Steps to reproduce the problem

Clone /master from my repo,
run 'npm install',
then execute it with './node_modules/chimp/bin/chimp.js config-chimp.js'.

Used version
  • Chimp: 0.34.1
  • Node.js: 5.11.1
  • Operation system: Windows 10
Extra info and comments

This same code works perfectly with Chimp 0.30.0. I'll try to find which version introduced the bug.
Back on 0.34.1 the hooks themselves seems to work, but they fail only when the driver is called. If you comment/delete the lines that uses it the hooks run without errors.
I've used hooks in previous projects with older Chimp versions and I've never had any kind of issue. This is the first time.

https://www.npmjs.com/package/cucumber#hooks

Thanks!

Long gherkin lines = screenshot crashes chimp due to filename too long

Issue by ShockiTV
Monday May 23, 2016 at 09:55 GMT
Originally opened as xolvio/chimp#386


Expected behaviour

Chimp should shorten screenshot filenames to prevent whole chimp crashing on I/O for reaching filename filesystem limit

Actual behaviour

Chimp crash when you put too long Gherkin line on which step fail - app try to save screenshot with too long name
Our management requested SQL queries without special formatting to be part of Gherkin

Steps to reproduce the problem

(Preferably a repository and easy reproduction steps)

Used version
  • Chimp:
  • Node.js:
  • Operation system:
Console / Log Output

(Upload long logs to Gist and link it here)

--watchSource could allow relative unix file paths

Issue by shrop
Thursday Dec 10, 2015 at 10:12 GMT
Originally opened as xolvio/chimp#186


--watchSource seems to on accept absolute unix file paths, but also supporting relative paths could be really nice. Low priority. Seems like if this one if figured out, could be used for other file path based chimp CLI switches.

How to run setup file before all tests

Issue by joshhunt
Tuesday Apr 12, 2016 at 23:15 GMT
Originally opened as xolvio/chimp#332


Mocha has the 'require' option which allows you to run a setup file before all the tests are even required. We take this opportunity to set up some global variables and functions, which are required for the tests to be required properly.

I noticed that chimp has a similar option --require, however it does not load this file before it loads the others. I put some very basic console.log at the top of key files, which shows the order

$ chimp test/functional/chimp.js --require test/functional/setup.js --path=test/functional --mocha --browser=firefox

[chimp] Running...
modules/navigation.spec.js
features/navigation.spec.js
utils/setup.js

Because setup.js was required after our test cases, the test cases will fail to load properly because they don't have the globals set up yet.

Am I using the --require option correctly, or is there another option to do what we need?

Local config file to open chrom with multiple flags

Issue by DanielGJohnsen
Thursday Aug 11, 2016 at 07:58 GMT
Originally opened as xolvio/chimp#445


Can anyone provide an example of how i can run chrome with multiple arguments from passing a chimp-config.js file as argument.
In the default config, it read the selenium section, but no matter what i write in webdriver-io section, chimp does not use it. How can i write a local config file to start chrome with multiple arguments?

It's not possible to pass in the browserstack.debug=true input capability for browserstack sessions

Issue by Mylab6
Tuesday Apr 05, 2016 at 21:21 GMT
Originally opened as xolvio/chimp#326


  • Browserstack
  • Expected behaviour: It should be possible to pass in browserstack.debug = true ( needed to enable screenshots on browserstack)
  • Actual behaviour: It's not possible
  1. Open chimp/lib/chimp-helper.js
  2. Notice around line 132 the session manager lacks any code to set the browserstack.debug capability

Chimp 0.25.1 , node v5.4.1

NOTE: For now I've simply hard coded browserstack.debug to be true in chimp-helper.js , but it would be nice if this was fixed in a future release.

BrowserStack and Sauce Labs session-managers

Issue by dehamilton
Tuesday Sep 08, 2015 at 20:34 GMT
Originally opened as xolvio/chimp#69


Are there any plans to add logic to the session-manager so that non-localhost sessions would be properly closed out?

For example, when I run a Sauce Labs session, the session will eventually just timeout and that shows as a failed test - at least in the bit that I've been playing with things. BrowserStack at least shows it as a "timeout" status.

Phantom, HTTPS, and reports

Issue by sgrover
Thursday Oct 22, 2015 at 15:59 GMT
Originally opened as xolvio/chimp#130


I have two issues I'm looking for help/guideance on. I've checked the documentation and Google but am not finding the right info yet.

  1. How do I generate an HTML report? If I set the command line "format" option to html (i.e. --format=html), I am getting errors. It looks like the html formatter is not available with a standard chimp install. Is there another package I need or a trick I'm not aware of? The goal is to provide a summary report that can be used for trend analysis. (My reporting knowledge may not be adequate here...)
  2. When I set my browser to phantomjs, none of my pages are loading. The site is using HTTPS. Google tells me there are some options to pass to phantom (ignore-ssl-errors, ssl-protocol=any), but I do not see a way to tell Chimp to pass those arguments. Including them on the command line does not make any difference.

So, I'm looking for some guidance on how/where to change the configuration that Chimp uses to talk with Phantom and Cucumber.

Thanks for any tips/links/suggestions. (still learning my way around the Node way of doing things!)

Use Custom Snippet for Unimplemented file name suggestion

Issue by xywang68
Friday Sep 02, 2016 at 21:17 GMT
Originally opened as xolvio/chimp#464


Back in 0.35.0 chimp will suggest a file name and print a skeleton file for the steps that are missing.
i.e.:

// Recommended filename: When_I_search_and_open_the_test_portfolio.js
module.exports = function() {
  this.When(/^I search and open the test portfolio$/, function () {
    // Write the automation code here
    pending();
  });
};

This feature seems to be missing in 0.40.4.
Now it becomes:

   Message:
     Undefined. Implement with the following snippet:
   this.When(/^I search and open the test portfolioe$/, function (callback) {
     // Write code here that turns the phrase above into concrete actions
     callback(null, 'pending');
   });

Is this an intended change and why? or is it a configurable setting? I think the original feature is very nice and I would like to get it back.

local chimp is erroring on missing selenium jar

Issue by legacyWork
Monday Jun 13, 2016 at 21:57 GMT
Originally opened as xolvio/chimp#397


Expected behaviour

No errors

Actual behaviour
Steps to reproduce the problem

./node_modules/.bin/chimp

[chimp] Running...
selenium-standalone installation [=================== ] 97% 0.1s[Error: Missing /Users/myUser/AUTOMATION/AutomationDev/javascript_ui_test/node_modules/chimp/node_modules/selenium-standalone/.selenium/selenium-server/2.50.1-server.jar](Preferably a repository and easy reproduction steps)

Used version
  • Chimp:
  • Node.js:
  • Operation system:
Console / Log Output

(Upload long logs to Gist and link it here)


Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

Noisy debug

Issue by zvictor
Tuesday Jun 14, 2016 at 14:19 GMT
Originally opened as xolvio/chimp#399


Expected behaviour

To have the possibility of using chimp in debug mode but still be able to suppress excessive logging e.g. by setting --log=silent.

Actual behaviour

Debug mode forces logging into debug mode as well.

// src/lib/log.js:15

if (debug) {
  log.setLevel('debug');
} else {
  log.setLevel(argv.log);
}

Add appium support

Issue by samhatoum
Saturday Jul 11, 2015 at 21:28 GMT
Originally opened as xolvio/chimp#33


Just like Selenium but Appium

  • Should auto download Appium
  • Should auto download Android simulator (or intelligently give instructions to in console like Meteor)
  • Should auto download iOS simulator (or intelligently give instructions to in console like Meteor)
  • Should run Appium and connect cucumberjs + webdriver to it

Also see if calaba.sh can be used here

Support Sync WebdriverCSS

Issue by nichite
Thursday Jan 21, 2016 at 23:06 GMT
Originally opened as xolvio/chimp#236


The feature of wrapping asynchronous methods with wrapAsync doesn't seem to work properly on the webdrivercss command for taking css diff screenshots. The call to the function looks like this:

browser.webdrivercss('body', {
          name: 'body',
          elem: 'body'
        }, function (err, res){
          assert.ifError(err);
          assert.ok(res.body.isWithinMisMatchTolerance);
        });

It looks to be in the standard style where the last argument is a cb that takes err, res as arguments. According to what I've read, wrapAsync should be able to handle this.

I've wrapped the function to be synchronous like this:

var cssSync = wrapAsync(browser.webdrivercss);

var res = cssSync('body', {
    name: 'body',
    elem: 'body'
  });

assert.ok(res.body.isWithinMisMatchTolerance);

Still, whenever I run this I get the error: Can't wait without a fiber.

I've also tried passing in browser or this as contexts, just in case. No dice.

Thoughts?

How to install ``chai-string`` Matchers?

Issue by thebarty
Thursday May 19, 2016 at 06:38 GMT
Originally opened as xolvio/chimp#381


Hi guys,

I'd love to use chai-string-Matchers, in order to do something like

// chai string is cool (!!)
expect('abcdef').to.startWith('abc');

// which is much better than using underscore.string
// expect(s.startsWith('abcdef', 'abc')).to.be.true

A simple npm install --save-dev chai-string did NOT work for me...

Any ideas how to make this work with chimp?

How to use with saucelabs with chimp?

Issue by ghost
Tuesday Aug 30, 2016 at 08:31 GMT
Originally opened as xolvio/chimp#456


Hi!

I am relatively new to Chimp and super new to saucelabs. I have trouble connecting to sauce labs.
By now I got a minimal test running locally (and it passes).
But when trying to connect to sauce labs, the test fails:
An element could not be located on the page using the given search parameters.

Is there any resource that could walk me through how to set up chimp and sauce labs to correctly work with each other?

best way to pass custom config settings to chimp?

Issue by gesweind
Tuesday Apr 12, 2016 at 15:42 GMT
Originally opened as xolvio/chimp#331


I am a chimp newb, so bear with me. I would like to be able to put my own config settings (for example a backend service URL that I need to hit before testing) in the chimp config file. Is there a clean way to do this so that I can access these settings within my tests?

Add support for Tape

Issue by alexbardas
Wednesday Jun 01, 2016 at 09:50 GMT
Originally opened as xolvio/chimp#391


Expected behaviour

Able to use Tape for writing e2e tests.

Actual behaviour

Tape is one of the simplest and best testing frameworks, should probably be officially supported.


Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

ignore screenshots when using --watch

Issue by shrop
Wednesday Dec 16, 2015 at 11:30 GMT
Originally opened as xolvio/chimp#197


Example chimp command line: $ chimp --watch --watchSource=<meteor-app-root> --screenshotsOnError=true --ddp=http://localhost:3000

When running the above, chimp will go into a loop and continue to rerun all tests because it detects that screenshots are being added to <meteor-app-root>/tests/cucumber/.

More or less thinking this through out loud. The best way to prevent may be to set a path for screenshots outside of the app source tree. An alternative is to run chimp without --watch mode.

Another option is to ignore png files in tests folders when watching.

Thoughts? thanks!

Support loading config from package.json

Issue by samhatoum
Tuesday Feb 16, 2016 at 07:47 GMT
Originally opened as xolvio/chimp#280


This is a good idea for frameworks like Meteor

Requested here: meteor/todos#15

Another option to use a config file with Meteor is to put the config file under .config/chimp.js so that Meteor ignores the dot directory, then pass the file to Chimp as the first param, like this:

chimp .config/chimp.json <other options>

CoffeeScript support for Mocha files

Issue by laurentpayot
Tuesday Apr 26, 2016 at 12:02 GMT
Originally opened as xolvio/chimp#346


I'm aware of #257 for Cucumber files but I couldn't make Chimp detect my .coffee files with --coffee or --compiler=coffee:whatever options. I use Mocha, and .js test files are detected and work fine.
Here is my command line (I'm using Meteor with Webpack):

./node_modules/.bin/chimp --ddp=http://localhost:3000 --mocha --path=src/tests

CoffeeScript support would be greatly appreciated.

Used version
  • Chimp: 0.33.0
  • Node.js: 5.11.0
  • Operation system: Ubuntu Desktop 16.04

Documentation improvement -- Full Continuous Integration Support

Issue by jirikrepl
Thursday Mar 24, 2016 at 11:12 GMT
Originally opened as xolvio/chimp#316


Hello Xolvio,
I want run Meteor and Chimp at Codeship

I done settings https://chimp.readme.io/#section--full-continuous-integration-support-
in this way
http://stackoverflow.com/questions/36198667/run-meteor-tests-with-chimp-at-codeship-ci

But how can you get images of failed tests?
https://chimp.readme.io/#section--full-continuous-integration-support-

Thanks a lot

cucumber step timing out does not enforce immediate moving on to next step

Issue by PierreCBSI
Wednesday Aug 31, 2016 at 18:36 GMT
Originally opened as xolvio/chimp#458


Expected behaviour

Setting the cucumber step timeout to some low threshold should have steps fail within expected timeframe, and immediately proceed to the next step in the scenario.

Actual behaviour

Setting the cucumber step timeout to some low threshold has the step (apparently) timeout in chimp/console, but codeblock from the timed-out step appear to continue via webdriverio/console output (console.log() showing up from old steps, browser.url() being sent to chromedriver....)

Steps to reproduce the problem
  1. Manually set the cucumber step timeout to some artificially low threshold (set in /usr/local/lib/node_modules/chimp/node_modules/cucumber/lib/cucumber/support_code/step_definition.js, search for "timeout")

  2. launch chimp with multiple steps.

  3. observe that some of the steps appear to timeout as expected while others will display weird behaviors such as step 3 console.log() observed during the execution of step 8, or chromedriver jumping from step 10 browser.url() call to a (timed out) step 4, before going back to step 11...

following modified code should work to expose the issue:

/features/my.feature:


Feature: Verify Bug
 @watch
Scenario Outline: validate bug
    When I navigate to  <Url>
Examples:
| Url | 
| http://www.cbs.com/shows/american-gothic/  | 
| http://www.cbs.com/shows/beauty-and-the-beast/  |  
| http://www.cbs.com/shows/blue_bloods/ |
| http://www.cbs.com/shows/braindead/  |  
| http://www.cbs.com/shows/bull/  |  
| http://www.cbs.com/shows/code-black/  | 
| http://www.cbs.com/shows/criminal_minds/  |
| http://www.cbs.com/shows/criminal-minds-beyond-borders/  | 
| http://www.cbs.com/shows/csi/  |  
| http://www.cbs.com/shows/csi-miami/  |  
| http://www.cbs.com/shows/doubt/  |
| http://www.cbs.com/shows/elementary/  | 
| http://www.cbs.com/shows/extant/  | 
| http://www.cbs.com/shows/flashpoint/  | 
| http://www.cbs.com/shows/the-game/  |
| http://www.cbs.com/shows/ghost-whisperer/  | 
| http://www.cbs.com/shows/the_good_wife/  | 
| http://www.cbs.com/shows/the-guardian/  | 
| http://www.cbs.com/shows/hawaii_five_0/  | 

/features/support/my.js:

module.exports = function() {
this.When(/^I/^I navigate to (.*)$/, function(myURL) {
    var  start = new Date().getTime();  
       console.log("!!**** " + start);
       browser.url(myURL);
       var duration = new Date().getTime() - start;
       console.log(" ~~ " + browser.getTitle() +  " ** " + duration + "*****"); 
       browser.url("About:blank");
});
}
Used version
  • Chimp: 0.39.3 / 0.40.4
  • Node.js: 5.11.1
  • Operation system: Ubuntu 16.04
Console / Log Output

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

chimp.version is overloaded

Issue by dankelleher
Wednesday Aug 03, 2016 at 19:29 GMT
Originally opened as xolvio/chimp#439


Expected behaviour

When using selenium and browserStack, I can set the browser version on the command line like this:

chimp --host="hub.browserstack.com" --port=80 --key=“XXX” --user=“XXX” --name=“tests” --ddp=http://www.my-url.com:80 --browser=ie --platform=WIN8 --version=11

See chimp-helper.js line: version: parseNullableString(process.env['chimp.version']),

Actual behaviour

if I have --version on the command line, chimp just prints the version
0.38.0

Steps to reproduce the problem

Make a request to browserstack like so: (fill in a valid key, username and url)
chimp --host="hub.browserstack.com" --port=80 --key=“XXX” --user=“XXX” --name=“tests” --ddp=http://www.my-url.com:80 --browser=ie --platform=WIN8 --version=11

Used version
  • Chimp: 0.38.0
  • Node.js:v4.4.1
  • Operation system: OSX El Capitan
Console / Log Output

(Upload long logs to Gist and link it here)


Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

Run chimp with multiple path args

Issue by DanielGJohnsen
Wednesday Sep 21, 2016 at 13:58 GMT
Originally opened as xolvio/chimp#477


I am running integration testing and have scenarios which are connected. They are in separate features folders, and need to be executed in order.
Is there a way to make the --path handle multiple arguments based on the order they are in?
I.e chimp --path="scenario-1 scenario-2".

Documentation bug

Issue by legacyWork
Tuesday Jun 14, 2016 at 00:21 GMT
Originally opened as xolvio/chimp#398


Expected behaviour

https://www.npmjs.com/package/chimp

talks about some chimp.js file in a bin folder (Usage in a gulp task). This file does not exist anywhere. In fact the whole gulp process for chimp does not work as described. It is related to the earlier bug I filed (which i manually fixed by going into some deep dive node_modules config file and changing a number to 2.53.0)

/Users/myUser/AUTOMATION/AutomationDev/javascript_ui_test/node_modules/chimp/lib/cucumberjs/cucumber.js:239
if (features.indexOf(',') !== -1) {
^

TypeError: Cannot read property 'indexOf' of undefined

Actual behaviour
Steps to reproduce the problem

(Preferably a repository and easy reproduction steps)

Used version
  • Chimp:
  • Node.js:
  • Operation system:
Console / Log Output

(Upload long logs to Gist and link it here)


Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

Add appium support

Issue by samhatoum
Saturday Jul 11, 2015 at 21:28 GMT
Originally opened as xolvio/chimp#33


Just like Selenium but Appium

  • Should auto download Appium
  • Should auto download Android simulator (or intelligently give instructions to in console like Meteor)
  • Should auto download iOS simulator (or intelligently give instructions to in console like Meteor)
  • Should run Appium and connect cucumberjs + webdriver to it

Also see if calaba.sh can be used here

Add appium support

Issue by samhatoum
Saturday Jul 11, 2015 at 21:28 GMT
Originally opened as xolvio/chimp#33


Just like Selenium but Appium

  • Should auto download Appium
  • Should auto download Android simulator (or intelligently give instructions to in console like Meteor)
  • Should auto download iOS simulator (or intelligently give instructions to in console like Meteor)
  • Should run Appium and connect cucumberjs + webdriver to it

Also see if calaba.sh can be used here

Forked version of cucumber-js is causing issue to use chimp.js as enterprise (private) npm repository

Issue by dilipkumar2k6
Tuesday May 31, 2016 at 20:24 GMT
Originally opened as xolvio/chimp#390


Expected behaviour

Use chimp.js in enterprise npm repository

Actual behaviour

Not able to use chimp.js in enterprise npm repository because cucumber is used as forked version as below
"cucumber": "xolvio/cucumber-js#v0.9.4-chimp.3",
Since enterprise NPM repo doesn't have connectivity to github.com therefore it fails here.

Steps to reproduce the problem
  1. Setup local npm repo
  2. Publish chimp.js and its dependencies in the local repo
  3. Block connectivity to github.com
  4. Try to install chimp.js using local npm repo
    Issue: It fails to install due to dependency on xolvio/cucumber-js#v0.9.4-chimp.3 hosting on github.com
Used version
  • Chimp: 0.35.0
  • Node.js: 4.4.1
  • Operation system: MAC
Console / Log Output
npm ERR! Command failed: git clone --template=/Users/REDACTED/.npm/_git-remotes/_templates --mirror [email protected]:xolvio/cucumber-js.git /Users/REDACTED/.npm/_git-remotes/git-github-com-xolvio-cucumber-js-git-ac9d35ff
npm ERR! Cloning into bare repository '/Users/REDACTED/.npm/_git-remotes/git-github-com-xolvio-cucumber-js-git-ac9d35ff'...
npm ERR! ssh_exchange_identification: Connection closed by remote host
npm ERR! fatal: Could not read from remote repository.
What I see as possible solution

Can we take any of following approach?

  1. Can we do pull request for changes in cucumber-js needed by chimp.js in cucumber-js repository?
  2. If option 1 is not possible, can we publish forked copy of cucumber-js as chimp-cucumber-js and use this?

Please let me know if I have any other options to solve this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.