Skip to content

Commit ae0c824

Browse files
committed
added successfully
0 parents  commit ae0c824

Some content is hidden

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

62 files changed

+1846
-0
lines changed

.classpath

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
5+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/cglib-nodep-3.2.4.jar"/>
6+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/commons-codec-1.10.jar"/>
7+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/commons-exec-1.3.jar"/>
8+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/commons-io-2.5.jar"/>
9+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/commons-lang3-3.5.jar"/>
10+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/commons-logging-1.2.jar"/>
11+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/cssparser-0.9.22.jar"/>
12+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/extentreports-java-2.41.2.zip"/>
13+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/geckodriver-v0.16.0-win64.zip"/>
14+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/gson-2.8.0.jar"/>
15+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/guava-21.0.jar"/>
16+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/hamcrest-core-1.3.jar"/>
17+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/htmlunit-2.26.jar"/>
18+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/htmlunit-core-js-2.26.jar"/>
19+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/htmlunit-driver-2.26.jar"/>
20+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/httpclient-4.5.3.jar"/>
21+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/httpcore-4.4.6.jar"/>
22+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/httpmime-4.5.3.jar"/>
23+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jar_files.zip"/>
24+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/javax.servlet-api-3.1.0.jar"/>
25+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jetty-client-9.4.3.v20170317.jar"/>
26+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jetty-http-9.4.3.v20170317.jar"/>
27+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jetty-io-9.4.1.v20170120.jar"/>
28+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jetty-util-9.4.1.v20170120.jar"/>
29+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jna-4.1.0.jar"/>
30+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/jna-platform-4.1.0.jar"/>
31+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/junit-4.12.jar"/>
32+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/neko-htmlunit-2.25.jar"/>
33+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/ngwebdriver-1.1.4.jar"/>
34+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/phantomjsdriver-1.4.0.jar"/>
35+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/sac-1.3.jar"/>
36+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-api-3.4.0.jar"/>
37+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-chrome-driver-3.4.0.jar"/>
38+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-edge-driver-3.4.0.jar"/>
39+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-firefox-driver-3.4.0.jar"/>
40+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-ie-driver-3.4.0.jar"/>
41+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-java-3.4.0.jar"/>
42+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-opera-driver-3.4.0.jar"/>
43+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-remote-driver-3.4.0.jar"/>
44+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-safari-driver-3.4.0.jar"/>
45+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/selenium-support-3.4.0.jar"/>
46+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/serializer-2.7.2.jar"/>
47+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/websocket-api-9.4.3.v20170317.jar"/>
48+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/websocket-client-9.4.3.v20170317.jar"/>
49+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/websocket-common-9.4.3.v20170317.jar"/>
50+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/xalan-2.7.2.jar"/>
51+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/xercesImpl-2.11.0.jar"/>
52+
<classpathentry kind="lib" path="C:/Users/sagar/Desktop/Sel 3.4/xml-apis-1.4.01.jar"/>
53+
<classpathentry kind="con" path="org.testng.TESTNG_CONTAINER"/>
54+
<classpathentry kind="output" path="bin"/>
55+
</classpath>

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>SeleniumFrameworkV2</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>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.8

ImportantNote.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Used in this project -
3+
NgWebdriver
4+
Screenshot
5+
Exception handeling
6+
TestNg
7+
8+
###################### For new script, do following steps ######################
9+
10+
Step 1 = Create a testNG class.
11+
Step 2 = Create a class with the name of your activity in an "activity" package -
12+
Step 3 = In activity class :
13+
3.1 Create a method with the name of your activity with prefix "do"
14+
Pass webdriver's object to it.
15+
3.2 Create object/objects of page/pages(which contains constructor and findby... methods) of which our script is going to execute
16+
(before this, create the class with the name of page-name in package : "pages".
17+
this class will contain the findByXpathAndClick, findByNameAndClick methods and parameterized constructor of that class
18+
pass reference of "webdriver" class as parameter)
19+
3.3 Do scenario of clicking, sendkeys.. etc etc, by using object/objects created in above step
20+
Create separate methods in activity class by clubbing chunks of code which will be usefull for "doActivity" method id activity class
21+
Step 4 = Use try catch for the object/objects creation and for scenario separately.
22+
Step 5 = After scenario, write below syntax for Log and Screenshot :-
23+
Common.WriteToFile();
24+
Step 6 = In SeleniumTLS.xml, make entry of our new testNG class for the execution.
25+
Step 7 = Make sure the syntax for concurrent or sequential running of all testNG classes.
26+
27+
28+
add try catch for all methods
29+
##################################################################################
30+
31+

bin/Selenium3Dec.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<suite name="Suite" parallel="false">
3+
<test name="Test">
4+
<classes>
5+
<class name="common.TestIndex"/>
6+
</classes>
7+
</test> <!-- Test -->
8+
</suite> <!-- Suite -->

bin/activity/Login.class

2.91 KB
Binary file not shown.

bin/common/Common.class

6.12 KB
Binary file not shown.

bin/common/Prerequisite.class

933 Bytes
Binary file not shown.

bin/common/TestIndex.class

1.89 KB
Binary file not shown.
906 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)