测试团队已通过MSbuild在远程桌面服务器上实现了自动化测试套件,该套件将打开Chrome浏览器并浏览网站(例如:电子商务网站)并进行健全性测试。
在Linux机器上安装了jenkins并能够连接和执行测试的位置,但是由于无法打开chrome浏览器,因此所有测试结果都以“失败”状态结束。 (不确定是否在jenkins日志中找不到它的浏览器问题)
我正在运行以下命令来启动脚本:
{call "C:\Users\Administrator\Desktop\SanityTest.cmd"}
{Starting execution...
Results Top Level Tests
------- ---------------
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.A_Catalog_Products
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.B_Customers_AllCustomers
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.C_Stores_AllStores
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.D_Shipment_ShipmentCode
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.E_Shipment_ShipmentCost
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.F_Shipment_ShipmentDefault
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.G_PlacingOrderFor_ServiceOrder_External
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.G_PlacingOrderFor_ServiceOrder_Internal
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.H_PlaceOrderFor_StockOrder_External
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.H_PlaceOrderFor_StockOrder_Internal
0/10 test(s) Passed, 10 Failed
Results G_PlacingOrderFor_ServiceOrder_External
------- ---------------------------------------
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.G_PlacingOrderFor_ServiceOrder_External
0/1 test(s) Passed, 1 Failed
Results G_PlacingOrderFor_ServiceOrder_Internal
------- ---------------------------------------
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.G_PlacingOrderFor_ServiceOrder_Internal
0/1 test(s) Passed, 1 Failed
Results H_PlaceOrderFor_StockOrder_External
------- -----------------------------------
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.H_PlaceOrderFor_StockOrder_External
0/1 test(s) Passed, 1 Failed
Results H_PlaceOrderFor_StockOrder_Internal
------- -----------------------------------
Failed MagentoEcommerce.US_MagnetoGoLiveTestcases.PO_ValidationTestcases.SantityTestcases.H_PlaceOrderFor_StockOrder_Internal
0/1 test(s) Passed, 1 Failed
Summary
-------
Test Run Failed.
Failed 14
----------
Total 14
Results file: C:\Test.Trx
Test Settings: Default Test Settings
Run has the following issue(s):
Warning: Test Run deployment issue: The assembly or module 'RestSharp' directly or indirectly referenced by the test container 'c:\users\administrator\desktop\uat_sanitytest\ecommerce.dll' was not found.
C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE>Echo "Completed....."
"Completed....."
C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE>pause
Press any key to continue . . .
C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE>popd "C:\"
C:\Users\Administrator\jenkins\workspace\RLT-SANITYtest>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
}
您能帮我吗?