Need a hybrid keyword farmeowrk with test ng | Selenium Forum
M
Posted on 30/11/2015
Hello,

I need a hybrid framework with test ng so that i can include it in my project. i download your code but it is mismatch, some script having excel some don't have. some having other type code. i am unable to understand and i am unable to include it in my project. Please give me a general framework. which is running with any website. It have logs, excel sheet, screenshots in a proper arrangement which is running. excel sheet have 3 level suite level, test case level and row level. It have keywords with some programme.

Please send as soon as possible

M
Replied on 30/11/2015

please send me module 21 hybrid test ng keyword framework because when i am looking in video it is another and when i am looking in code it is another. send me rediff.in framework which you are using in video.


M
Replied on 30/11/2015

your code arrangement is not just like you are showing in video and this is very much required for fresher in initial implementation.


M
Replied on 30/11/2015

i want to say that in module 21 in videos you describe about rediff.in farmework.
can you send me this because this framework which is send to me is not complete.


M
Replied on 01/12/2015

this framework doesn't have log mechanism.


M
Replied on 01/12/2015

sorry about earlier.


M
Replied on 02/12/2015

Thanks for providing this i am finding anything in it.

i just import you framework in my eclipse and configure it with maven. when i am running this it giving error just after open mozilla.

In a OpenBrowser function it is giving error "Unable to connect". Its not going on navigate function.

i am attaching screen shot.

Responsive image

M
Replied on 02/12/2015

reduce your firefox version.


M
Replied on 02/12/2015

one thing happening here after implement your framework that data is not changing. i am changing data in excel but when i am printing data in getData() function, its giving me always same data. just if i am change Mozilla to chrome but it giving always Mozilla.

Please guide.


M
Replied on 02/12/2015

many many thanks....right now its resolve.


M
Replied on 02/12/2015

which is latest version that work please guide....right now i am using 42.0


M
Replied on 02/12/2015

what is the version of selenium you're using?

it depends on that.


M
Replied on 03/12/2015

i am using your pom.xml.
Project create by maven. i am getting one another socket error
----------------------------------------------------------------------------------------------
This is pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.fladmin.framework</groupId>
<artifactId>Firelight_Admin_Framework</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

<name>Firelight_Admin_Framework</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
<!-- Selenium -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.44.0</version>
</dependency>
<!-- POI -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.1</version>
</dependency>

<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>2.3.0</version>
</dependency>
<!-- Log4J -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<!-- JavaMail -->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>


</dependencies>
<build>

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>

</plugins>
</build>
<reporting>
<plugins>
<!-- TestNG-xslt related configuration. -->
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>
<configuration>
<!-- Output directory for the testng xslt report -->
<outputdir>/target/testng-xslt-report</outputdir>
<sorttestcaselinks>true</sorttestcaselinks>
<testdetailsfilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testdetailsfilter>
<showruntimetotals>true</showruntimetotals>
</configuration>
</plugin>
</plugins>
</reporting>

<pluginRepositories>
<pluginRepository>
<id>reporty-ng</id>
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url>
</pluginRepository>
</pluginRepositories>
</project>
------------------------------------------------------------------------------------------

will you give me latest updated version pom.xml.
following Error i am getting on running project-
----------------------------------------------------------------------------------------------
------------------------------------
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at org.testng.remote.strprotocol.SerializedMessageSender.sendMessage(SerializedMessageSender.java:21)
at org.testng.remote.strprotocol.MessageHub.sendMessage(MessageHub.java:44)
at org.testng.remote.strprotocol.RemoteTestListener.onTestStart(RemoteTestListener.java:49)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1832)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1807)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
at org.testng.TestRunner.privateRun(TestRunner.java:757)
at org.testng.TestRunner.run(TestRunner.java:608)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1154)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
at org.testng.TestNG.run(TestNG.java:999)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:203)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)


M
Replied on 03/12/2015

try to change the testng version. there is a bug in testng jar.


M
Replied on 04/12/2015

Hmm......
Which version ??


M
Replied on 04/12/2015

i request please send new updated POM.XML which have all latest version of selenium and other thing.


M
Replied on 04/12/2015

i'm afraid we don't have the updated pom.xml at this point.


M
Replied on 07/12/2015

After updating eclipse and testng i am getting exception "Cannot instantiate class" after running testng.xml.


M
Replied on 07/12/2015

Exception <org.testng.TestNGException: Cannot instantiate class> generate after running testng.xml.

i tried some following method but not work
mvn eclipse:clean
mvn eclipse:eclipse
and then Project<Clean

check all that test class name and path but problem not resolve.
Please reply as soon as possible.

Thanks...........

Responsive image