我需要找到能够用QTP读取QC上的某个文件的方法~~作者: walker1020 时间: 2006-6-27 17:15
不知道你说的编号是39208的问题 在knowledge base 里面的英语表达是什么,我也不没有找到Problem ID 是39208的问题。但我找到了一个 与QC有关的问题和Solution。作者: walker1020 时间: 2006-6-27 17:33
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.
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.
如果能帮忙的,能否帮我查下这篇文档里提到的东西……
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.作者: walker1020 时间: 2006-6-28 09:59
抱歉,每天找到你说的那两个,倒是找到了下面的一个。
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.
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作者: TANCH 时间: 2006-6-28 11:44
十分感谢~
看来我需要到Quality Center Open Test Architecture Guide~