Skip to content
This repository
branch: master

Feb 13, 2014

  1. Timo Tijhof

    Account for mismatch between /browsers and /workers in BrowserStack A…

    …PI v3
    
    * fixWorker: Check for worker.browser.os instead of worker.browser.version because
      - Mobile doesn't have browser version
      - This property was renamed in v3 to browser_version
    * fixWorker: Update property names to v3 versions
    * fixWorker: Fill null values for worker properties missing in /workers from /browsers
    * handleBrowser: Exclude worker.browser property from index due to upstream bug
    
    Fixes #41.
    authored

Jan 27, 2014

  1. Timo Tijhof

    Tag v0.3.0

    authored

Jan 22, 2014

  1. Clark A

    Update LICENSE

    authored
  2. Michał Gołębiowski

    API: Update to BrowserStack API v.3

    The third version of the API is needed for IE11 support.
    authored

Jan 13, 2014

  1. Timo Tijhof

    Map new iPhone and iPad variations to generic ones

    authored

Dec 10, 2013

  1. Timo Tijhof

    spawnWorker: Fix TypeError for this.error undefined

    Forgot to convert this as part of a6417cb.
    authored

Jun 30, 2013

  1. Taylor

    readme: Fix typo in JSON attributes

    Closes #39.
    authored Krinkle committed

Jun 26, 2013

  1. Timo Tijhof

    Enable Travis-CI and fix jshint error

    authored

Nov 23, 2012

  1. Timo Tijhof

    Logging: Log the worker object when termination failed.

    authored

Nov 22, 2012

  1. Timo Tijhof

    Logging: All key-value pairs as JSON and fix colours. Fixes #34.

    In Splunk only the first word of the error message was detected:
    
     action=warning message=Foo bar baz quux info=some_data_here
    
     as action: warning, message: Foo, info: some_data_here
    
    By doing it all as JSON, this is now fixed.
    
    Also, this required fixing #34 at the same time, due to the colour
    codes invalidating the JSON.
    authored
  2. Timo Tijhof

    Logrotate: Order per convention and remove size.

    No need for size, makes it more consistent with the rest.
    authored
  3. Timo Tijhof

    Log: Improve logging of action=terminate

    Instead of just logging the ID, log the entire browser descriptor.
    authored

Nov 21, 2012

  1. Timo Tijhof

    Recommend run-loop 60 instead of 50

    authored
  2. Timo Tijhof

    Logging: Improve error logging.

    Log all errors with 'action=error' and a non-variable 'message'
    property that can be searched for (all variables are in the 'info' property).
    
    Made sure all util.log calls now use the object format.
    There were a few that were logging raw messages, however only
    in methods that were only called from cli.js. So I moved these to
    there to avoid accidental mixup.
    
    Fixed bug where --run-loop output had spurious new lines between
    messages. This was caused by runLoop() using console methods on
    data that was already formatted by console methods in the child
    process. Part of the formatting is ending it in a line break, so
    this happened twice.
    
    This will make it much easier to spot warnings and fatals in
    the logs.
    authored

Nov 16, 2012

  1. Timo Tijhof

    Support wildcards in TestSwarm browserSets.

    Ref: jquery/testswarm:
     [master 2aa7466] BrowserInfo: Implement wildcard system.
    
    Also add mapping in the other direction to cover for lack of
    Windows OS version distinction in browserstack API
    (Windows XP/7/8 -> Windows).
    authored

Nov 15, 2012

  1. Timo Tijhof

    Refactor mapping system to adapt for recent TestSwarm changes.

    The browserSets system has changed in jquery/testswarm. This was
    done to make it possible to make use of OS and devices.
    
    As a side-effect it is now possible to associate a worker browser
    template to a testswarm uaID without needing to manually map them.
    
    I've therefore dropped most of the mapping in favour of automatic
    detection. This should make maintenance a lot easier and allow
    continued use of TestSwarm and testswarm-browserstack without
    needing any changes in the software (all you need is to update
    your local submission settings to include the browsers you want
    to and make sure that you are able to provide those browsers,
    which in this case means BrowserStack supports them).
    
    * No more registering in jquery/testswarm useragents.ini.
    * No more updating map.js in testswarm-browserstack.
    
    Related PR in TestSwarm that this is related to:
    jquery/testswarm#244
    authored

Nov 14, 2012

  1. Clark A

    adding MIT license

    authored
  2. Timo Tijhof

    Log: Fix broken log calls.

    Follows-up: c03a143
    authored
  3. Timo Tijhof

    Lint: Fix warnings introduced in v2 branch.

    map.js: line 264, col 1, Mixed spaces and tabs.
    map.js: line 265, col 1, Mixed spaces and tabs.
    testswarm-browserstack.js: line 145, col 23, Missing space after ':'.
    testswarm-browserstack.js: line 157, col 55, Missing space after 'action=spawnworker error='.
    testswarm-browserstack.js: line 157, col 69, Missing space after ' browser= '.
    testswarm-browserstack.js: line 157, col 70, Missing space after '+'.
    testswarm-browserstack.js: line 157, col 93, Unexpected space after ')'.
    testswarm-browserstack.js: line 163, col 23, Missing space after ':'.
    testswarm-browserstack.js: line 189, col 23, Missing space after ':'.
    testswarm-browserstack.js: line 202, col 23, Missing space after ':'.
    testswarm-browserstack.js: line 279, col 11, Missing space after 'if'.
    testswarm-browserstack.js: line 279, col 27, Missing space after ')'.
    testswarm-browserstack.js: line 292, col 20, Missing space after ':'.
    testswarm-browserstack.js: line 419, col 53, Unexpected space after '('.
    testswarm-browserstack.js: line 443, col 19, Missing semicolon.
    testswarm-browserstack.js: line 155, col 67, 'worker' is defined but never used.
    util.js: line 95, col 19, Missing space after ')'.
    util.js: line 97, col 7, Missing space after 'if'.
    util.js: line 97, col 61, Missing space after ')'.
    util.js: line 100, col 10, Missing semicolon.
    util.js: line 103, col 7, Missing space after 'if'.
    util.js: line 103, col 21, Missing space after ')'.
    util.js: line 104, col 36, Missing semicolon.
    util.js: line 107, col 8, Missing space after 'for'.
    util.js: line 107, col 9, Bad for in variable 'i'.
    util.js: line 107, col 19, Missing space after ')'.
    util.js: line 108, col 13, Too many var statements.
    util.js: line 109, col 11, Missing space after 'if'.
    util.js: line 109, col 32, Missing space after ')'.
    util.js: line 112, col 10, Missing space after 'l'.
    util.js: line 112, col 14, Missing space after 'i'.
    util.js: line 112, col 15, Missing space after '+'.
    util.js: line 112, col 18, Missing space after '='.
    util.js: line 112, col 29, Missing space after '+'.
    util.js: line 115, col 7, Missing space after 'if'.
    util.js: line 115, col 19, Missing space after ')'.
    util.js: line 116, col 21, Expected an assignment or function call and instead saw an expression.
    util.js: line 108, col 28, 'i' is not defined.
    util.js: line 112, col 14, 'i' is not defined.
    util.js: line 2, col 11, 'colors' is defined but never used.
    
    40 errors
    authored
  4. Clark A

    modifying log formatting for better programatic consumption - at the …

    …loss of human readability :(
    authored
  5. Clark A

    Merge pull request #33 from saiwong/api-v2

    Updated to use browserstack v2 API
    authored

Nov 13, 2012

  1. Fixed hashing of workers

    Fixed hashing of workers that was causing workers to not terminate as
    needed.
    authored

Nov 07, 2012

  1. Updated to use browserstack v2 API

    Updated to use the browserstack v2 API to allow for OS specific browser
    workers. Also updated `map.js` to add previously unsupported browsers.
    #19
    authored

Oct 31, 2012

  1. Timo Tijhof

    Add timestamp back in so that logs can be mapped to a time

    authored

Oct 30, 2012

  1. Timo Tijhof

    Update sample-logrotate.conf to match other samples; And use copytrun…

    …cate instead
    authored
  2. Timo Tijhof

    Implement getHash to fix unreliable property order. Fixes #32.

    authored

Oct 05, 2012

  1. Timo Tijhof

    Fix chmod on README.md

    authored
  2. Timo Tijhof

    Improve run to use all UAs regardless of onlineClients.

    Fixes #31.
    authored

Oct 03, 2012

  1. Timo Tijhof

    Rename sample files for consistency.

    authored
  2. Timo Tijhof

    Fix --terminateAll

    terminateWorker now only takes a worker id.
    authored

Sep 29, 2012

  1. Timo Tijhof

    Fix typo, trailing newline, + crontab example

    authored
  2. Timo Tijhof

    run-sample.sh: Add note

    authored
  3. Timo Tijhof

    Major rewrite (version 0.2.0)

    Main script:
    * Most importantly: The main run() and updateBrowsers() methods
      are completely rewritten to fix all known logic problems. Such
      as where it started the wrong browsers or didn't account for
      certain limits and race conditions, and it now has a priority
      formula, which (among other things) takes into account all
      online clients (not just the workers it started). So it starts
      needed browsers while also allowing other instances of this
      script (or other scripts or human users) to join the swarm
      and fill in the needed roles instead.
    
    * Make browserstack client version explicit. v1 at this time,
      as v2's structure is still a bit odd. Maybe they'll change it
      (request has been made). If not, we'll do a minor refactoring
      to support the v2 flow.
    
    * Added method to start a worker by swarm user agent id (e.g.
      "Chrome|22" as opposed to { browser: 'chrome', version: 22 } ).
    
    Cli script:
    * Now uses config.json for most options. It still has a few
      options to activate "verbose" and "dryRun".
    
    * Added a --run-loop option that will execute "run" in a loop
      in child processes.
      Loop will not start if config is invalid. If config becomes
      invalid during the loop the child process will output an error
      message, but the loop will not stop and try again at the next
      interval.
    
    * Actions removed/changes:
      - worker (new: get worker info)
      - spawn (new: start worker by testswarm ua id)
      - dry-run (replacing '--kill' and the old '--run')
      - getNeeded (not needed, info is now part of --verbose)
    
    Misc:
    * Various updates to map.js
    * New code base passes JSHint (see .jshintrc)
    * Updated dependencies in package.json to their latest versions
      and updated code where needed.
    
    References:
    * Fixes #16: "cli: Move defaults to commander declaration"
    * Fixes #17: "stackLimit is enforced wrong (too low)"
    * Fixes #21: "Online workers shouldn't take priority in the loop"
    * Fixes #23: "Implement limit for similar workers"
    * Fixes #26: "Optimize for multiple accounts"
    authored
  4. Timo Tijhof

    Add Firefox 14.0 and fix browserstack ID for Chrome 20.0

    authored

Aug 22, 2012

  1. Clark A

    Merge pull request #27 from Krinkle/2012-uaupdate1

    Add Chrome 20.0 and Opera 12.0
    authored
Something went wrong with that request. Please try again.