如何定时自动运行测试和自动上传结果

上一篇 / 下一篇  2008-12-27 23:17:00 / 个人分类:QC

51Testing软件测试网~v x RHL1zw*Z

 

C\.L9n[H)@)X3qAa0

3|d%pyW k{.h)jp0  一直以来认为QC用来管理自动化的用例才是王道(我原来用来管理手动的)。终于得机会,今天试验了一把,51Testing软件测试网a*IeJ-Iw/y

2UWo4f n/w0自动定时运行,自动发defect,弄了两个晚上时间才弄出来。特记录一下,以防日后需要又要从零开始,因为只

M` f+@P W0Uu0

*l.I3D0y~~W#w4]N0是我自己的笔记,可能大家不一定看得懂,如果你有兴趣话。

sgc]1CC051Testing软件测试网X[+r@7O(~

可以向我提问,谢谢!51Testing软件测试网H]\?,J

0.      pls ensure that “allow other Mercury products to run test and components” and “Submit51Testing软件测试网w&Vvx vWU

a defect to Quality Center for each failed step” options are checked in the QTP Option dialog.

2X-|.A;U.aZ.tj|0

-[0FI3oL hc7Jm0

51Testing软件测试网sKY:D!Z*qb5D

1.      To install QTP plugging for QC ,you should click the installer(TDPlugin.exe) under Qtp installation’s directory ‘ subdirectory TDPlugin.

5vod!j!A!vc0

2.      write test case in QC51Testing软件测试网;?"z ExJ9`0^"l/Q

     51Testing软件测试网&YpR-wIn{}

3.      Add test parameter to test case51Testing软件测试网mSy7L(M-a8g`

&e z8[\ k)Y0

4.      Generate test scrīpt

5zZ|]j ujd|0

5.      Click Test scrīpts tab to download scrīpts. It will launch QTP automatically.

(?qjM^5`'a ?[%z0

6.      Developing scrīpts.51Testing软件测试网$UL/a7|+^K

7.      Save scrīpts, It will upload scrīpt automatically to QC. Cause you are open scrīpt directory through QC.51Testing软件测试网/Lq&C \ v1aL

8.      Create a test set. Add the test case into test set.

-D)G)Hx6i{0a0

It will prompt you to set the test parameter’s value, cause you have set test case parameter at step 2.51Testing软件测试网$d-D `*kZ/X%f(Yz

51Testing软件测试网?_C!T [$Bm7V

Gnq#y OH.~B:K}0

9.      switch to Execution tab to set test run schedule.

Om\&{E"C ssQ0

Set it to be started in one minute.51Testing软件测试网\*G2\^[0? w X E

Once this time is up, the test will be run automatically.

o6Nx3{DH/lu0

/wT7_0~g0

51Testing软件测试网n'b\7{I1M]O,O/B

10.  Simply press Run Test Set button51Testing软件测试网,]Y:g)R"|,Q

Click Run or Run All.

?@%wl;c"Zt0

Now you could go to drink coffee.

,R!v_*?@ma%U.P0

The scrīpt will be run automatically. Then post test result.

#t3Rw#^3}Y0

51Testing软件测试网0gD V P1_*d {{3h

     51Testing软件测试网E4JW&^V(??-C(~5Lu

11.  Check Result.

}-[,i?k'QS[7`0

Now you have finished your coffee time, then go back to check result. Switch to defects module. Refresh result. You will see that there is a defect has been published automatically.

w z;K8V.C@2j0

  And the result was marked as standard format. That’s perfect!51Testing软件测试网 D!a,Ms6Z x Z#n`*b

51Testing软件测试网/t$pI&w@~

M2}*jdJa9A mu0  51Testing软件测试网K wV;t?


TAG: QC

kakamissyou的测试小栈 引用 删除 kakamissyou   /   2009-09-03 14:33:44
原帖由chenxi01032005于2009-09-03 08:36:38发表
请问下
第10步中,状态显示为:没有注册类别 是什么原因吗?
谢谢。


sorry,at this point,I can't give you more. I didn't rush into it. I am not a qc expert.I am just
experiencing with some fantastic feature
稻香 引用 删除 chenxi01032005   /   2009-09-03 08:36:38
请问下
第10步中,状态显示为:没有注册类别 是什么原因吗?
谢谢。
kakamissyou的测试小栈 引用 删除 kakamissyou   /   2009-09-02 21:05:15
原帖由chenxi01032005于2009-09-02 17:22:45发表
请问下,
你的qtp和qc是不是装在同个机子上的?

yep
稻香 引用 删除 chenxi01032005   /   2009-09-02 17:22:45
请问下,
你的qtp和qc是不是装在同个机子上的?
kakamissyou的测试小栈 引用 删除 kakamissyou   /   2008-12-31 22:52:04
终于有人说话了。

那些是在篇幅之外的东西,不是一下两下就能讲

完的哈。做用例我当然不会在这讲的啦。

至于脚本标准化嘛。那是在开发脚本时候的一些

遵循的规则。

我只是想表达一下说,一个比较高境界的自动化

的"执行"轮廓。以及它的好处。

也许就像你说的难点并不在这上面,哈哈!
燃灯斋 引用 删除 zengyixun   /   2008-12-31 11:43:23
要成功顺利的执行,可能难点还不在这篇文章上,而在于数据准备,用例与脚本的标准化与精确性!要成功做到这样的自动化,而且得到对结果的认同,真的很难,要不断的进行积累的!
 

评分:0

我来说两句

Open Toolbar