prop.setDataSourceInfo("InventorySource");
prop.setCatalog("Inventory");
rest.setCatalog("Inventory");
rest.setCubeName("Inventory");
//Week is the Third level in Time Dimension in Inventory Cube
Assert.assertEquals("Week",(new LevelElement(null,(((port1.getLevelList(rest,prop)).getElementsByTagName("row")).item(3)),rest,prop)).toString());
prop.setDataSourceInfo("FoodMartSource");
prop.setCatalog("FoodMart");
rest.setCatalog("FoodMart");
rest.setCubeName("Sales");
//"Store State" is the Third level in Store Dimension in Inventory Cube
Assert.assertEquals("Store State",(new LevelElement(null,(((port1.getLevelList(rest,prop)).getElementsByTagName("row")).item(3)),rest,prop)).toString());
//System.out.println("From Test Level list method : "+(new LevelElement(null,(((port1.getLevelList(rest,prop)).getElementsByTagName("row")).item(3)),rest,prop)).toString());
}
catch(Exception exc)
{
System.out.println("Error"+exc.getStackTrace());