Renaming test results of UITestActionLog files or folders as the test case name

天大地大妈咪最大 提交于 2019-12-11 22:02:43

问题


Really appreciate your help Adrian. I was able to add the .settingfile, how can I change the generated folder name as the testcase name , lets say I have my testcase as test1(){} I want the result folder to be named as test1 as well?

I Select the option on the general tab and define the User_defined Scheme , but what ever I write there appears on my test result folder, I want it to be the name of my test case


In coded UI, we need to rename the test result UITestActionLog files or folders to be the same as the test case name.

Let's say my test case name is test1(){}, and I would like to be able to see the test result file as test1 as well. I don't see the test setting window opening when selecting the test setting file, so I'm not sure where it is suggested to add this code:

FileName= testContext.ResultsDirectory + "\" + testContext.TestName.ToString()+".extension". 

来源:https://stackoverflow.com/questions/21638517/renaming-test-results-of-uitestactionlog-files-or-folders-as-the-test-case-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!