Code Monkey home page Code Monkey logo

crab's People

Contributors

cv avatar divoxx avatar x0bandeira avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

crab's Issues

"crab testcase list" / "crab testcase list -P" return all test cases from the project we are logged in, but in some moment it returns a null error

"crab testcase list" / "crab testcase list -P" return all test cases from the project we are logged in, but in some moment it returns an error:
/var/lib/gems/1.8/gems/crab-0.2.8/lib/crab/story.rb:25:in formatted_id': undefined methodformatted_i_d' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:38:in run' from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:37:ineach'
from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:37:in run' from /var/lib/gems/1.8/gems/crab-0.2.8/lib/crab/rally.rb:11:ininitialize'
from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:30:in new' from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:30:inrun'
from /var/lib/gems/1.8/gems/crab-0.2.8/bin/crab-testcase-list:45
from /usr/local/bin/crab-testcase-list:19:in `load'
from /usr/local/bin/crab-testcase-list:19

OS X install doesn't work due to missing dependency on "loader" gem

After "sudo gem install crab" on OS X Yosemite, running crab with any parameter results in:

bmogilefsky-macbp:~ bmogilefsky$ crab -h
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- builder (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api/rest_builder.rb:5:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api/rest_object.rb:2:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api/attribute_definition.rb:1:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api.rb:1:in `block in <top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api.rb:1:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/rally_rest_api-1.1.0/lib/rally_rest_api.rb:1:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/crab-0.2.14/lib/crab.rb:10:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/crab-0.2.14/bin/crab:3:in `<top (required)>'
    from /usr/bin/crab:23:in `load'
    from /usr/bin/crab:23:in `<main>'

After running "sudo gem install builder", this doesn't happen.

So I think that

s.add_dependency 'builder'

...should be added to crab.gemspec.

Manipulate defects

Same as stories, but for defects, which have some different mandatory fields -- some have been customized to particular installations of rally, so beware!

crab testcase create is not working

crab testcase create is not working

When I try to create a new testcase crab returns me this message

camilo@c-ubuntu:~$ crab testcase create US5266 "Testcase to be deleted"
E, [2011-10-05T18:56:56.469629 #11946] ERROR -- crab: Error: Test case name not provided.
Usage: crab testcase [options*]

Available commands:

create Create a new test case in a story
delete Delete an existing test case
find Find test cases
help Show this help text
list List test cases in a story
show Show a test case (and its steps) as a Cucumber scenario
update Update a test case (name, priority, testing method, etc)

 --help, -h:   Show this message

"Crab testcase list -P Critical" isn't filtering (as well as -r and -m)

"Crab testcase list -P Critical" isn't filtering (as well as -r and -m)

Using project X, when I try use some parameter to filter like "crab testcase find -m manual" it is not working.

Return all test cases

It should return just the test cases with method = manual

The same is happening to risk and priority

There's no way to update the name of a test case

In the help say that is possible update the name of a test case (Update a test case (name, priority, testing method, etc), but in there's no parameters to update it:

Usage: crab testcase update [options*]
--priority, -p : Priority (one of: useful important critical (default: important)
--risk, -r : Risk (one of: low medium high) (default: medium)
--method, -m : Method (one of: automated manual) (default: manual)
--type, -t : Type (one of: acceptance functional non-functional performance regression usability) (default: acceptance)
--pre, -e : Pre-conditions (default: N/A)
--post, -o : Post-conditions (default: N/A)
--desc, -d : Description (default: N/A)
--dry, -D: Dry-run (don't change anything)
--help, -h: Show this message

Enhancement: Change status by parameter

I know that the command move is to move forward or back, but it was nice if I could pass the State after the US Number, like this:

Trace:
camilo@c-ubuntu:$ crab story move US5158 Defined
I, [2011-10-03T19:26:09.620888 #10575] INFO -- crab: Getting credentials...
I, [2011-10-03T19:26:09.621188 #10575] INFO -- crab: Connecting to Rally as [email protected]...
I, [2011-10-03T19:26:11.177161 #10575] INFO -- crab: Looking up story with ID US5158 Defined
US5158: Bla bla bla story (defined)
camilo@c-ubuntu:
$ crab story move US5158 Completed
I, [2011-10-03T19:26:48.963299 #10617] INFO -- crab: Getting credentials...
I, [2011-10-03T19:26:48.963602 #10617] INFO -- crab: Connecting to Rally as [email protected]...
I, [2011-10-03T19:26:49.767937 #10617] INFO -- crab: Looking up story with ID US5158 Completed
US5158: Bla bla bla story (in_progress)
camilo@c-ubuntu:~$ crab story move US5158 Defined
I, [2011-10-03T19:27:20.031225 #10645] INFO -- crab: Getting credentials...
I, [2011-10-03T19:27:20.031541 #10645] INFO -- crab: Connecting to Rally as [email protected]...
I, [2011-10-03T19:27:20.967143 #10645] INFO -- crab: Looking up story with ID US5158 Defined
US5158: Bla bla bla story (completed)

Parse html on testcase to scenario conversion

Showing up some div's instead of breaking lines with it

 28   @critical @functional
 29   Scenario: [TC9868] [LAYOUT MATÉRIA] - Ajuste na Barra de Redes Sociais "Compartilhamento"
 30     Exibir barra de redes sociais     <div>Exibir a quantidade de acessos por rede social</div>
 31 
 32 
 33   @critical @functional
 34   Scenario: [TC9869] [LAYOUT MATÉRIA] - Ajuste na Barra de Redes Sociais "Copiar link ABR-IO"
 35     Exibir barra de redes sociais     <div>Exibir a quantidade de acessos por rede social</div>

Grab steps from Pre/Validation/Post-conditions

It's a little easier to grasp if the steps fields are arranged like so:

Pre-condition: Given
Validation: When
Post-condition: Then

Problem is, there are multiple Given/When/Then cases:

Given I am logged in
And I am broke
When I apply for a loan of 4000000
And the branch manager approves it
Then the region manager should receive an alert
And the loan should be denied
And I should see a message "How the hell did you do that?"

And there are interleaved cases:

Given I am logged in
When I go to "My Account"
Then I should see my checkings account balance
When I go to my "Savings"
Then I should see my savings account balance
When ...

Examples are probably contrived, but real cases where this is extremely useful exist...

pull is not very smart

Detect files being moved around
Detect files with different names, but referring to same story

Crab is getting just the first word when we pass an string parameter to update name

Crab is getting just the first word when we pass an string parameter to update name

camilo@c-ubuntu:$ crab story update US5163 -n Camilo Master Story
I, [2011-10-03T19:39:56.855041 #10875] INFO -- crab: Getting credentials...
I, [2011-10-03T19:39:56.855355 #10875] INFO -- crab: Connecting to Rally as [email protected]...
I, [2011-10-03T19:39:57.530219 #10875] INFO -- crab: Looking up story with ID US5163
US5163: Camilo (grooming)
camilo@c-ubuntu:
$ crab story show US5163
I, [2011-10-03T19:40:29.891278 #10882] INFO -- crab: Getting credentials...
I, [2011-10-03T19:40:29.891594 #10882] INFO -- crab: Connecting to Rally as [email protected]...
I, [2011-10-03T19:40:30.531275 #10882] INFO -- crab: Looking up story with ID US5163

language: en

Feature: [US5163] Camilo

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.