![](/img/trans.png)
[英]In testrail API how do I get project_id from case data?
我正在嘗試使用 add_run 端點添加運行,但在我的自動化代碼中,我只有測試用例 ID 而沒有項目 ID(根據文檔,這是強制性的)。 現在我正在做: 使用 /get_projects 獲取所有項目獲取所有案例 /get_cases/{project_id} 然后我遍歷我得到的案例並將 proje ...
[英]In testrail API how do I get project_id from case data?
我正在嘗試使用 add_run 端點添加運行,但在我的自動化代碼中,我只有測試用例 ID 而沒有項目 ID(根據文檔,這是強制性的)。 現在我正在做: 使用 /get_projects 獲取所有項目獲取所有案例 /get_cases/{project_id} 然后我遍歷我得到的案例並將 proje ...
[英]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 ...
[英]Getting the testrun ID after creating a test run in Testrail
我正在嘗試使用 Testrail 的 API 端點和 Selenium C# 來實現 testrail 集成。我已經成功創建了測試運行。 現在我想獲取剛剛創建的測試運行 ID。 如何才能做到這一點? 這是我創建測試運行的代碼: JSON 文件 ...
[英]Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter
我的賽普拉斯測試需要使用兩個報告器:mochawesome 生成 html 報告,以及 autoset-status-cypress-testrail-reporter 將測試結果發布到 Testrail。 我能找到的能夠讓我使用多個記者的主要工具是 cypress-multi-reporters ...
[英]Migration of test case from test rail to azure devops
目前我的組織正在使用測試軌道作為我們的測試管理系統,我們正計划遷移到 azure devops。 有什么簡單的方法可以將我現有的所有 1500 測試用例移動到 azure devops? 我們在測試軌道的測試用例中也有一些附件。 只有 excel 僅導入選項還是我們有任何實用程序可以做到這一點? ...
[英]How to integrate TestRail with Azure DevOps Pipeline?
我在 Azure DevOps 上運行 CI/CD 管道,並生成帶有測試結果的 Junit xml 文件。 順便說一句,我使用 Cypress 框架進行測試。 有沒有辦法將 Junit 結果引入 TestRail 7.5 並在 TestRail 的“測試運行和結果”選項卡中發布測試結果? 實際上, ...
[英]Azure devops pipeline testrun results to be updated in testrail
嗨,我們運行包含所有測試用例的 azure devops 管道。 我們正在使用 jmeter 腳本來運行並生成所有測試用例的運行結果。 每次運行后我們是否有可能在 TESTRAIL 中自動更新這些測試結果? Testrail 是我們存儲測試用例的地方。 ...
[英]get network error when trying to upload tests into testrail by testrail cli tool
我遇到了一個奇怪的問題。 也許有人經歷過同樣的事情並找到了解決方案。 當我嘗試通過 testrail cli 工具將我的 xml 文件格式的 testrail 測試上傳到 Testrail 時,我收到此錯誤消息,指出由於網絡錯誤,上傳失敗,我需要確保我有一個有效的網絡連接。 我確實有一個有效的網絡連 ...
[英]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 中創建測試用例。 到目前為止,一切正常。 ...
[英]How to authenticate with TestRail API?
我想使用 TestRail API,但我遇到了身份驗證問題。 我設置了一個郵遞員來使用 API 並像這樣查詢它: 我看到另一個使用基本身份驗證的Authorization標頭的 SO 問題,所以我補充說: 當我嘗試運行它時,我得到了: 我也嘗試用我的密碼替換 API 密鑰,但這也不起作用 ...
[英]Reporters for Flutter integration testing
我正在尋找 Flutter 集成庫和測試管理工具(如 TestRail 或 Xray)之間的集成示例。 對於 Cypress 和其他瀏覽器自動化工具,我可以找到很多解決方案,但對於 Flutter 集成基本上沒有。 ...
[英]Problems matching values from nested dictionary
在 TestRail 中,我創建了幾個測試運行。 當我執行時: 返回以下結果: 在我的代碼中,我試圖掃描所有生成的測試運行,通過匹配測試運行名稱找到我感興趣的測試運行,然后返回測試運行的 ID。 現在按原樣執行代碼會導致以下錯誤: ...
[英]cypress-testrail-accumulative-reporter is generating the multiple test run as per the number of parallel threads
我在我的 cypress 自動化項目中使用 cypress-testrail-accumulative-reporter 進行測試軌集成。 我正在使用 2 個並行線程針對 browserstack 執行自動化。 我面臨的問題是它正在創建兩個包含所有測試用例的測試運行,並標記其中很少通過,並且在每次測 ...
[英]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: Unable to attach report to testrun
API 端點: [發布] https:///{{測試鏈接}}/index.php?/api/v2/add_attachment_to_run/449 標頭:{“Content-Type”,“value”:“multipart/form-data”} 在正文中,我傳遞了鍵:附件和值:文件路徑。 相 ...
[英]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 ...
[英]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 >> 我應該怎么做才能將結果添加到步驟中? ...
[英]Is it possible to Create Testcases and Test Run Automatically on Testrail using Selenium
我已經能夠集成我的 Selenium 和 Testrail。 我可以將測試結果傳遞給我在測試軌道上手動創建的指定測試運行。 我有一個挑戰,我想知道目前是否可行。 我不想手動創建測試軌道上 selenium 上的測試用例,我也不想在運行自動化腳本時創建新的測試運行。 我想自動檢查如果我正在運行的測試用 ...
[英]Transfer of steps and expected result from the development environment to the TestRail
該項目有很多自動測試,JAVA + TESTNG + SELENIDE 堆棧。 現在我們正在轉向 testrail,正在為 testrail 格式重寫手動測試。 是否可以通過.xml 測試配置或 Java 類的開發環境中的步驟和預期的 resilt。 假設在更改自動測試時,只需更正代碼中的步驟和預 ...