C ++:如何在mstest中的C ++托管测试项目中实现数据驱动的概念? [英] C++: how to implement data driven concept in a C++ managed test project in mstest?

查看:77
本文介绍了C ++:如何在mstest中的C ++托管测试项目中实现数据驱动的概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为使用C ++开发的模块实现数据驱动的测试用例,我对这个是全新的。



我尝试过的:



到目前为止,我已经了解原生项目,数据驱动类型无法实现。



如果没有内置功能,我需要读取CSV / XML文件中的值并实现它吗?

解决方案

我按如下方式阅读您的问题。

有没有办法使用数据驱动程序方法测试本机代码?



您将编写使用本机代码访问的代码托管C ++作为库,然后在托管测试代码中使用相同的代码,可以访问所有库以从数据源读取。



希望得到答案。

I was trying to implement data driven test cases for module developed in C++ and I'm totally new to this one.

What I have tried:

Till now, I've understood that for native projects, data-driven type can't be implemented.

If there's no built in functionality, I need to read the values from the CSV/XML file and implement it?

解决方案

I read your question as follows.
"Is there a way to test native code using data driver approach?"

You would write the code that accesses the native code using managed C++ as library and then use the same in your managed test code that would have access to all the libraries to read from data sources.

Hope that answers.


这篇关于C ++:如何在mstest中的C ++托管测试项目中实现数据驱动的概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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