cost 90 ms
在 testrail API 中,如何從案例數據中獲取 project_id?

[英]In testrail API how do I get project_id from case data?

我正在嘗試使用 add_run 端點添加運行,但在我的自動化代碼中,我只有測試用例 ID 而沒有項目 ID(根據文檔,這是強制性的)。 現在我正在做: 使用 /get_projects 獲取所有項目獲取所有案例 /get_cases/{project_id} 然后我遍歷我得到的案例並將 proje ...

2023-01-08 01:08:06   1   11    testrail  
當測試有 4 個 TestFixtures 時,OneTimeSetup 方法被調用 4 次

[英]OneTimeSetup method being called 4 times when tests have 4 TestFixtures

我遇到一個問題,我的 Parallelizable UI Selenium 測試多次調用 [OneTimeSetup] 方法,結果創建了多個 Testrail 測試運行。 在我的基類 [OneTimeSetup] 方法中,我在 Testrail 中創建了一個測試運行。 我的測試包含 4 個 [Tes ...

無法從測試用例中獲取類別值

[英]Cannot get Category value from a test case

我正在嘗試獲取測試用例的類別值。 測試用例的類別值為 在我的拆解方法中,我嘗試訪問此類別值並刪除“C”值以將其存儲到 var 變量中,只留下數字“1979186”。 運行時出現以下錯誤: System.NullReferenceException:“對象引用未設置為對象的實例。” NUnit.F ...

在 Testrail 中創建測試運行后獲取測試運行 ID

[英]Getting the testrun ID after creating a test run in Testrail

我正在嘗試使用 Testrail 的 API 端點和 Selenium C# 來實現 testrail 集成。我已經成功創建了測試運行。 現在我想獲取剛剛創建的測試運行 ID。 如何才能做到這一點? 這是我創建測試運行的代碼: JSON 文件 ...

Cypress 多記者:使用 mochawesome 和 autoset-status-cypress-testrail-reporter

[英]Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter

我的賽普拉斯測試需要使用兩個報告器:mochawesome 生成 html 報告,以及 autoset-status-cypress-testrail-reporter 將測試結果發布到 Testrail。 我能找到的能夠讓我使用多個記者的主要工具是 cypress-multi-reporters ...

將測試用例從測試軌道遷移到 azure devops

[英]Migration of test case from test rail to azure devops

目前我的組織正在使用測試軌道作為我們的測試管理系統,我們正計划遷移到 azure devops。 有什么簡單的方法可以將我現有的所有 1500 測試用例移動到 azure devops? 我們在測試軌道的測試用例中也有一些附件。 只有 excel 僅導入選項還是我們有任何實用程序可以做到這一點? ...

如何將 TestRail 與 Azure DevOps Pipeline 集成?

[英]How to integrate TestRail with Azure DevOps Pipeline?

我在 Azure DevOps 上運行 CI/CD 管道,並生成帶有測試結果的 Junit xml 文件。 順便說一句,我使用 Cypress 框架進行測試。 有沒有辦法將 Junit 結果引入 TestRail 7.5 並在 TestRail 的“測試運行和結果”選項卡中發布測試結果? 實際上, ...

Azure devops 管道測試運行結果將在 testrail 中更新

[英]Azure devops pipeline testrun results to be updated in testrail

嗨,我們運行包含所有測試用例的 azure devops 管道。 我們正在使用 jmeter 腳本來運行並生成所有測試用例的運行結果。 每次運行后我們是否有可能在 TESTRAIL 中自動更新這些測試結果? Testrail 是我們存儲測試用例的地方。 ...

嘗試通過 testrail cli 工具將測試上傳到 testrail 時出現網絡錯誤

[英]get network error when trying to upload tests into testrail by testrail cli tool

我遇到了一個奇怪的問題。 也許有人經歷過同樣的事情並找到了解決方案。 當我嘗試通過 testrail cli 工具將我的 xml 文件格式的 testrail 測試上傳到 Testrail 時,我收到此錯誤消息,指出由於網絡錯誤,上傳失敗,我需要確保我有一個有效的網絡連接。 我確實有一個有效的網絡連 ...

railflow cli 命令忽略帶有數據表的黃瓜步驟。 並且只顯示一行

[英]railflow cli command ignores the cucumber steps with data table. and only shows one line

我們剛剛開始將 testrail 與 railflow 一起使用,我正在使用 railflow cli 命令創建以黃瓜/小黃瓜風格編寫的測試用例。 測試結果被轉換成 json 文件,railflow cli 讀取這些 json 文件並在 test rail 中創建測試用例。 到目前為止,一切正常。 ...

如何使用 TestRail API 進行身份驗證?

[英]How to authenticate with TestRail API?

我想使用 TestRail API,但我遇到了身份驗證問題。 我設置了一個郵遞員來使用 API 並像這樣查詢它: 我看到另一個使用基本身份驗證的Authorization標頭的 SO 問題,所以我補充說: 當我嘗試運行它時,我得到了: 我也嘗試用我的密碼替換 API 密鑰,但這也不起作用 ...

匹配嵌套字典中的值的問題

[英]Problems matching values from nested dictionary

在 TestRail 中,我創建了幾個測試運行。 當我執行時: 返回以下結果: 在我的代碼中,我試圖掃描所有生成的測試運行,通過匹配測試運行名稱找到我感興趣的測試運行,然后返回測試運行的 ID。 現在按原樣執行代碼會導致以下錯誤: ...

cypress-testrail-accumulative-reporter 正在根據並行線程數生成多個測試運行

[英]cypress-testrail-accumulative-reporter is generating the multiple test run as per the number of parallel threads

我在我的 cypress 自動化項目中使用 cypress-testrail-accumulative-reporter 進行測試軌集成。 我正在使用 2 個並行線程針對 browserstack 執行自動化。 我面臨的問題是它正在創建兩個包含所有測試用例的測試運行,並標記其中很少通過,並且在每次測 ...

您能否將 cypress 規格全部作為一次測試運行,以便將測試記錄到 testrail 作為一次測試運行,而不是針對每個規格文件進行一次測試運行?

[英]Can you run cypress specs all as one test run so that the test records to testrail as one test run instead of a test run for each spec file?

我一直在使用這個 npm package: https://www.npmjs.com/package/cypress-testrail-reporter它似乎沒有允許我這樣做的記者選項。 歡迎任何建議。 ...

Testrail Java API:無法將報告附加到測試運行

[英]Testrail Java API: Unable to attach report to testrun

API 端點: [發布] https:///{{測試鏈接}}/index.php?/api/v2/add_attachment_to_run/449 標頭:{“Content-Type”,“value”:“multipart/form-data”} 在正文中,我傳遞了鍵:附件和值:文件路徑。 相 ...

如何使用 Testrail 添加附件到 Testrail API

[英]How to add an attachment to Testrail using the Testrail API

我已經嘗試使用以下 API 端點通過他們的 API 將附件添加到 Testrail。但是不太清楚如何命名所述文件附件(我正在使用 Postman) API 端點: [發布] https:///{{testrail 鏈接}}/index.php?/api/v2/add_attachment_to ...

如何使用 testrail-api 為步驟添加結果

[英]How to using testrail-api to add result for step

testrail-api 有 4 種方法來更新結果。 add_result add_result_for_case add_results add_results_for_cases add_result >> 我應該怎么做才能將結果添加到步驟中? ...

2022-03-09 09:12:02   1   258    testrail  
是否可以使用 Selenium 在 Testrail 上自動創建測試用例和測試運行

[英]Is it possible to Create Testcases and Test Run Automatically on Testrail using Selenium

我已經能夠集成我的 Selenium 和 Testrail。 我可以將測試結果傳遞給我在測試軌道上手動創建的指定測試運行。 我有一個挑戰,我想知道目前是否可行。 我不想手動創建測試軌道上 selenium 上的測試用例,我也不想在運行自動化腳本時創建新的測試運行。 我想自動檢查如果我正在運行的測試用 ...

將步驟和預期結果從開發環境轉移到 TestRail

[英]Transfer of steps and expected result from the development environment to the TestRail

該項目有很多自動測試,JAVA + TESTNG + SELENIDE 堆棧。 現在我們正在轉向 testrail,正在為 testrail 格式重寫手動測試。 是否可以通過.xml 測試配置或 Java 類的開發環境中的步驟和預期的 resilt。 假設在更改自動測試時,只需更正代碼中的步驟和預 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM