Hi
what version of testng you are using now? i remember this problem had been fixed by the authors.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
--
I’ve got a TestNG test method <getRecord()> that has a data provider <getRecParms()> that I’m trying to get working with IntelliJ. I set a couple of breakpoints in <getRecParms()>, one of them at the very end of the method where it does a <return result;>, and I verified that <result> actually has values, namely an array of thirty elements, each of which element is a three element array, the first element a <Boolean>, the second a <ProjectEnum>, and the third element a <String>. IntelliJ gets that far, and I set a breakpoint at the very beginning of <getRecord()>, but when I click on the green arrow icon it never gets to that breakpoint.
If I click on the <Console> tab I get a window that says:
^ Test Results
[-] ^ org.familysearch.cds.acceptance
[-] ^ CollectionEndpointTest
[+] ^ getRecord (false, CENSUS_1, “”)
^ getRecord (false, PROBATE_3, “”)
^ getRecord (false, VITALS_4, “”)
^ getRecord (false, CENSUS_1, “7j7”)
^ getRecord (false, PROBATE_3, “7j7”)
^ getRecord (false, VITALS_4, “7j7”)
^ getRecord (false, CENSUS_1, “-1”)
etc.
This seems to be a declaration that all these tests have failed. How can the tests fail without IntelliJ ever getting to my breakpoint at the beginning of <testRecord()>? Any information you can give me on this would be appreciated.
Kevin S
@Test(dataProvider = "getRecParms", groups = { "middle-phase" })
public void getRecord ( Boolean shouldWork
, ProjectEnum projEnum
, String rcId) throws CdsWsClientException {
Collection cl = cdsManager.getCollection( null, projEnum.getCollectionId());
String clId = "" + cl.getDbId();
try {
CdsRecord cRc = cdsManager.getRecord( null, clId, rcId);
Assert.assertTrue( shouldWork, "Expected an exception because record id is invalid; instead it worked!");
String problem = misMatch( cRc, new FsiRecordDirector( rcId, false).getRecord());
Assert.assertTrue
( problem == null
, "Record returned via the endpoint had a " + problem + " field that didn't match expected record!");
} catch (CdsWsClientException excptn) {
Assert.assertFalse
( shouldWork
, "Expected a valid record; instead \"/cds/collection/" + clId + "/record/" + rcId
+ "\" resulted in a <CdsMsgException> being thrown!");
}
}
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Never mind! It turned out I just needed to run Maven on arguments “clean verify”.
Kevin S