Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code and POM change done #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
7 changes: 4 additions & 3 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.6
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<type>maven-plugin</type>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
Expand Down
Binary file added screenshotsfreecrmloginpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/test/java/com/crm/qa/testcases/FreeCrmTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class FreeCrmTest {

@BeforeMethod
public void setUp() throws Exception {
System.setProperty("webdriver.chrome.driver", "/Users/naveenkhunteta/Downloads/chromedriver");
System.setProperty("webdriver.chrome.driver", "F:\\Mukesh\\Pen Driver\\Selenium\\chromedriver_win32\\chromedriver.exe");
driver = new ChromeDriver();
js = (JavascriptExecutor) driver;
driver.get("https://www.freecrm.com/index.html");
Expand Down Expand Up @@ -83,7 +83,7 @@ public static void takeScreenshot(String fileName) throws IOException{
File src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
// now copy the screenshot to desired location using copyFile //method
FileUtils.copyFile(src,
new File("/Users/NaveenKhunteta/Documents/MyPOMFramework/PageObjectModel/screenshots/" + fileName +".png"));
new File("C:\\Users\\Mukesh\\Desktop\\JavaTest\\PageObjectModel\\screenshots" + fileName +".png"));

}

Expand Down
5 changes: 0 additions & 5 deletions target/classes/META-INF/MANIFEST.MF

This file was deleted.

This file was deleted.

This file was deleted.

Binary file removed target/classes/com/crm/qa/base/TestBase.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/ContactsPage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/DealsPage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/HomePage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/LoginPage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/SignUpPage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/pages/TasksPage.class
Binary file not shown.
Binary file removed target/classes/com/crm/qa/util/TestUtil.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions target/classes/testng.xml

This file was deleted.

11 changes: 0 additions & 11 deletions target/classes/testng_sanity.xml

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading