Monday, 12 January 2015

Read data from array(list) and call

private static String expectedCPName[] ={"HIPPO signaling","Adipogenesis pathway","Unfolded protein response","Wnt/Ca+ pathway","BER pathway","PCP pathway"};
Assert.assertEquals(search.VerifyCpName(), expectedCPName[0]);

it will read as per index number

Remove space from string in silk4j

String CPname=desktop.<JLabel>find(Objects.MyPathways.PathwayNameOnCP).getText().trim().replace("\n", "");
int index = CPname.length();
CPname=CPname.substring(1);
System.out.println("CPname :"+CPname);
return CPname;