-3
我想將所有QTP腳本文件夾下載到我的本地系統。目前所有的腳本都存儲在ALM中。 路徑 - >測試計劃 - >文件夾 - >腳本。如何從HPQC下載所有QTP腳本?
我想將所有QTP腳本文件夾下載到我的本地系統。目前所有的腳本都存儲在ALM中。 路徑 - >測試計劃 - >文件夾 - >腳本。如何從HPQC下載所有QTP腳本?
你可以編寫一個程序來使用開放測試API(OTA)。下面的代碼基於C++使用OTA的#import包裝器。
給定一個ITest2Ptr你能確定它是否是一個QTP腳本:
IExtendedStoragePtr storage = test->ExtendedStorage;
BSTR raw_root_path;
HRESULT hr = storage->raw_Load(L"", VARIANT_TRUE, &raw_root_path);
的「raw_root_path」文件夾包含所有QTP相關:
if (test->Type == "QUICKTEST_TEST")
{
/* ... */
}
可以使用保存測試腳本材料。