51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2475|回复: 6
打印 上一主题 下一主题

[原创] 有哪位兄弟在mercury的支持账户么?我需要寻找QC的一个knowledge base,编号是39208

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-6-27 11:08:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有哪位兄弟在mercury的支持账户么?我需要寻找QC的一个knowledge base,编号是39208


我需要找到能够用QTP读取QC上的某个文件的方法~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    开心
    2016-2-27 08:48
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2006-6-27 17:15:01 | 只看该作者
    不知道你说的编号是39208的问题 在knowledge base 里面的英语表达是什么,我也不没有找到Problem ID 是39208的问题。但我找到了一个 与QC有关的问题和Solution。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-2-27 08:48
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
    发表于 2006-6-27 17:33:50 | 只看该作者
    Product:
    QTP 6.5
    QTP 8.0
    QTP 8.2
    QTP 8.01
    Ext(s):
    Add-in Not Applicable


    Topics:
    Actions and External Libraries Problems or Questions
    TestDirector Integration
    Integration with Other Mercury Interactive Products
    OS:
    Any Windows Platform

    Creation Date:
    30 Mar 2005  Last Modified Date:
    31 Mar 2005

    Problem Description: How to run a file stored in Quality Center from QuickTest Professional

    Quality Center has the capability to attach files to a folder or to a file in the Test Plan module. These files can be of any type (batch file, VBScript, Microsoft Word, Microsoft Excel, etc.). If the attachment file is an executable file (such as a batch file, an .exe, or .VBS file) can the user run this file from QuickTest Professional?

    Note:
    In this explanation, Quality Center and TestDirector can be interchanged.

    Solution: Download the batch file from Quality Center to a local drive and run it locally

    1. Download the file from Quality Center to your local file system.
    If your attachment is located in a test stored in the Quality Center Test Plan, please refer to Problem ID 36734 - How to programmatically download an attachment from Quality Center to a local drive. You should use the GetAttachmentFromTest function to download and store the attachment in a local folder.

    Example:
    FilePath = GetAttachmentFromTest("Attachment", "RunMe.bat", "C:\aa\")

    If your attachment is located in a folder stored in the Quality Center Test Plan, please refer to Problem ID 39166 - How to download an attachment from a folder in Quality Center to a local drive. You should use the GetAttachmentFromFolder function to download and store the attachment in a local folder.

    Example:
    FilePath = GetAttachmentFromFolder ("Subject\MyAttachmentsFolder ", " RunMe.bat ", "C:\aa\")

    2. Use SystemUtil.Run to run the file.

    Example:
    SystemUtil.Run FilePath
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2006-6-28 09:41:50 | 只看该作者
    十分感谢!!!
    我想我要找的就是这个,我希望找到用QTP下载QC中文件的方法。

    如果能帮忙的,能否帮我查下这篇文档里提到的东西……
    ID 36734 - How to programmatically download an attachment from Quality Center to a local drive
    ID 39166 - How to download an attachment from a folder in Quality Center to a local drive.
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-2-27 08:48
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    5#
    发表于 2006-6-28 09:59:23 | 只看该作者
    抱歉,每天找到你说的那两个,倒是找到了下面的一个。

    Problem Description: How to download an attachment from a test in Quality Center

    Solution: Use the GetAttachmentFromTest function

    Note:
    With QuickTest Professional 8.0, you can use QCUtil object instead of TDUtil object in the script.

    Refer to the attachment for the function that can be used to download an attachment from a test saved in Quality Center.

    Note:
    This function is not part of QuickTest Professional. It is not guaranteed to work and is not supported by Mercury Customer Support. You are responsible for any and all modifications that may be required.

    The GetAttachmentFromTest finds the attachment associated to the given test name and stores it in a local folder.

    GetAttachmentFromTest(FolderName, FileName, TestName, OutPath)

    FolderName The name of the folder where the attachment is located
    FileName The name of the attachment that needs to be copied
    TestName The name of the test containing the attachment
    OutPath The folder location where the file needs to be stored
    Return value The full path to where the file has been copied on the local file system


    Example:
    FilePath = GetAttachmentFromTest("Subject\QTP", "John.txt", "Test1", "c:\temp\")
    msgbox "Your file is located at folder: " & FilePath

    Note:
    These functions have been created by using OTA (Open Test Architecture) API. Further information regarding the API can be found in the Quality Center Open Test Architecture Guide that comes with the Quality Center package.


    Related articles:
    Problem ID 39166 - How to download an attachment from a folder in Quality Center to a local drive
    Problem ID 36734 - How to programmatically download an attachment from Quality Center to a local drive
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
     楼主| 发表于 2006-6-28 11:44:40 | 只看该作者
    十分感谢~

    看来我需要到Quality Center Open Test Architecture Guide~

    再次表示感谢!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
    发表于 2006-7-4 17:47:14 | 只看该作者
    如果你有QC方面的问题,可以找我,我相信我可以给你一点帮助
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-15 17:29 , Processed in 0.071204 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表