求助:关于qtp10 无法识别 maven自动构建flex3.6 的问题

sff_090512 2011-07-06 05:23:16
近日遇到maven自动构建flex3.6的问题。希望大家提出宝贵意见。

问题描述:qtp10自动测试flex3.6,需要加入automation.swc,automation_agent.swc,automation_dmv.swc,qtp.swc四个文件,qtp才能识别flex对象。

1、在myeclipse编译的flex项目,qtp10可以识别flex对象。

2、用maven自动构建的flex项目,qtp10无法识别flex对象。

尝试的方法:

前提:flexmojos-maven-plugin 3.2.0 ; com.adobe.flex:compiler 3.6.0.16995

1、在pom文件中,添加 automation.swc,automation_agent.swc,automation_dmv.swc,qtp.swc 的依赖,maven自动构建的flex,qtp10无法识别。

2、在pom文件中,添加<include-libraries>,如下所示。。qtp也无法识别

<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.2.0</version>
......
<configuration>
......
<include-libraries>${basedir}/libs/automation_agent.swc ${basedir}/libs/automation.swc ${basedir}/libs/automation_agent.swc ${basedir}/libs/automation_dmv.swc</include-libraries>
......
</configuration>
......
<plugin>
</plugins>

------------------------------------------------------------------------------------------

以上都是在flexmojos-maven-plugin 3.2.0条件 ,其实flexmojos-maven-plugin 3.6也试过,qtp也不能识别。

请大家帮帮忙,怎样让qtp10识别maven自动构建的flex3.6。。。
...全文
145 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
runqianzhangyu 2012-06-29
  • 打赏
  • 举报
回复
大师在不在?
给指点一下吧。
在线等!!!!
runqianzhangyu 2012-06-28
  • 打赏
  • 举报
回复
不知道有人遇到过没有?买一套正版的flash builder授权可以解决问题吗?
还有就是如果用命令mxmlc编译flex项目,加了QTP参数,就会出现
License not present. With trial version only limited replays are allowed
大家是怎么解决的啊?
runqianzhangyu 2012-06-28
  • 打赏
  • 举报
回复
按上面的做法,已经成功编译。并已经能录QTP。
但现在只能录很短的时间,马上会弹出一个提示框。
License not present. With trial version only limited replays are allowed
请问该如何解决?
谢谢!谢谢!谢谢!谢谢!谢谢!
sff_090512 2012-05-29
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

按您楼上的方法做,但会报错:
[ERROR] 无法为区域设置“en_US”解析资源束“automation_agent”。
flexmojos-maven-plugin 3.8 flex-framework 4.5
您遇到过没有?
在线等!!!!非常感谢。。。
[/Quote]

flexmojos-maven-plugin版本有点低,用4.1-beta试试。
sff_090512 2012-05-29
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

按您楼上的方法做,但会报错:
[ERROR] 无法为区域设置“en_US”解析资源束“automation_agent”。
flexmojos-maven-plugin 3.8 flex-framework 4.5
您遇到过没有?
在线等!!!!非常感谢。。。
[/Quote]

可能是版本的问题。flexmojos-maven-plugin 用 4.0以上吧。可以用4.1-beta试试
runqianzhangyu 2012-05-02
  • 打赏
  • 举报
回复
按您楼上的方法做,但会报错:
[ERROR] 无法为区域设置“en_US”解析资源束“automation_agent”。
flexmojos-maven-plugin 3.8 flex-framework 4.5
您遇到过没有?
在线等!!!!非常感谢。。。
sff_090512 2012-01-12
  • 打赏
  • 举报
回复
解决方法:
1、将automation.swc,automation_agent.swc,automation_dmv.swc,qtp.swc手动导入到maven仓库
2、在pom文件中,加入四个文件的依赖,<type>为internal,这个很重要。这样编译时,manven才会引入qtp用的依赖。
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>qtp</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>internal</scope>
</dependency>
jiaofsl3235 2011-11-24
  • 打赏
  • 举报
回复
同求该问题 要用QTP测试maven编译的flex 求大神
东风无眠 2011-10-14
  • 打赏
  • 举报
回复
老婆。。俺来顶下
sff_090512 2011-07-06
  • 打赏
  • 举报
回复
大家快来帮忙。。多谢多谢。。自己先顶一下。。

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧