Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have many tests for which I now want to create a test report. I wanted to see how exactly this works. Do I have to write the code for the report for each test individually or is it possible to write it once and link it to each test?
Would anyone have a sample code, how it is structured?
Thanks
Maybe try to add allure reports module to your solution:
http://allure.qatools.ru/
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Since it's for debugging purpose only I don't want to edit the app.config and the solution I've found online start by editing it. Is it possible to create a debug logfile only in code with Log4net?
You can try the following option.
((log4net.Repository.Hierarchy.Hierarchy)LogManager.GetRepository()).Root.Level = Level.Debug;
((log4net.Repository.Hierarchy.Hierarchy)LogManager.GetRepository()).RaiseConfigurationChanged(EventArgs.Empty);
You can find more details here
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am looking to make a small windows utility that will let the user browse to a file directory. Is there a good C# method (Windows) to execute this?
If you are using WinForms, you want FolderBrowserDialog.
See here: https://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog(v=vs.110).aspx
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I wonder that can we run a c# project for two times which contains several solutions inside it. For example We have runned our project firstly then we have have button which is start new one. I writed this code for 'start new button': System.Windows.Forms.Application.Run(new FormName_Main());
But this does not work as I want. Also I used the same code with Program.cs class.
Can someone tell me that how to run this project without closing the first one?
I think you need this:
Process.Start(Assembly.GetExecutingAssembly().CodeBase);
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm learning winforms and I'm wonder is it possible to work with some test data like in unit tests that on every startup of aplication dummy data load and work with them for simple crud operations?
Thanks
Use NBuilder. But you will have to create a separate test data layer. I have been using this for quite a while now. Really good for mockup/dummy screens where some random data is required.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am taking part in a project where I got to write a program which takes as an input XSLT file and return proper C# code. Besides It is really something new for me I don't know how to get started. Could anyone give me some prompts how to strike up with this project?Thanks in advance!
Well Microsoft has xsltc to compile a stylesheet to a .NET assembly. You could use a tool like Reflector to decompile the assembly to C# code.