@@ -251,30 +251,24 @@ public void verifySpecificTestArtifactsParameters() throws Exception {
251251 * Test to verify default test atrtifact file location.
252252 */
253253
254-
254+ @ Test
255255 public void verifyDefaultArtifactLocation () throws Exception {
256256 this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
257257 project .getBuildWrappersList ().add (this .buildWrapper );
258258 project .getBuildersList ().add (this .testBuilder );
259259 HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
260- Thread .sleep (4000 );
261260 HtmlCheckBoxInput tapArtifact = page .getElementByName ("tapArtifact" );
262261 HtmlCheckBoxInput pdfReportArtifact = page .getElementByName ("pdfReportArtifact" );
263262 HtmlCheckBoxInput junitArtifact = page .getElementByName ("junitArtifact" );
264263 HtmlCheckBoxInput stmResultsArtifact = page .getElementByName ("stmResultsArtifact" );
265264 HtmlCheckBoxInput coberturaArtifact = page .getElementByName ("coberturaArtifact" );
266265 HtmlCheckBoxInput modelCoverageArtifact = page .getElementByName ("modelCoverageArtifact" );
267266
268- tapArtifact .click ();
269- Thread .sleep (2000 );
270- pdfReportArtifact .click ();
271- Thread .sleep (2000 );
272- junitArtifact .click ();
273- Thread .sleep (2000 );
274- stmResultsArtifact .click ();
275- Thread .sleep (2000 );
276- coberturaArtifact .click ();
277- Thread .sleep (2000 );
267+ tapArtifact .click ();
268+ pdfReportArtifact .click ();
269+ junitArtifact .click ();
270+ stmResultsArtifact .click ();
271+ coberturaArtifact .click ();
278272 modelCoverageArtifact .click ();
279273 Thread .sleep (2000 );
280274
@@ -290,16 +284,14 @@ public void verifyDefaultArtifactLocation() throws Exception {
290284 * Test to verify text box shows up on sourceFolder option click and text is empty.
291285 */
292286
293-
287+ @ Test
294288 public void verifySourceFolderDefaultState () throws Exception {
295289 this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
296290 project .getBuildWrappersList ().add (this .buildWrapper );
297291 project .getBuildersList ().add (this .testBuilder );
298292 HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
299- Thread .sleep (4000 );
300293 HtmlCheckBoxInput sourceFolder = page .getElementByName ("_.sourceFolder" );
301294 sourceFolder .click ();
302- Thread .sleep (2000 );
303295 WebAssert .assertElementPresentByXPath (page , "//input[@name=\" _.srcFolderPath\" ]" );
304296 HtmlInput srcFolderPath = page .getElementByName ("_.srcFolderPath" );
305297 assertEquals ("" , srcFolderPath .getTextContent ());
@@ -309,13 +301,12 @@ public void verifySourceFolderDefaultState() throws Exception {
309301 * Test to verify text box shows up on SelectBy option click and text is empty.
310302 */
311303
312-
304+ @ Test
313305 public void verifySelectByFolderDefaultState () throws Exception {
314306 this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
315307 project .getBuildWrappersList ().add (this .buildWrapper );
316308 project .getBuildersList ().add (this .testBuilder );
317309 HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
318- Thread .sleep (4000 );
319310 HtmlCheckBoxInput sourceFolder = page .getElementByName ("_.selectbyFolder" );
320311 sourceFolder .click ();
321312 Thread .sleep (2000 );
@@ -328,13 +319,12 @@ public void verifySelectByFolderDefaultState() throws Exception {
328319 * Test to verify text box shows up on SelectByTag option click and text is empty.
329320 */
330321
331-
322+ @ Test
332323 public void verifySelectByTagDefaultState () throws Exception {
333324 this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
334325 project .getBuildWrappersList ().add (this .buildWrapper );
335326 project .getBuildersList ().add (this .testBuilder );
336327 HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
337- Thread .sleep (4000 );
338328 HtmlCheckBoxInput sourceFolder = page .getElementByName ("_.selectByTag" );
339329 sourceFolder .click ();
340330 Thread .sleep (2000 );
0 commit comments