首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >拉力工具- API

拉力工具- API
EN

Stack Overflow用户
提问于 2016-02-03 06:35:56
回答 1查看 228关注 0票数 0

到目前为止我们已经使用了QC工具,但从现在开始我们将开始使用Rally tool。

由于QC是测试结果的系统,我们通常使用基于API设计的宏从QC中提取数据。

现在是时候研究Rally并设计这样的工具了。谁能帮助我了解如何连接拉力和提取数据在excel格式使用任何编程语言(特别是vb脚本)。我的第一个兴趣是找出Rally是否有像QC这样的API,用于连接和提取数据?

EN

回答 1

Stack Overflow用户

发布于 2016-02-04 07:31:31

代码语言:javascript
复制
#!/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]#
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35165128

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档