CaocaoTest框架接口测试总结(Dubbo接口)

Caocaotest是基于testng的接口测试框架,通过dubbo框架可以直接对后台接口进行调用,无需校验session,稳定性和便利性都大于http接口。

1、 环境配置(eclipse)

右击caocaotest >properties

根据需要可以配置,33、44、55、stable等环境

框架会根据配置读取对应的环境配置文件

2、 获取dubbo接口名

测试前首先要问开发要所需测试的接口名,并在dubbo admin上查询,确保该接口已经正常运行在服务器上

dubbo admin地址

33:http://101.37.36.67:2080      root:admin_caocao1818

44:http://116.62.106.235:2080    root:admin_caocao1818

55:http://116.62.106.188:2080/    root:admin_caocao1818

Stable:http://101.37.82.41:2080/  root/admin_caocao1818

3、 配置dubbo xml

创建xml配置文件,命名可以参考已有的配置文件

然后copy其他的配置,重点修改这一段,配置要测的dubbo接口

版本号的配置会去配置文件里读取,配置文件:

注:如果是以上方式的话,读取的是步骤1中配置环境对应的配置文件里的参数。如果没有的话,去配置文件里加,例子如下

4、 配置数据库(不需要操作数据库可以略过)

Src/test/resources/applicationContext.xml中配置DB

Step1环境配置文件中配置url,用户名密码默认已在配置文件中。

5、 创建测试套(fleet.dubbo为例)

新建package,然后创建基类脚本

内容如下:

6、 创建excel参数(用excel取参数的话,你也可以用别的方法)

Excel中填写所需的参数

正文中取参数方法,

7、 脚本正文

以下是例子

About the author: tangtao

1,570 comments to “CaocaoTest框架接口测试总结(Dubbo接口)”

You can leave a reply or Trackback this post.

  1. https://queanhgas.vn/ - 2019年9月15日 at 18:55 Reply

    We stumbled over here by a different page and thought I might as well check things out. I like what I see so now i am following you. Look forward to finding out about your web page yet again.

  2. rental car vietnam - 2019年9月15日 at 18:33 Reply

    Really informative post.Thanks Again. Really Cool.

  3. Download MP3 from YouTube - 2019年9月15日 at 16:31 Reply

    Thanks again for the blog article.Really looking forward to read more. Great.

  4. read more - 2019年9月15日 at 16:18 Reply

    Muchos Gracias for your post.Thanks Again. Awesome.

  5. DEA-7TT2 Associate - Data Science and Big Data Analytics v2 Exam - 2019年9月14日 at 08:29 Reply

    Very good article post.Really looking forward to read more. Fantastic.

  6. browse around - 2019年9月14日 at 07:19 Reply

    I was recommended this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem. You are amazing! Thanks!

  7. this website - 2019年9月14日 at 06:08 Reply

    When some one searches for his vital thing, thus he/she wishes to be available that in detail, so that thing is maintained over here.

  8. read more - 2019年9月14日 at 04:00 Reply

    Keep up the wonderful piece of work, I read few blog posts on this web site and I believe that your site is real interesting and has got bands of wonderful information.

  9. Continued - 2019年9月14日 at 03:08 Reply

    Your current positions constantly have a lot of really up to date info. Where do you come up with this? Just declaring you are very inspiring. Thanks again

  10. anchor - 2019年9月14日 at 02:08 Reply

    That is a good tip especially to those new to the blogosphere. Brief but very precise info Thank you for sharing this one. A must read post!

  11. Jncia - 2019年9月14日 at 01:05 Reply

    Really appreciate you sharing this article post.Thanks Again. Really Great.

  12. hyundai nha trang - 2019年9月13日 at 22:23 Reply

    Thank you ever so for you blog.Really thank you! Cool.

  13. C_FIORADM_21 Certification exam - 2019年9月13日 at 17:21 Reply

    You have made some really good points there. I looked on the net for additional information about the issue and found most individuals will go along with your views on this site.

  14. C_TBW50H_75 - 2019年9月13日 at 17:05 Reply

    That is a great tip especially to those new to the blogosphere. Brief but very precise information Many thanks for sharing this one. A must read article!

  15. photo emoji editor download for pc - 2019年9月13日 at 15:43 Reply

    Terrific work! This is the type of info that should be shared around the internet. Shame on the search engines for not positioning this post higher! Come on over and visit my site. Thanks =)

  16. droid admin apk - 2019年9月13日 at 12:25 Reply

    This is one awesome blog.Really looking forward to read more. Will read on…

  17. droidadmin apk download for pc - 2019年9月13日 at 11:12 Reply

    You made some clear points there. I did a search on the subject matter and found most individuals will approve with your blog.

  18. iptv player latino download for pc - 2019年9月13日 at 09:05 Reply

    Say, you got a nice article.Really thank you! Fantastic.

  19. best watches - 2019年9月13日 at 05:44 Reply

    You must take part in a contest for top-of-the-line blogs on the web. I will suggest this web site!

  20. most trendy watch - 2019年9月13日 at 04:31 Reply

    of money in getting high quality Search engine optimization software if you

Comment pages
1 30 31 32

Leave a Reply

Your email address will not be published.