Project

General

Profile

Redcase Plugin

Added by mitul gupta about 13 years ago

Hi,
I have installed the redcase plugin on my redmine, but there is only one status option available for me while creating a new issue, so due to this reason i am unable to execute my test cases.

can anybody help me out to resolve this problem ?

Thanks
Mitul


Replies (29)

RE: Redcase Plugin - Added by Ivan Cenov about 13 years ago

Hi,

I have just installed and activated this plugin. It works some way...
My configuration is
Windows XP
Ruby 1.8.7
Rails 2.3.14
Redmine 1.2.1

I was able to activate it and show some of its dialogs. It works but I suspect that not very well -- I looked at the log and saw this:

Processing RedcaseController#update_exelists (for 192.168.2.100 at 2011-09-12 19:14:27) [POST]
  Parameters: {"list"=>{"name"=>"Root", "id"=>"2"}, "project_id"=>"5", "action"=>"update_exelists", "authenticity_token" 
=>"hIWgMUB90bx5szQ6jTdJgznuYiddlKPAQACQwWsV4ng=", "act"=>"delete", "controller"=>"redcase"}
Completed in 156ms (View: 16, DB: 94) | 200 OK [http://walker/redcase/update_exelists?act=delete&project_id=5]
D:/biz/apps/redmine_trunk/vendor/plugins/redcase/app/views/redcase/_management_execution_suites.rhtml:16: warning: Objec
t#id will be deprecated; use Object#object_id
d=5]

Processing RedcaseController#update_exelists2 (for 192.168.2.100 at 2011-09-12 19:14:28) [POST]
  Parameters: {"project_id"=>"5", "action"=>"update_exelists2", "authenticity_token"=>"hIWgMUB90bx5szQ6jTdJgznuYiddlKPAQ
ACQwWsV4ng=", "controller"=>"redcase"}
Completed in 156ms (View: 16, DB: 0) | 200 OK [http://walker/redcase/update_exelists2?project_id=5]

Processing RedcaseController#update_combos (for 192.168.2.100 at 2011-09-12 19:14:28) [POST]
  Parameters: {"project_id"=>"5", "action"=>"update_combos", "authenticity_token"=>"hIWgMUB90bx5szQ6jTdJgznuYiddlKPAQACQ
wWsV4ng=", "environment_id"=>"4", "controller"=>"redcase"}

ActiveRecord::RecordNotFound (Couldn't find ExecutionEnvironment with ID=4):
  vendor/plugins/redcase/app/controllers/redcase_controller.rb:454:in `update_combos'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
  d:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering D:/biz/apps/redmine_trunk/public/404.html (404 Not Found)
I did not make any tests further because I do not know how to work with this plugin. I suspect that this plugin should be tested and upgraded so as to be seamlessly compatible with Redmine 1.2.1+. At first sight it looks good.

Ivan

RE: Redcase Plugin - Added by Ivan Cenov about 13 years ago

When executing some operation in Redcase dialogs I get log out.

RE: Redcase Plugin - Added by mitul gupta about 13 years ago

Hi,

Thanks for the update, but my problem is different!!
I was also able to install redmine plugin successfully but somehow unable to set status of created test case to "Inprogress" from the drop down list of status. I can only see one status in my drop down i.e "Open".
So just wanted to understand that is there any setting changes required to configure this or any installation problem ?

Please let me know the solution for this

RE: Redcase Plugin - Added by Ivan Cenov about 13 years ago

Did you set tracker to 'Test case' ?

RE: Redcase Plugin - Added by mitul gupta about 13 years ago

Yes, I set the tracker as test case but in status drop down only one option is there i.e "open"

Please find the screen shot attached for better understanding about the problem.

Thanks
Mitul

RE: Redcase Plugin - Added by Ivan Cenov about 13 years ago

Hmm, I don't know....

The statuses in my installation are New, In progress, Obsolete, Obsoleted...

Try with totally uninstalling it and then installing it again.

I think that this plugin should be reviewed by its authors and made compatible with Redmine 1.2.1...

RE: Redcase Plugin - Added by mitul gupta about 13 years ago

thanks, i try to do the same

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

Hi,
I have installed redcase plugin version: 1.0 alpha 0.144.
I have set permissions for my role and added test case tracker for my project.
I can add test cases but when go to the Test Cases tab I can not see the tree.!!
Tried Firefox, Cheome, Opera, IE.
See attached.
Any help would be appreciated...

re.png (24.5 KB) re.png

RE: Redcase Plugin - Added by mitul gupta about 13 years ago

Hi, Please select status of test case as "in progress" while creating a test case,then only u will be able to add the test case for execution.

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

Thanks Mitul,

I still can not see the tree even if all tests are "in progress", and all have a target version. It is just empty...

More info that may shed some light on this issue -
1. I run Redmine on apache2 on Ubuntu
2. In "Test Cases" - "Management" tab - whenever I click add/save/delete in both "Test suites" and "Environment" the "Loading" is stuck, but the operation seems to work. see attached.
3. in "Report" tab Test_spec Full_rep buttons work fine.

Any idea why I cant see the tree?

re2.png (19.2 KB) re2.png

RE: Redcase Plugin - Added by mitul gupta about 13 years ago

I guess, there is some problem in installation, as tree will be displayed by default even if u don't have any test cases at all. check the screen shot attached, it should look like this after successful installation.
May be u should give a try after re installing

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

I tried re-installing yesterday.
I unpacked redcase package I downloaded on my windows machine and transfered the directory using winscp to root@vm-server:/usr/share/redmine/vendor/plugins

I then ran the command rake db:migrate_plugins RAILS_ENV=production and then restarted apache2

Do you see any flaw in this?
what browsers do you use?
can you please share a link for a confirmed working package?

Again - thanks!

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

Solution found by one of my colleagues -
we had to copy the content of /usr/share/redmine/vendor/plugins/redcase/assets/ into /usr/share/redmine/public/plugin_assets/redcase
now it works and I see the tree.

RE: Redcase Plugin - Added by Terence Mill about 13 years ago

The idea is really good, but its not useable right now. Should be more configurable for custom fields and a sum of all time records for the test execution. If test execution fails the test description shalle be copied to a new issue as bug report. Test execution should be scheduled as task with a tester assigned to this task.

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

When dragging test cases to test suits I get logged out from Redmine. I saw others have this issue as well.
Anyone knows about a solution?

Also - does someone knows how to select more than one test cases and drag them?

RE: Redcase Plugin - Added by Terence Mill about 13 years ago

Is there any bug tracker for this project?
A plugin for redmine but without tracker, very ironic!

RE: Redcase Plugin - Added by Neil Thompson about 13 years ago

NULL Ziv Shenhav

We encountered the same issue of being logged out of Redmine after performing an edit in Redcase (e.g. moving tests cases into test suites, saving an execution result etc).

We tested it out on Windows/IIS7 and Ubuntu/Apache Redmine systems using a few different browsers (IE8, Firefox and chrome) and encountered the problem on all configurations.

However we did find a work around. When you log into Redmine tick “Stay logged in” and the problem goes away. If you don’t see the “Stay logged in” tick box on the login screen enable it by going to Administration/settings/authentication in your Redmine website and changing “Autologin” to anything except Disabled.

Hope this helps.

RE: Redcase Plugin - Added by Ziv Shenhav about 13 years ago

Neil Stockbridge Thompson,
your workaround works. thank you.

RE: Redcase Plugin - Added by Yecine Yecine almost 13 years ago

Neil Stockbridge Thompson

I have tried you workaround and even if i tick stay connected

I have a popup asking for my username and password each time i change something and it never get set, then if i load another page i am logged out ...

Do you have another suggestion ?

RE: Redcase Plugin - Added by Neil Thompson almost 13 years ago

@Yecine Yecine

I haven't encountered this problem but it sounds to me that you have an additional security permissions problem with the webserver hosting Redmine. Probably related to the fact that the Redcase plugin uses AJAX calls (rather than a normal POST) to update the database everytime you change something via drag and drop.

The only thing I can suggest is to debug your system using a tool like Fiddler (to check the web requests) and Process Monitor (to check the security permissions) (Both Windows tools I'm not a Linux expert).

Hopefully if you clear up this problem the work around will work.

Sorry I can't be more help.

RE: Redcase Plugin - Added by Terence Mill almost 13 years ago

We have similar problem with plugin PluginStuffToDo.
Either it is some ajax+cookie problem or an ajax+rest problem.

RE: Redcase Plugin - Added by dagobert dagobert almost 13 years ago

Hi,
sorry for my beginner's english.

i have made several changes in redcase (Pluglin version: 1.0 alpha 0.144)
to work redcase with BitNami Redmine 1.3.0-1 virtual appliance.
(Redmine to 1.3.0 / Rails to 2.3.14) List of installed Plugins:
Contacts plugin 2.2.2-light, Redmine Fields Permissions Plugin 1.0.0, Redmine Silencer plugin 0.0.1, redcase 1.0 alpha 0.144

Unfortunately, i don't know, how to do the changes on a central place. So i have to do it on every place.
The following changes and enhancements are required in redcase script.js:

X-CSRF-Token:

change every command of

conn = new Ext.data.Connection();

to
conn = new Ext.data.Connection();
var csrf = Ext.select("meta[name='csrf-token']").first();
Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')});
conn.defaultHeaders = Ext.apply(conn.defaultHeaders || {}, {'X-CSRF-Token': csrf.getAttribute('content')});

Reason -> see weblog .rubyonrails .org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails

Further I inserted some changes to deal with multiple languages

Who has an good ideas / solution for following research questions:

1. Translation in script.js

translation of the header in exection / history-table
function getHistory(rs)

txt += "<tr style='font-weight: bold; background-color: #eeeeee'><td>date</td><td>result</td><...

2. Filter of obsoleted Records in redcase_controller.rb

function: def get_graph_core(version_id, environment_id)
How to filter the relevant data / records
=> in my opinion, only the records with status "In Process" are relevant data.

Is there any continue in development of redcase?

patch_scripts_js.diff (9.01 KB) patch_scripts_js.diff only csrf-protection-bypass
patch_all.diff (25.8 KB) patch_all.diff all diff, include multiple languages

RE: Redcase Plugin - Added by Romain E SILVA almost 13 years ago

I can't answer you about redcase, but for Redmine Fields Permission you need to upgrade the plugin if you're on redmine 1.3.0 :)

RE: Redcase Plugin - Added by dagobert dagobert almost 13 years ago

Romain Troche E SILVA
thank you very much for the hint

RE: Redcase Plugin - Added by Romain E SILVA almost 13 years ago

No probs hope you've fixed your issues and have a redmine run like you want ;)

(1-25/29)