For a single test case I added 2 to 3 assertions. I have many test cases like these. But I am not able to run these test cases from a test suite (i saw the steps from "Run a Test Suite - DevTest Solutions - 9.5 - CA Technologies Documentation "). But my test cases are not running. Please help me with this. Please find the attached screen shots to see my test case.Please help me suppose if i have to run 6 test cases(as per the screen shot) from folders "retrieveProfileInfo_basic3_BW" and "retrieveProfileInfo_basic4_BW". I am getting some error and it does not have correct information. The question is I still dont know this is the correct way to run all my test cases. If not how to run all test cases?Will assertions inside test case be run?
Can you post your Suite document and Staging Document?
Actually that was a sample suit which i created to test how to run many test cases. Any ways I have attached the suite. But the main theme is I want to know how to run many test cases. Plz let me know this, I mean the steps to do to run. Thanks in advance
Please create a suite with all the services into it and right click on the suite and select the option "Deploy as monitor to CVS". Now you can go to the CVS console and monitor the execution status of all the test cases that are included in the suite. You can even download a report from this portal in PDF format.
CVS - Continuous Validation Service.
Thanks, I ran a test suite which has 3 test cases(ran locally) . I thought my assertions in each test case got passed. So again I tried out in another way. I manually made an assertion in one of the test case to be "false"(by giving some wrong value). This time when I ran the suite again (ran locally) and got the sam result which is "PASS" for 3 test cases. I dont know what happened here. Even my assertion is false , how the test case got passed.?Whats the point of automating this? If the API doesnt give response , will my test case pass too?
Is there a place where I can see the results for each assertion whether it got passed or failed because I can see only the result for entire test case.Please see screen shots attached.
When u add an assertion you select an option what if the Assertion is False/True. You can select following options.
1. Abort The Test - Whole test case will be failed
2. End The Test - Almost same as above
3. Fail the Test - Almost same as above
2. Generate Error - This will only generates an error and proceeds with next assertions or the step
4. Generate Warning - This will generate a warning and proceeds with next assertions or the step
I think you might have selected Generate Error option so the test case would have not failed and have executed other test cases.
case 1: I gave like assertion is "true" then end the test. In this case my assertion got succeeded (because i gave correct value in "expected value" field) and all my test cases got passed.
case 2: I gave like assertion is "true" then end the test.In this case my assertion got failed (because I gave a wrong value in "expected value" field). This time also all my 3 test cases got passed.
Note: assertion is in my 1st test case
If the service which I m testing is not working then case2 will happen, correct?.So in that case how will I know if my test case get passed?
My question is : I am expecting a value "x" in one field which I made it as expected value. So if my service has no issues then "x" will be obtained in the response and then it will match exactly with my expected value. What if when my service is down? I wont get "x" in my response. Then my assertion will become false. But how do I know that if my test case gets passed?
And I m not sure all my assertions are executed if I have multiple assertions in my test case.
see screen shot attached
Thanks for sharing the screen shot. In Case2 your Test Case is not failing because you have given as if "True" fail the test. So the assertion result is false because u have given 'trueeeeeeeeeeee' instead of 'true', so the test case is not getting ended because you are telling to fail only if the assertion result is 'true' and in this case assertion result is false.
We can discuss over a call if you still find difficulties.
I created a test suite with 5 test cases and selected the option "Deploy as monitor to CVS". One dialog box appeared where I entered suite name, notify email, start time, stop time etc. I clicked on Deploy button .Then opened CVS. But I see only blank page.Where can I see the results. Is there anywhere a report is generated to see how many test cases passed and how many failed?