Rally Tool - API -
we have used qc tool till now, start using rally tool.
as qc system of testing results, used extract data using macro designed based on api's.
now time has come work on rally , design such tool. me understand how connect rally , extract data in excel format using programming language(especially vb script). first interest find out whether rally has api's qc used have, connecting , extracting data it?
#!/usr/bin/env ruby # ruby script print out names of workspaces user has access to. # more api info: https://github.com/rallytools/rallyresttoolkitforruby # invoke 3 arguments: 'https://rally1.rallydev.com' 'username@domain.com' 'mypassword' require 'rally_api' @rally = rallyapi::rallyrestjson.new( :base_url => argv[0].end_with?('/slm') ? "#{argv[0]}" : "#{argv[0]}/slm", :username => "#{argv[1]}", :password => "#{argv[2]}", :version => 'v2.0') sub = @rally.find(rallyapi::rallyquery.new( :type => :subscription, :query_string => '(objectid > 0)', :fetch => true)) sub.first[:workspaces].each_with_index |w,i| puts "workspace #{i+1} - #{w}" end #[the end]#
Comments
Post a Comment