如何创建具有预定义属性的自动化测试用例? [英] How to create automated test case with predefined attributes?

查看:61
本文介绍了如何创建具有预定义属性的自动化测试用例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个具有预定义属性的自动化测试用例.

I want to create a automated test case with predefined attributes.

例如:

使用管理员个人资料创建新用户.(个人资料下拉菜单中有预定义的个人资料名称)

Create a new user with admin profile.(there are predefined profile names in the profile drop down menu)

我该如何自动化?

我想安排此测试用例每天运行.因此,此预定义的配置文件名称在每个版本中可能都不同.我如何解决这个问题

i want to schedule this test case run daily basis. so this predefined profile names may be different in each build. how i can solve this

谢谢

推荐答案

CAE123,

Hi CAE123,

为此,您可以使用TFS API创建测试用例并设置字段的值.

For this requirement, you can create test case and set fields’ value by using TFS API.

有一个博客可以为您提供帮助:

There is a blog that can help you:

#测试管理API –第2部分:创建和测试;修改测试计划

https://blogs.msdn.microsoft.com/densto/2010/03/03/the-test-management-api-part-2-creating-modifying-test-plans/

致谢

Starain


这篇关于如何创建具有预定义属性的自动化测试用例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆