TestRail integration with selenium using c# - c#

I am new to TestRail tool and wanted to integrate all my UI Selenium automation test cases with TestRail. I have gone through the API Bindings of TestRail but they are only meant for API test cases. Can someone please please give me any idea to integrate TestRail with selenium using c#.

What you would need to do to integrate it is to set up your test run as part of your set up code when you are running your Selenium tests.
There is a Nuget package that will allow you to integrate with Testrail if you are using the original test suite project style from Testrail.
https://github.com/zoosk/testrail-client
I've created an example project of a simple Selenium + NUnit + Testrail integration here:
https://github.com/shortstacked/SeleniumTestrailIntegration

Related

Run Angular from C# - NUnit testing

In the solution we have an API, Angular app and NUnit tests project. I have the task to test the UI of the angular app from NUnit test. Is there a way to run angular app from the setup of the test?
You can use Selenium WebDriver for those purposes. If it is configured correctly, you will be able to open a new web browser inside your NUnit test and check the Angular app there.

Selenium (Nunit) with MTM (Microsoft Test Manager)

I want to perform automated test with Selenium,Nunit,TFS and MTM.
As i'm trying to find a way to run my selenium code using Nunit with MTM, i've searched alot regarding this but didn't find required solution as most of the people gave solution using MStest not with nunit after this i want to see my test case result on MTM.
Answer will be highly appreciated.
Based on my experience (lots of trial and error), you can only Associate Automation with an MSTest Test Method, to test cases in MTM.
A solution I've used with Selenium, NUnit and TFS is to use the VNext builds to run my tests, and use the build status to track the test results (including widgets on the dashboard).

How to set up Unity Test Tools on Unity 5

I'm trying to figure out how to make it work. The documentation is slim to say the least on this important topic.
The small amount of tutorials I found make reference to options not even present when I open the tool. I don't see the Unit Test Runner, just the Integration Test runner. (version 5.3.1f1)
How to add a test? How to run it?
Integration Test runner allows you to add a test, but I was unable to find how to write the actual test.
It's sad that there's almost no documentation on this anywhere, or at least I haven't found it.
The Unity Test Tools are already included in Unity starting with Version 5.3. Even without downloading the Unity Test Tools from the Asset Store you should be able to find the "Editor Test Runner" in the Window menu. This is basically the Unit Test runner. For other features such as Assertions, Integration tests etc. you still need the Unity Test Tools bundle from the Asset Store.
The test tools use NUnit internally, so you can write tests using the standard NUnit API as described here http://www.nunit.org/index.php?p=quickStart&r=2.6.3.
There is also a Unity tutorial video here: https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/test-tools.
Make sure to put your Tests into an Editor folder.
Also note that some features like Assertions are not supported for Windows Store Apps and you won't even be able to build for this platform as long as you have those libraries in your project.

Integration of automated testing in hudson using selenium framework

I'm new to web development and web testing. And I want to use Hudson in my continous integration and for my automated testing using selenium. How can I integrate the selenium in hudson, so that everytime I build using hudson, it will automatically execute the automated testing in selenium? What application should I install? By the way I'm using ubuntu as my OS.
I'm building my webapp using asp.net and C#.
Please advise.
Thanks.
You would invoke the tests like you would for your normal unit tests. Assuming that you are creating your tests to be run with NUnit then you will need to make sure that that is installed.
Setting up your Selenium project, like a normal class library project, that builds a dll that can run your tests should suffice.
You can Integrate your Selenium-TestNG/Nunit Framework with Maven, Maven build path you can give in Jenkins/Hudson.

Selenium RC in Hudson

is there a way to install selenium into hudson, and have it run a test via a .dll (c#)? all i can find so far is a html script.
Thanks
If your Selenium test are based on NUnit, you should be able to run them in Hudson. You can also utilize Selenium Plugin for Hudson in this case.
The fix i've found for this, was to use gallio and push my compiled DLL throw its gallio.echo console.
hudson passes and fails the job based on the results from gallio.

Categories