【发布时间】:2016-11-06 05:55:01
【问题描述】:
//testing.js file
describe('Criteria and Adjustment Section', function () {
it('the labels should have correct spellings -Expected result- the labels have correct spellings', function () {
//some logic
});
describe('Test 1', function () {
it('Click on the company dropdown -Expected result- Four options will be shown', function () {
//some logic
});
//有多个这样的描述函数。
//这是一个 testing.js 文件,我必须将此文件解析为一个 xml 文件,使其看起来像:
//.xml file
Test No. Test-Cases Expected Results
----------
01 all the labels should the labels have correct spellings
have correct spellings
----------
02 Click on the company Four options will be shown
dropdown
【问题讨论】:
-
输入是Javascript代码,你显示的输出不是XML。目前尚不清楚您要问什么,无论如何您都需要展示您编写的代码并提出特定问题。这里没有人会为你编写代码。
-
你说的是从 mocha 测试生成 xml 单元测试报告吗? github.com/michaelleeallen/mocha-junit-reporter
标签: c# regex xml string-parsing