到目前为止我们已经使用了QC工具,但从现在开始我们将开始使用Rally tool。
由于QC是测试结果的系统,我们通常使用基于API设计的宏从QC中提取数据。
现在是时候研究Rally并设计这样的工具了。谁能帮助我了解如何连接拉力和提取数据在excel格式使用任何编程语言(特别是vb脚本)。我的第一个兴趣是找出Rally是否有像QC这样的API,用于连接和提取数据?
发布于 2016-02-04 07:31:31
#!/usr/bin/env ruby
# This Ruby script will print out the names of all Workspaces the user has access to.
# More API info: https://github.com/RallyTools/RallyRestToolkitForRuby
# Invoke with 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 do |w,i|
puts "Workspace #{i+1} - #{w}"
end
#[the end]#https://stackoverflow.com/questions/35165128
复制相似问题