SAP ui5 单元测试框架 - OPA

简介: Sent: Monday, July 4, 2016 6:41 PM

Sent: Monday, July 4, 2016 6:41 PM

本地eclipse复现错误的步骤如下:

修改cus.crm.lead项目的pom.xml的参数如下:


1.10.0-SNAPSHOT -> 2.0.0-SNAPSHOT

1.6.14 -> 1.11.0

然后,maven install 一下,run on server.

访问: localhost:8080/cus.crm.lead/test-resources/testsuite.opa.html?responderOn=true

运行到第5个名为: Product Test : Add Product Test测试用例的时候,会观察到这个“两次点击add button,第二次没有触发dialog”的错误。

本地run不起来,我看下这些错:

Publishing failed with multiple errors

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\META-INF\maven\com.sap.fiori\cus.crm.lead\pom.properties.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\META-INF\maven\com.sap.fiori\cus.crm.lead\pom.xml.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/m2e-wtp/web-resources/META-INF/ui5.properties’.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\WEB-INF\webjetty.xml.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\capabilities.json.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AcceptRejectButtonSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AcceptRejectButtonTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AddLeadSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AddLeadTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AttachmentSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\AttachmentTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\CommonArrangement.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\CommonSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\EditSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\EditTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ErrorMessageSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ErrorMessageTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\InfoSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\InfoTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\NotePanelSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\NotePanelTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ParticipantSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ParticipantTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ProductSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\ProductTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\SearchOnS2Steps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\SearchOnS2Test.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\SortSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\SortTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\TransactionHisSteps.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\opa\TransactionHisTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\qunit.runner.testsuite.html.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\test-files\ModulePathForTests.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\test-files\SimpleTest.js.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\testsuite.opa.html.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\testsuite.qunit.html.

File not found: C:\Users\i042416\git\cus.crm.leads\target\m2e-wtp\web-resources\test-resources\testsuite.qunit.js.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/sap-ui-version.xml’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/WEB-INF/webjetty.xml’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/capabilities.json’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AcceptRejectButtonSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AcceptRejectButtonTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AddLeadSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AddLeadTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AttachmentSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/AttachmentTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/CommonArrangement.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/CommonSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/EditSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/EditTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ErrorMessageSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ErrorMessageTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/InfoSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/InfoTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/NotePanelSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/NotePanelTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ParticipantSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ParticipantTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ProductSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/ProductTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/SearchOnS2Steps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/SearchOnS2Test.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/SortSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/SortTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/TransactionHisSteps.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/opa/TransactionHisTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/qunit.runner.testsuite.html’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/test-files/ModulePathForTests.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/test-files/SimpleTest.js’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/testsuite.opa.html’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/testsuite.qunit.html’.

Resource is out of sync with the file system: ‘/cus.crm.lead/target/classes/META-INF/test-resources/testsuite.qunit.js’.

重新clone下来maven clean install之后还是起不起来。我看下这个错:

image.png


Wait for的超时时间是15秒,每隔400毫秒检查一次。

image.png


你在浏览器里维护的http://localhost:8090/cus.crm.lead/test-resources/testsuite.opa.html?responderOn=true&testId=3f40bd04, OPA怎么知道3f40bd04对应哪个test case?


相关文章
|
2月前
|
人工智能 前端开发 搜索推荐
前端UI框架的发展:从混沌到秩序的演变
前端UI框架的发展:从混沌到秩序的演变
|
2月前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
32 0
|
2月前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
17 0
|
2天前
|
SQL Oracle 关系型数据库
oracle11g SAP测试机归档日志暴增排查(二)
oracle11g SAP测试机归档日志暴增排查(二)
13 1
|
2天前
|
Oracle 关系型数据库 Shell
oracle11g SAP测试机归档日志暴增排查(一)
oracle11g SAP测试机归档日志暴增排查(一)
11 1
|
4天前
|
测试技术
测试基础 Junit单元测试框架
测试基础 Junit单元测试框架
11 2
测试基础 Junit单元测试框架
|
13天前
|
开发框架 前端开发 JavaScript
学会Web UI框架--Bootstrap,快速搭建出漂亮的前端界面
学会Web UI框架--Bootstrap,快速搭建出漂亮的前端界面
|
15天前
|
IDE 测试技术 持续交付
【专栏】利用Python自动化测试与单元测试框架提升代码质量与效率
【4月更文挑战第27天】本文探讨了Python自动化测试与单元测试框架在提升代码质量与效率中的作用。Selenium、Appium用于Web和移动应用自动化测试,pytest提供强大、易扩展的测试支持。unittest是Python标准的单元测试框架,支持结构化测试用例和丰富的断言。实践中,应制定测试计划,编写高质量测试用例,实行持续集成与测试,并充分利用测试报告。这些工具和策略能有效保障代码质量和提升开发效率。
|
19天前
|
测试技术 持续交付 API
Python的UI自动化测试
【4月更文挑战第17天】Python UI自动化测试涉及Selenium(Web)、Appium(移动应用)和PyQt(桌面应用)等框架。基本步骤包括确定测试目标、选择合适框架、安装配置、编写测试脚本、运行调试以及集成到CI/CD流程。注意自动化测试不能完全取代人工测试,应根据需求平衡使用。
10 1
|
2月前
|
XML Java 测试技术
【Java技术专题】「核心技术提升」最流行的Java模拟框架Mockito入门指南(Java单元测试)
【Java技术专题】「核心技术提升」最流行的Java模拟框架Mockito入门指南(Java单元测试)
34 0