This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupid>junit</groupid> | |
<artifactid>junit</artifactid> | |
<version>4.11</version> | |
</dependency> | |
<dependency> | |
<groupid>info.cukes</groupid> | |
<artifactid>cucumber-java</artifactid> | |
<version>1.0.0</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Simple chat engagement | |
Scenario: Agent log-ins into the system | |
Given Site url "*****" | |
When Agent name "*****" | |
And Agent password "*****" | |
And Site Id "******" | |
And Wait "100" | |
Then Agent entries to the system | |
Scenario: Agent set herself online |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AgentStepsDefinitions { | |
private static Agent agent = null; | |
private static Visitor visitor = null; | |
private static Boolean bDone = false; | |
//Class initilizing before the test, test = cucumber scenario | |
@Before | |
public void initialize(){ | |
if(agent==null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Cucumber.class) | |
@Cucumber.Options(format={"pretty", "html:target/cucumber"} , features = "end2end.feature") | |
public class Agent { | |
public WebDriver driver = null; | |
public Agent(){ | |
driver = new FirefoxDriver(); | |
} | |
//Insert fields on the log-in page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Visitor { | |
public WebDriver driver =null; | |
public Visitor(){ | |
driver = new FirefoxDriver(); | |
} | |
public boolean isChatEngagement() throws InterruptedException { | |
if(IsEngagement()==false){ | |
//Second try |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-context</artifactId> | |
<version>3.2.0.RELEASE</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>3.2.0.RELEASE</version> | |
</dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans .xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | |
<context:annotation-config /> | |
<context:component-scan base-package="bdd.liveperson.bdd"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Simple chat engagement | |
Scenario: Agent log-ins into the system | |
When Agent name "*******" | |
And Agent password "*******" | |
And Site Id "*******" | |
And Wait "100" | |
Then Agent entries to the system | |
Scenario: Agent set herself online | |
Given Agent inside the system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Agent { | |
@Autowired | |
private WebDriver adriver; | |
public WebDriver getAdriver() { | |
return adriver; | |
} | |
@Autowired | |
private URI asiteBase; |
OlderNewer