tag:blogger.com,1999:blog-2973787519736718861.post8104746591121134866..comments2024-03-13T05:54:14.145-07:00Comments on Software testing tutorials and automation: Creating Sample Data Reading Test In WebDriver Data Driven FrameworkUnknownnoreply@blogger.comBlogger60125tag:blogger.com,1999:blog-2973787519736718861.post-28300040973234933462019-05-11T00:06:52.704-07:002019-05-11T00:06:52.704-07:00HI,
I have below error , please help to me. how t...HI,<br /><br />I have below error , please help to me. how to resolve<br /><br />Error CELL_TYPE_STRING cannot be resolved or is not a field<br /><br />I have followed all the steps given from 1 to 7 but i am getting error <br />"The static field Cell.CELL_TYPE_STRING should be accessed in a static way"<br />in Read_XLS.java file in the following line.<br />Object data[][] = new Object[rowNum-1][colNum-2];<br /><br />for (int i=0; i<rowNum-1; i++){<br />HSSFRow row = ws.getRow(i+1);<br />for(int j=0; j< colNum-2; j++){ <br />if(row==null){<br />data[i][j] = "";<br />}<br />else{<br />HSSFCell cell = row.getCell(j); <br /><br />if(cell==null){<br />data[i][j] = ""; <br />}<br />else{<br />cell.setCellType(cell.CELL_TYPE_STRING);<br />String value = cellToString(cell);<br />data[i][j] = value; <br />}<br />}<br />} <br />} <br /><br />return data;<br /><br />Tried a lot to resolve this error but unable to.Please help.Venkateshhttps://www.blogger.com/profile/11550798616971100812noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-3270201409148533342017-09-25T01:34:59.925-07:002017-09-25T01:34:59.925-07:00Please note that if using eclipse you will need to...Please note that if using eclipse you will need to install testng through the eclipse marketplace, as well if on linux or mac change suitebase.java to use forward slashes or the path won't workAnonymoushttps://www.blogger.com/profile/01982345674564169048noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-30132857128587664232017-06-16T08:27:28.058-07:002017-06-16T08:27:28.058-07:00Can someone explain below lines:
FilePath = TestC...Can someone explain below lines:<br /><br />FilePath = TestCaseListExcelOne;<br /><br />return SuiteUtility.GetTestDataUtility(FilePath, TestCaseName);<br /><br />Are we passing the objects directly.abchttps://www.blogger.com/profile/14058305306185155026noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-32796734834785338152017-02-27T22:13:15.406-08:002017-02-27T22:13:15.406-08:00Still am seeing below error in Read_XLS.Java file....Still am seeing below error in Read_XLS.Java file. Changed to XSSF and used xslx files.<br />"XSSFWorkbook cannot be resolved to a type".How to fix it?padmakarhttps://www.blogger.com/profile/05134206139008313939noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-49938165845818352472016-12-17T06:46:41.628-08:002016-12-17T06:46:41.628-08:00Hi,
Thanks for your such a nice tutorial on selen...Hi,<br /><br />Thanks for your such a nice tutorial on selenium.<br />I have followed all the steps given from 1 to 7 but i am getting error <br />"The static field Cell.CELL_TYPE_STRING should be accessed in a static way"<br />in Read_XLS.java file in the following line.<br />Object data[][] = new Object[rowNum-1][colNum-2];<br /> <br /> for (int i=0; i<rowNum-1; i++){<br /> HSSFRow row = ws.getRow(i+1);<br /> for(int j=0; j< colNum-2; j++){ <br /> if(row==null){<br /> data[i][j] = "";<br /> }<br /> else{<br /> HSSFCell cell = row.getCell(j); <br /> <br /> if(cell==null){<br /> data[i][j] = ""; <br /> }<br /> else{<br /> cell.setCellType(cell.CELL_TYPE_STRING);<br /> String value = cellToString(cell);<br /> data[i][j] = value; <br /> }<br /> }<br /> } <br /> } <br /><br /> return data;<br /><br />Tried a lot to resolve this error but unable to.Please help.<br />Anonymoushttps://www.blogger.com/profile/01279324418826738052noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-68269143740631113462016-12-15T02:10:40.174-08:002016-12-15T02:10:40.174-08:00HI,
I'm getting the following error can you p...HI,<br /><br />I'm getting the following error can you please help.<br /><br /><br />java.lang.RuntimeException: java.lang.RuntimeException: unsupported cell<br /> at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:45)<br /> at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:110)<br /> at org.testng.internal.Parameters.handleParameters(Parameters.java:436)<br /> at org.testng.internal.Invoker.handleParameters(Invoker.java:1253)<br /> at org.testng.internal.Invoker.createParameters(Invoker.java:980)<br /> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1070)<br /> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)<br /> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)<br /> at org.testng.TestRunner.privateRun(TestRunner.java:753)<br /> at org.testng.TestRunner.run(TestRunner.java:607)<br /> at org.testng.SuiteRunner.runTest(SuiteRunner.java:368)<br /> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:363)<br /> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:321)<br /> at org.testng.SuiteRunner.run(SuiteRunner.java:270)<br /> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)<br /> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)<br /> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1284)<br /> at org.testng.TestNG.runSuitesLocally(TestNG.java:1209)<br /> at org.testng.TestNG.runSuites(TestNG.java:1124)<br /> at org.testng.TestNG.run(TestNG.java:1096)<br /> at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)<br /> at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)<br /> at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)<br />Caused by: java.lang.RuntimeException: unsupported cell<br /> at com.stta.utility.Read_XLS.cellToString(Read_XLS.java:226)<br /> at com.stta.utility.Read_XLS.retrieveTestData(Read_XLS.java:202)<br /> at com.stta.utility.SuiteUtility.getTestDataUtility(SuiteUtility.java:28)<br /> at com.stta.SuiteOne.SuiteOneCaseOne.SuiteOneCaseOneData(SuiteOneCaseOne.java:47)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br /> at java.lang.reflect.Method.invoke(Unknown Source)<br /> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)<br /> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:51)<br /> at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:41)<br /> ... 22 more<br /><br />anihttps://www.blogger.com/profile/11230276401538546888noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-36501422159790885962016-11-30T20:01:47.079-08:002016-11-30T20:01:47.079-08:00I had same issue, but resolved it.
Please convert ...I had same issue, but resolved it.<br />Please convert to TesNG and add import org.testng.annotations.Test for this classRamseshttps://www.blogger.com/profile/15442610788282734132noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-21249636187001341712016-10-03T19:01:10.015-07:002016-10-03T19:01:10.015-07:00Hello,
I just started learning and stuck at step t...Hello,<br />I just started learning and stuck at step to execute . I ma getting init() method undefined error , please help me Kamranhttps://www.blogger.com/profile/11998901618245722609noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-28665443822181683512016-09-12T05:13:57.408-07:002016-09-12T05:13:57.408-07:00@ All - Please add all the jars and follow each st...@ All - Please add all the jars and follow each step else you will run through errors. <br /><br />Arvind - thanks for tutorial for a beginner it helps a lot.<br /><br />In Suiteonecaseone. Java file - I cant understand code below:<br /><br />TestCaseName = this.getClass().getSimpleName(); abchttps://www.blogger.com/profile/14058305306185155026noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-37345420750411968512016-09-10T05:52:40.961-07:002016-09-10T05:52:40.961-07:00I resolve the issue by deleting all jars and addin...I resolve the issue by deleting all jars and adding same jars in the build path configuration.<br />lekhahttps://www.blogger.com/profile/13973537031707572328noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-58021213223439797632016-09-09T09:16:03.448-07:002016-09-09T09:16:03.448-07:00I have same issue , How did you resolve itI have same issue , How did you resolve itlekhahttps://www.blogger.com/profile/13973537031707572328noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-55308216167896309842016-09-09T06:13:43.573-07:002016-09-09T06:13:43.573-07:00Hi Aravind,
Thank you for your tutorial. I have b...Hi Aravind,<br /><br />Thank you for your tutorial. I have been doing it since the beginning. And only this I have encountered an error like this "Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -protocol<br />at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)<br />at com.beust.jcommander.JCommander.parse(JCommander.java:282)<br />at com.beust.jcommander.JCommander.parse(JCommander.java:265)<br />at com.beust.jcommander.JCommander.(JCommander.java:210)<br />at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:162)"<br /><br />Do you know what is this mean?lekhahttps://www.blogger.com/profile/13973537031707572328noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-36744678322920870212016-08-02T05:38:05.758-07:002016-08-02T05:38:05.758-07:00 Default test
Tests run: 1, Failures: 0, Skip... Default test<br /> Tests run: 1, Failures: 0, Skips: 1<br />===============================================<br /><br /><br />===============================================<br />Default suite<br />Total tests run: 1, Failures: 0, Skips: 1<br />===============================================<br /><br />[TestNG] Time taken by org.testng.reporters.XMLReporter@18515783: 10 ms<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\junitreports\TEST-com.stta.SuiteOne.SuiteOneCaseOne.xml<br />[Utils] Directory E:\backup\Training\WDDF\test-output\junitreports exists: true<br />[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@68f92ae2: 20 ms<br />[TestNG] Time taken by org.testng.reporters.EmailableReporter2@349f754: 13 ms<br />[TestNG] Time taken by org.testng.reporters.jq.Main@172d40de: 83 ms<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\toc.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\Default test.properties<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\index.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\main.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\groups.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\classes.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\reporter-output.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\methods-not-run.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\Default suite\testng.xml.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old\Default suite exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\old\index.html<br />[Utils] Directory E:\backup\Training\WDDF\test-output\old exists: true<br />[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@761df304: 73 ms<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\testng-failed.xml<br />[Utils] Directory E:\backup\Training\WDDF\test-output exists: true<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\Default suite\testng-failed.xml<br />[Utils] Directory E:\backup\Training\WDDF\test-output\Default suite exists: true<br />[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 12 ms<br />nishadhttps://www.blogger.com/profile/06215727326168917424noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-19775520280177255782016-08-02T05:37:41.164-07:002016-08-02T05:37:41.164-07:00[TestNG] Running:
C:\Users\Nishad\AppData\Local\...[TestNG] Running:<br /> C:\Users\Nishad\AppData\Local\Temp\testng-eclipse-132303544\testng-customsuite.xml<br /><br />FilePath Is : com.stta.utility.Read_XLS@5e7ef926<br />TestCaseName Is : SuiteOneCaseOne<br />[Utils] Attempting to create E:\backup\Training\WDDF\test-output\Default suite\Default test.xml<br />[Utils] Directory E:\backup\Training\WDDF\test-output\Default suite exists: true<br />SKIPPED: SuiteOneCaseOneTest<br />java.lang.NoClassDefFoundError: com/google/common/primitives/Ints<br /> at org.testng.internal.annotations.JDK15TagFactory.createDataProviderTag(JDK15TagFactory.java:335)<br /> at org.testng.internal.annotations.JDK15TagFactory.createTag(JDK15TagFactory.java:59)<br /> at org.testng.internal.annotations.JDK15AnnotationFinder.findAnnotation(JDK15AnnotationFinder.java:217)<br /> at org.testng.internal.annotations.JDK15AnnotationFinder.findAnnotation(JDK15AnnotationFinder.java:111)<br /> at org.testng.internal.Parameters.findDataProvider(Parameters.java:326)<br /> at org.testng.internal.Parameters.findDataProvider(Parameters.java:261)<br /> at org.testng.internal.Parameters.handleParameters(Parameters.java:418)<br /> at org.testng.internal.Invoker.handleParameters(Invoker.java:1240)<br /> at org.testng.internal.Invoker.createParameters(Invoker.java:980)<br /> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1070)<br /> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)<br /> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)<br /> at org.testng.TestRunner.privateRun(TestRunner.java:746)<br /> at org.testng.TestRunner.run(TestRunner.java:600)<br /> at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)<br /> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)<br /> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)<br /> at org.testng.SuiteRunner.run(SuiteRunner.java:268)<br /> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)<br /> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)<br /> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)<br /> at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)<br /> at org.testng.TestNG.runSuites(TestNG.java:1104)<br /> at org.testng.TestNG.run(TestNG.java:1076)<br /> at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)<br /> at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)<br /> at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)<br />Caused by: java.lang.ClassNotFoundException: com.google.common.primitives.Ints<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)<br /> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)<br /> ... 27 morenishadhttps://www.blogger.com/profile/06215727326168917424noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-80367196666774985112016-08-02T05:36:27.527-07:002016-08-02T05:36:27.527-07:00Not getting proper output
Not getting proper output<br />nishadhttps://www.blogger.com/profile/06215727326168917424noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-50310198850957304392016-07-28T01:04:20.131-07:002016-07-28T01:04:20.131-07:00Exception in thread "main" java.lang.NoC...Exception in thread "main" java.lang.NoClassDefFoundError: com/stta/suiteOne/SuiteOneCaseOne (wrong name: com/stta/SuiteOne/SuiteOneCaseOne)<br /> at java.lang.ClassLoader.defineClass1(Native Method)<br /> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)<br /> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)<br /> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)<br /> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)<br /> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br /> at org.testng.internal.ClassHelper.forName(ClassHelper.java:103)<br /> at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:518)<br /> at org.testng.TestNG.configure(TestNG.java:1384)<br /> at org.testng.TestNG.privateMain(TestNG.java:1345)<br /> at org.testng.TestNG.main(TestNG.java:1324)<br />C:\Users\Bhagwan\AppData\Local\NetBeans\Cache\8.1\executor-snippets\junit.xml:138: The following error occurred while executing this line:<br />C:\Users\Bhagwan\AppData\Local\NetBeans\Cache\8.1\executor-snippets\junit.xml:115: Java returned: 1<br />BUILD FAILED (total time: 0 seconds)<br />Anonymoushttps://www.blogger.com/profile/01365709358775662913noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-41740715884350039252016-06-15T01:03:18.652-07:002016-06-15T01:03:18.652-07:00This is due to the wrong path or notation given fo...This is due to the wrong path or notation given for the file.<br /><br />As @Vijaykumar says, you need to update line 14,16,18 from SuiteBase.java.<br /><br />From my case, I just change the notation '\\src' to '//src' for all path(line 14,16,18).<br /><br />Check your error message; <br /><br />***Mine was: java.io.FileNotFoundException: /home/swapnil/Documents/Backup/Training/WDDF\src\com\stta\ExcelFiles\TestSuiteList.xls (No such file or directory)<br /><br /><br />It is clear showing the variations for my file path. Somewhere it's '/' notation and somewhere its '\'. I just renamed it and problem solved.. :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-89463427731600641702016-06-02T03:05:00.810-07:002016-06-02T03:05:00.810-07:00replace HSSF to XSSF if you are using current POI,...replace HSSF to XSSF if you are using current POI, it will read yor .xlsx file and resolve all error.BHUPESHhttps://www.blogger.com/profile/07427954381811051267noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-55244461918064919752016-06-02T02:08:23.416-07:002016-06-02T02:08:23.416-07:00replace All HSSF with XSSF and use .xlsx filesreplace All HSSF with XSSF and use .xlsx filesBHUPESHhttps://www.blogger.com/profile/07427954381811051267noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-1382805517946412662016-06-01T06:49:40.909-07:002016-06-01T06:49:40.909-07:00System.getProperty("user.dir") -> it ...System.getProperty("user.dir") -> it will automatically take your folder directory. <br />make another java file and print this. you will get your directory path.BHUPESHhttps://www.blogger.com/profile/07427954381811051267noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-42011795192154308332016-05-30T04:00:22.884-07:002016-05-30T04:00:22.884-07:00Hello ,
I have got same null Pint Exception Error...Hello ,<br /><br />I have got same null Pint Exception Error .<br /><br />java.lang.NullPointerException<br /> at java.io.FileInputStream.(Unknown Source)<br /> at java.io.FileInputStream.(Unknown Source)<br /> at com.stta.utility.Read_XLS.(Read_XLS.java:24)<br /> at com.stta.TestSuiteBase.SuiteBase.init(SuiteBase.java:14)<br /> at com.stta.SuiteOne.SuiteOneCaseOne.checkCaseToRun(SuiteOneCaseOne.java:20)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br /> at java.lang.reflect.Method.invoke(Unknown Source)<br /> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)<br /> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:514)<br /> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215)<br /> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)<br /> at org.testng.TestRunner.beforeRun(TestRunner.java:656)<br /> at org.testng.TestRunner.run(TestRunner.java:624)<br /> at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)<br /> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)<br /> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)<br /> at org.testng.SuiteRunner.run(SuiteRunner.java:268)<br /> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)<br /> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)<br /> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)<br /> at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)<br /> at org.testng.TestNG.run(TestNG.java:1064)<br /> at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)<br /> at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)<br /> at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-9409192242000263942016-05-25T04:41:28.466-07:002016-05-25T04:41:28.466-07:00Hi,
the file path result shows as
FilePath Is : ...Hi,<br /><br />the file path result shows as <br />FilePath Is : com.stta.utility.Read_XLS@62f1ddd3 <br /><br />this is not showing the actual path of the file. please help<br />The following code is there in the SuiteBase.java<br /><br />TestCaseListExcelOne = new Read_XLS(System.getProperty("user.dir")+"\\src\\com\\stta\\ExcelFiles\\SuiteOne.xls");<br /><br />And the SuiteOneCaseOne.java shows the following<br />FilePath = TestCaseListExcelOne;<br />Anonymoushttps://www.blogger.com/profile/02991914820791223959noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-71663830532688388432016-05-24T11:56:22.370-07:002016-05-24T11:56:22.370-07:00Hello,
I have been learning Selenium with the hel...Hello,<br /><br />I have been learning Selenium with the help of you Blog. Thank you so much for that.<br /><br />I have a doubt... You have called the Init() method without any Object.<br /><br />Is it possible to call the Base class method without any Object in the Derived class.<br /><br />Could you please Clarify??suriahttps://www.blogger.com/profile/04916848049849005948noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-22077710141203690652016-05-20T23:42:24.330-07:002016-05-20T23:42:24.330-07:00Hi Sir,
Please help me in resolving these two err...Hi Sir,<br /><br />Please help me in resolving these two errors:<br /><br />TestCaseListExcelOne cannot be resolved to a variable <br /><br />The method init() is undefined for the type SuiteOneCaseOne <br />Anonymoushttps://www.blogger.com/profile/08693834455146144025noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-46841986778136955462016-05-12T03:05:57.919-07:002016-05-12T03:05:57.919-07:00Hi,
Even I am get the same Null pointer exception...Hi, <br />Even I am get the same Null pointer exception. And its pointing to Read_XLS.java file on the below code line....<br /><br />ipstr = new FileInputStream(filelocation);<br /><br />Anything to change in the above line?<br /><br /><br />Below is the exception.<br />java.lang.NullPointerException<br /> at java.io.FileInputStream.(Unknown Source)<br /> at java.io.FileInputStream.(Unknown Source)<br /> at com.stta.utility.Read_XLS.(Read_XLS.java:25)Anonymousnoreply@blogger.com