Skip to content

Commit c060f6d

Browse files
rathr1rathr1
rathr1
authored and
rathr1
committed
Uploaded the Course project
1 parent 2ef6c48 commit c060f6d

File tree

734 files changed

+62450
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

734 files changed

+62450
-0
lines changed

.classpath

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/ExternalJars"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Webdriver</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

AllMethodtestng.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
3+
<suite name="Suite" parallel="false">
4+
<test name="Annotations">
5+
<groups>
6+
<run>
7+
<include name="A"></include>
8+
</run>
9+
</groups>
10+
<classes>
11+
<class name="testcase.testOne.MainClass">
12+
13+
</class>
14+
</classes>
15+
</test> <!-- Annotations -->
16+
</suite> <!-- Suite -->

CreateJarbuild.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<project name="Selenium" default="createjar" basedir=".">
3+
<property file="build.properties" />
4+
5+
<path id="classpath" >
6+
<fileset dir="${lib.dir}" includes="**/*.jar" />
7+
<pathelement location="${bin.dir}" />
8+
</path>
9+
10+
<target name="compile">
11+
<javac srcdir="${src.dir}" classpathref="classpath"
12+
destdir="${bin.dir}" includeantruntime="false"
13+
includes="**/*.java" />
14+
</target>
15+
16+
<target name="createjar">
17+
<jar destfile="${jar.dir}/WebdriverFramework.jar" update="true" >
18+
<fileset dir="${bin.dir}">
19+
<include name="helper/" />
20+
<include name="resource/" />
21+
</fileset>
22+
</jar>
23+
</target>
24+
</project>

Databuild.xml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Generate-Report" basedir=".">
3+
4+
<target name="Clean">
5+
<delete failonerror="false" dir="test-output" />
6+
</target>
7+
8+
9+
<target name="Create" depends="Clean">
10+
<mkdir dir="test-output" />
11+
</target>
12+
13+
<path id="classpath" description="Set the class path for the required jar">
14+
<fileset dir="G:/Selenium Jars/poi-3.10-FINAL" includes="**/*.jar"></fileset>
15+
<pathelement location="C:/Junit/testng-6.8.jar" />
16+
<pathelement location="C:/Junit/selenium-server-standalone-2.44.0.jar" />
17+
<pathelement location="C:/Junit/log4j-1.2.15.jar" />
18+
<pathelement location="C:/Junit/commons-dbcp-1.4.jar" />
19+
<pathelement location="C:/Junit/commons-pool-1.4.jar" />
20+
<pathelement location="bin" />
21+
</path>
22+
23+
<taskdef name="TestNG-Ant" classpathref="classpath" classname="org.testng.TestNGAntTask"></taskdef>
24+
25+
<target name="Compile" depends="Create" >
26+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java" verbose="true">
27+
</javac>
28+
</target>
29+
30+
<target name="Run-Test" depends="Compile">
31+
<TestNG-Ant outputdir="test-output" haltonfailure="false" verbose="2" classpathref="classpath">
32+
<xmlfileset dir="." includes="testng.xml"/>
33+
</TestNG-Ant>
34+
</target>
35+
36+
<target name="Generate-Report" depends="Run-Test" description="Generate the Xlsx report using the testng-result.xml">
37+
<java classpathref="classpath" classname="reports.ExcelReportGenerator" ></java>
38+
</target>
39+
40+
41+
</project>

Hudsonbuild.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Generate-Report" basedir=".">
3+
4+
<!-- <target name="Clean">
5+
<delete failonerror="false" dir="test-output" />
6+
</target>
7+
8+
9+
<target name="Create" depends="Clean">
10+
<mkdir dir="test-output" />
11+
</target> -->
12+
13+
<path id="classpath" description="Set the class path for the required jar">
14+
<fileset dir="lib" includes="**/*.jar"></fileset>
15+
<pathelement location="bin" />
16+
</path>
17+
18+
<taskdef name="TestNG-Ant" classpathref="classpath" classname="org.testng.TestNGAntTask"></taskdef>
19+
20+
21+
22+
<target name="Compile">
23+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java" >
24+
</javac>
25+
</target>
26+
27+
<target name="Run-Test" depends="Compile">
28+
<TestNG-Ant outputdir="test-output" haltonfailure="false" verbose="2" classpathref="classpath">
29+
<xmlfileset dir="." includes="testng.xml"/>
30+
</TestNG-Ant>
31+
</target>
32+
33+
<target name="Generate-Report" depends="Run-Test" description="Generate the Xlsx report using the testng-result.xml">
34+
<java classpathref="classpath" classname="reports.ExcelReportGenerator" >
35+
<arg value="test-output"/>
36+
</java>
37+
</target>
38+
39+
40+
</project>

Linuxbuild.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Run-Test" basedir=".">
3+
4+
<path id="classpath" description="Set the class path for the required jar">
5+
<fileset dir="lib" includes="**/*.jar"></fileset>
6+
<pathelement location="bin" />
7+
</path>
8+
9+
<target name="Compile" >
10+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java">
11+
</javac>
12+
</target>
13+
14+
<target name="Run-Test" depends="Compile">
15+
<java classpathref="classpath" classname="testcase.TestYoutubeLinux"> </java>
16+
</target>
17+
</project>

Packbuild.xml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Run-Test" basedir=".">
3+
4+
<target name="Clean">
5+
<delete failonerror="false" dir="test-output" />
6+
</target>
7+
8+
9+
<target name="Create" depends="Clean">
10+
<mkdir dir="test-output" />
11+
</target>
12+
13+
<path id="classpath" description="Set the class path for the required jar">
14+
<fileset dir="G:/Selenium Jars/poi-3.10-FINAL" includes="**/*.jar"></fileset>
15+
<pathelement location="C:/Junit/testng-6.8.jar" />
16+
<pathelement location="C:/Junit/selenium-server-standalone-2.44.0.jar" />
17+
<pathelement location="C:/Junit/log4j-1.2.15.jar" />
18+
<pathelement location="C:/Junit/commons-dbcp-1.4.jar" />
19+
<pathelement location="C:/Junit/commons-pool-1.4.jar" />
20+
<pathelement location="bin" />
21+
</path>
22+
23+
<taskdef name="TestNG-Ant" classpathref="classpath" classname="org.testng.TestNGAntTask"></taskdef>
24+
25+
<target name="Compile" depends="Create" >
26+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java" verbose="true">
27+
</javac>
28+
</target>
29+
30+
<target name="Run-Test" depends="Compile">
31+
<TestNG-Ant outputdir="test-output" haltonfailure="false" verbose="2" classpathref="classpath">
32+
<xmlfileset dir="." includes="packtestng.xml"/>
33+
</TestNG-Ant>
34+
</target>
35+
</project>

Reportbuild.xml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Generate-Report" basedir=".">
3+
4+
<!-- <target name="Clean">
5+
<delete failonerror="false" dir="test-output" />
6+
</target>
7+
8+
9+
<target name="Create" depends="Clean">
10+
<mkdir dir="test-output" />
11+
</target> -->
12+
13+
<path id="classpath" description="Set the class path for the required jar">
14+
<fileset dir="C:/Junit" includes="**/*.jar">
15+
</fileset>
16+
<pathelement location="C:/Junit/testng-6.8.jar" />
17+
<pathelement location="C:/Junit/selenium-server-standalone-2.44.0.jar" />
18+
<pathelement location="bin" />
19+
</path>
20+
21+
<taskdef name="TestNG-Ant" classpathref="classpath" classname="org.testng.TestNGAntTask">
22+
</taskdef>
23+
24+
25+
26+
<target name="Compile">
27+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java" >
28+
</javac>
29+
</target>
30+
31+
<target name="report-testng" depends="Compile">
32+
<TestNG-Ant outputdir="test-output1" haltonfailure="false" verbose="2" classpathref="classpath">
33+
<xmlfileset dir="." includes="report-testng.xml"/>
34+
</TestNG-Ant>
35+
</target>
36+
37+
<target name="Run-Test" depends="report-testng">
38+
<TestNG-Ant outputdir="test-output2" haltonfailure="false" verbose="2" classpathref="classpath">
39+
<xmlfileset dir="." includes="report-testng_1.xml"/>
40+
</TestNG-Ant>
41+
</target>
42+
43+
44+
<target name="Generate-Report" depends="Run-Test" description="Generate the Xlsx report using the testng-result.xml">
45+
<java classpathref="classpath" classname="reports.ExcelReportGenerator" >
46+
<arg value="test-output1,test-output2"/>
47+
</java>
48+
</target>
49+
50+
51+
</project>
45 KB
Loading

Windowbuild.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<project name="TestNG" default="Run-Test" basedir=".">
3+
4+
<path id="classpath" description="Set the class path for the required jar">
5+
<fileset dir="lib" includes="**/*.jar">
6+
</fileset>
7+
<pathelement location="bin" />
8+
</path>
9+
10+
<target name="Compile" >
11+
<javac classpathref="classpath" includeantruntime="true" srcdir="src" destdir="bin" includes="**/*.java">
12+
</javac>
13+
</target>
14+
15+
<target name="Run-Test" depends="Compile">
16+
<java classpathref="classpath" classname="testcase.TestYoutube">
17+
</java>
18+
</target>
19+
20+
</project>

build.properties

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Directory used by Ant
2+
bin.dir=bin
3+
src.dir=src
4+
lib.dir=C:\\Junit
5+
jar.dir=C:\\Junit\\framework

chrome-testng.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
3+
<suite name="Suite" parallel="tests" thread-count="5" verbose="1">
4+
<test name="Chrome">
5+
<classes>
6+
<class name="seleniumgrid.ChromeTest"/>
7+
</classes>
8+
</test> <!-- Test -->
9+
</suite> <!-- Suite -->

0 commit comments

Comments
 (0)