socket exception is a very broad error
take a look at this q/a for all the major reason
http://stackoverflow.com/questions/2126607/official-reasons-for-software-caused-connection-abort-socket-write-error
if it is not solved then reply again.
hi
Thanks for the replay.
I have seen the stackoverflow page.
The only thing I can think of is the Xls_reader file which we are using.
This file has some file input output operations.
I have had no problems in the past with this file, but now for some reason with this maven project 2 imports are not used.
They are
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
Just thinking am I missing a dependency in my POM.xml file?
Sorry not able to solve this problem yet.
[quote:f5sks7il]2 imports are not used.
They are
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;[/quote:f5sks7il]
what do you mean by not used?
I just get a yellow dot near all the imported files.
And the message shown when I go over that is "The import org.apache.poi.hssf.usermodel.HSSFCellStyle is never used"
Please see the attached screenshot.
Thanks
Have checked POI api and have downloaded xls_reader again.
Problem still remains
Here are the dependencies for POI api's in my POM.xml file
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>2.4.0</version>
</dependency>
Regards
Some more additional information if it helps
I am getting Errors in the Error tab they are
[TestNGLaunchConfigurationDelegate] Launching:
[TestNGLaunchShortcut] Examining Java element:[Working copy] Test1.java [in com.qtpselenium.framework.datadriven.suiteA [in src/test/java [in DataDrivenFramework_TestNG]]]
package com.qtpselenium.framework.datadriven.suiteA
import org.testng.annotations.DataProvider
import org.testng.annotations.Test
import com.qtpselenium.framework.datadriven.util.Utility
import com.qtpselenium.framework.datadriven.util.Xls_Reader
class Test1
void test1(String, String, String, String, String)
Object[][] getData()
Also not getting any results in the Testng results tab
Thanks
Here is the screenshot of Xls_Reader
Please see the attached screenshot.
Also attached the Java file which I am using from my project
Regards
Thanks
Uploading the project.
Please see the attached file DataDrivenFramework_TestNG.rar
Thanks again for all your help.
Regards
its working for me.
[attachment=0:2cafnc20]Screenshot (59).png[/attachment:2cafnc20]
try this
Go to Eclipse >Help>Eclipse marketPlace> type "TestNg" in search bar then update... then go to Window>Preference>TestNG, and uncheck the "Use Project TestNg jars" >OK.
Thanks now it works
This thing did the magic
<<Go to Eclipse >Help>Eclipse marketPlace> type "TestNg" in search bar then update... then go to Window>Preference>TestNG, and uncheck the "Use Project TestNg jars" >OK.>>
So was there something wrong with the configuration of Eclipse and TestNG? Just wanted to know as I know what to do next time it hits me.
Regards