简体   繁体   English

如何在FitNesse中将测试用例从一个套件复制到另一个套件?

[英]How to copy test case from one suite to another in FitNesse?

I have 2 test suites created in the FrontPage, lets say Suite1 and Suite2. 我在FrontPage中创建了2个测试套件,可以说Suite1和Suite2。 Now I have 1 test case created in Suite1, lets say TestCase1, and would like to have another copy of TestCase1 inside Suite2, may I know how can I use the "Recfactor" feature in the FitNesse to "copy" TestCase1 into Suite2? 现在,我在Suite1中创建了一个测试用例,假设是TestCase1,并且想要在Suite2中拥有另一个TestCase1副本,我是否可以知道如何使用FitNesse中的“ Recfactor”功能将TestCase1“复制”到Suite2中?

Thanks @! 谢谢 @!

Assuming your suites Suite1 and Suite2 have been created directly on FrontPage. 假设您的套件Suite1和Suite2是直接在FrontPage上创建的。

To move a TestCase1 from Suite1 to Suite2 you can simply click on refactor link of TestCase1 page or open this link: http://localhost:8000/FrontPage.Suite1.TestCase1?refactor 若要从Suite1 移动 TestCase1到Suite2您只需点击TestCase1页面重构链接或打开此链接: HTTP://本地主机:8000 / FrontPage.Suite1.TestCase1重构

Then enter FrontPage.Suite2 in "New Location" field under MOVE section. 然后在“ 移动”部分下的“新位置”字段中输入FrontPage.Suite2。 And then click on Move Page button. 然后单击“移动页面”按钮。 Now your TestCase1 has been moved under Suite2 from Suite1. 现在,您的TestCase1已从Suite1移到Suite2下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM