Trying to integrate MS-test unittest with gemini.
I am trying to run the sample unit test using MS-Test which i downloaded from the countersoft.In this case
I am getting the following error like
QTAgent32.exe Error: 0 : CounterSoft.Gemini.Commons.Rest.GeminiRestException: Method requires authentication at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object o, RequestType r) at CounterSoft.Gemini.WebServices.BaseService.WhoAmI() at Countersoft.Gemini.UnitTesting.GeminiContext.GetTestRun(GeminiConfigurationAttribute config, Int32 testCaseId) in C:\Documents and Settings\thraja\Desktop\countersoftgeminiunittestingv411\Countersoft.Gemini.UnitTesting\GeminiContext.cs:line 24 at Countersoft.Gemini.UnitTesting.GeminiTestCaseAspect.RecordTest(GeminiTestCaseAttribute testCaseAttr, IMessage msg, ReturnMessage returnMsg) in C:\Documents and Settings\thraja\Desktop\countersoftgeminiunittestingv411\Countersoft.Gemini.UnitTesting\GeminiTestCaseAspect.cs:line 76
User29894
· 1 |
|
Wednesday, October 12, 2011, 8:58:47 PM |
0
|
Did you update the GeminiConfiguration attribute to use your username and passwrod? |
||||
|
0
|
Yes i did.Actually gemini is installed in a server.I am running it from my local. [GeminiConfiguration("http://server/gemini", "myname", "password", false, true, 4)] [TestClass] public class UnitTest1 : GeminiTestFixture {
} |
||||
|
0
|
Which version of Gemini are you running? The error suggests that the username and / or password are wrong. Are these the same credentials you enter to Gemini when logging in? |
||||
|
0
|
Gemini 4.1.1 |
||||
|
0
|
i am just download the unittest project and changed the gemini URL,username and password.what else i need to do?? |
||||
|
0
|
No, nothing else to change. Can you please use fiddler and check the response from the server? |
||||
|
0
|
Opps SORRY! You should use your api key and not password.... See the profile link top right when logged in to Gemini for your api key. |
||||
|
0
|
I put the ApiKey.where do i get TestPlanId and TestcaseId? |
||||
|
0
|
i created two test cases under a testplan.do we need to put the TestplanId and testcaseId in the following code? [GeminiConfiguration("http://server/gemini", "username", "eegrbkdv5z", false, true, 4)] [TestClass] public class Test : GeminiTestFixture { [TestMethod] [GeminiTestCase(6)] [GeminiRaiseBug] public void GeminiTestMethod1() { Assert.AreEqual(1, 0, "1 Not Equals to 1...."); } } |
||||
|
0
|
You can get the case id from the cases list page and the plan id from the test plans link of the case. You will need to put the plan id in the GeminiConfiguration attribuye (4) and the case id in the GeminiTestCase (6). |
||||
|
0
|
I couldn't find the TestPlanId? |
||||
|
0
|
It will be in the address bar when going to the plan and editing it. |
||||
|
0
|
Yes i got it..The following test will fail.I this case it should need to create a gemini ticket.but its not creating.. Assert.AreEqual(1, 0, "1 Not Equals to 1...."); |
||||
|
0
|
Do you have permissions to create items in Gemini? |
||||
|
0
|
its creating a ticket now but Run Statistics it says 1 passed!! |
||||
|
0
|
Are you running it as part of a test plan? If so check the plan's stats! |
||||
|
0
|
Yep.In plan's stats it says 1 passed instead of failed.. |
||||
|
0
|
Do you have a run that is marked as failed in the runs tab? Also, what does the plan stats show (0 1 0)? |
||||
|
0
|
No it doesn't marked as failed.its says passed and creating the new ticket.but actually the test has failed in visual studio..plan stats show (0 1 0)? |
||||
|
0
|
Please answer the above question. |
||||
|
0
|
Please send us (support at countersoft dot com) screenshoots of the test plan, test case and test run pages + your test code. |
||||
|