Removed fitnesse.
This commit is contained in:
parent
9359042f68
commit
7c1ce28ac5
FitNesseRoot
fitnesse
pom.xml@ -1,5 +0,0 @@
|
||||
|script |Log in |
|
||||
|click on internal login |
|
||||
|enter username|!-stina@example.com-!|and password|stina|
|
||||
|ensure |we are on the start page for students |
|
||||
|quit |
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Help></Help>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Suites></Suites>
|
||||
<Test/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
@ -1 +0,0 @@
|
||||
!contents -R2 -g -p -f -h
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Suite/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
@ -1,20 +0,0 @@
|
||||
|script |Notifications are on |
|
||||
|click on internal login |
|
||||
|enter username|!-admin@example.com-!|and password|aey7ru8aefei0jaW2wo9eX8EiShi0aan|
|
||||
|turn on notifications |
|
||||
|quit |
|
||||
|
||||
|script |Switch project state |
|
||||
|click on internal login |
|
||||
|enter username |!-stina@example.com-!|and password|stina|
|
||||
|switch project state to red|help |
|
||||
|click forum link |
|
||||
|ensure |forum thread is created |
|
||||
|quit |
|
||||
|
||||
|script |Notification has gone out |
|
||||
|click on internal login |
|
||||
|enter username|!-eric@example.com-!|and password|eric|
|
||||
|click notification link |
|
||||
|ensure |a notification has gone out |
|
||||
|quit |
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help></Help>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites>sprint</Suites>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
@ -1 +0,0 @@
|
||||
!contents -R2 -g -p -f -h
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Help></Help>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Suite/>
|
||||
<Suites></Suites>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
@ -1,2 +0,0 @@
|
||||
|import |
|
||||
|se.su.dsv.scipro.fitnesse.fixtures|
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
@ -1,15 +0,0 @@
|
||||
!*> '''Set up'''
|
||||
${maven.classpath}
|
||||
|
||||
!path fitnesse/target/test-classes
|
||||
!path core/target/classes
|
||||
!path view/target/classes
|
||||
|
||||
!define REMOTE_DEBUG_COMMAND {java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp %p %m}
|
||||
!define TEST_SYSTEM {slim}
|
||||
|
||||
|import |
|
||||
|se.su.dsv.scipro.fitnesse.fixtures|
|
||||
*!
|
||||
|
||||
!contents -R2 -g -p -f -ha
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suite/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
@ -1 +0,0 @@
|
||||
|FrontPage||10:22:02 ti, sep 24, 2013|
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
@ -1,82 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<parent>
|
||||
<groupId>se.su.dsv.scipro</groupId>
|
||||
<artifactId>SciPro</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>fitnesse</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-java</artifactId>
|
||||
<version>${selenium.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.fitnesse</groupId>
|
||||
<artifactId>fitnesse</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
<testResource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/test/resources</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
</build>
|
||||
<properties>
|
||||
<url>http://localhost:8080/</url>
|
||||
</properties>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>NON_LOCAL</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<url>https://thesis3.dsv.su.se</url>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
@ -1,14 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse;
|
||||
|
||||
import fitnesse.junit.FitNesseSuite;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static fitnesse.junit.FitNesseSuite.*;
|
||||
|
||||
@RunWith(FitNesseSuite.class)
|
||||
@Name("FrontPage")
|
||||
@FitnesseDir("../")
|
||||
@ExcludeSuiteFilter("sprint")
|
||||
@OutputDir(systemProperty = "java.io.tmpdir", pathExtension = "fitnesse")
|
||||
public class FitnesseSuite {
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse.fixtures;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
|
||||
import org.openqa.selenium.support.ui.ExpectedConditions;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
public abstract class AbstractFixture {
|
||||
protected HtmlUnitDriver driver;
|
||||
protected String url;
|
||||
private final Properties load;
|
||||
|
||||
public AbstractFixture() throws Exception {
|
||||
load = load();
|
||||
driver = new HtmlUnitDriver();
|
||||
url = load.getProperty("url");
|
||||
driver.get(url);
|
||||
}
|
||||
|
||||
public static Properties load() throws Exception {
|
||||
Properties properties = new Properties();
|
||||
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("url.properties");
|
||||
properties.load(in);
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void quit(){
|
||||
driver.quit();
|
||||
}
|
||||
|
||||
public void clickOnInternalLogin(){
|
||||
waitForComponent(byPath("internal"));
|
||||
driver.findElement(byPath("internal")).click();
|
||||
}
|
||||
|
||||
public void enterUsernameAndPassword(String username, String password){
|
||||
driver.findElement(By.name("username")).sendKeys(username);
|
||||
driver.findElement(By.name("password")).sendKeys(password);
|
||||
driver.findElement(By.name("password")).submit();
|
||||
}
|
||||
|
||||
protected String path(String path){
|
||||
return "//a[@wicketpath='" + path + "']";
|
||||
}
|
||||
|
||||
protected By byPath(String path){
|
||||
return By.xpath(path(path));
|
||||
}
|
||||
|
||||
protected void waitForComponent(By by) {
|
||||
WebDriverWait wait = new WebDriverWait(driver, 3);
|
||||
wait.until(ExpectedConditions.visibilityOfElementLocated(by));
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse.fixtures;
|
||||
|
||||
public class LogIn extends AbstractFixture {
|
||||
public LogIn() throws Exception {
|
||||
super();
|
||||
}
|
||||
|
||||
public boolean weAreOnTheStartPageForStudents(){
|
||||
return driver.findElement(byPath("tabMenu_menuContainer_menuList_0_menuItem")).isDisplayed();
|
||||
}
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse.fixtures;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
|
||||
public class NotificationHasGoneOut extends AbstractFixture {
|
||||
public NotificationHasGoneOut() throws Exception {
|
||||
super();
|
||||
}
|
||||
|
||||
public void clickNotificationLink() {
|
||||
driver.findElement(byPath("headerPanel_notificationsMenuPanel_menuContainer_menuList_1_menuItem")).click();
|
||||
}
|
||||
|
||||
public boolean aNotificationHasGoneOut(){
|
||||
String notificationText = "Forum post: Project state changed: help needed to proceed";
|
||||
waitForComponent(By.partialLinkText(notificationText));
|
||||
return driver.findElement(By.partialLinkText(notificationText)).isDisplayed();
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse.fixtures;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.ExpectedConditions;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
public class NotificationsAreOn extends AbstractFixture {
|
||||
public NotificationsAreOn() throws Exception {
|
||||
super();
|
||||
}
|
||||
|
||||
public void turnOnNotifications(){
|
||||
driver.get(url + "admin/settings/notifications");
|
||||
WebElement stateChangedWebCheckbox = driver.findElement(By.name("tabs:panel:projectEvents:events:6:methods:0:method"));
|
||||
if (!stateChangedWebCheckbox.isSelected()){
|
||||
stateChangedWebCheckbox.click();
|
||||
}
|
||||
|
||||
driver.findElement(byPath("tabs_tabs-container_tabs_1_link")).click();
|
||||
|
||||
WebDriverWait wait = new WebDriverWait(driver, 3);
|
||||
By checkboxPath = By.name("tabs:panel:projectReceivers:events:6:configurations:0:configuration");
|
||||
wait.until(ExpectedConditions.visibilityOfElementLocated(checkboxPath));
|
||||
WebElement newForumPostSupervisorCheckbox = driver.findElement(checkboxPath);
|
||||
if (!newForumPostSupervisorCheckbox.isSelected()){
|
||||
newForumPostSupervisorCheckbox.click();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
package se.su.dsv.scipro.fitnesse.fixtures;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.Select;
|
||||
|
||||
public class SwitchProjectState extends AbstractFixture {
|
||||
|
||||
public SwitchProjectState() throws Exception {
|
||||
super();
|
||||
}
|
||||
|
||||
public void switchProjectStateToRed(String reason) {
|
||||
|
||||
WebElement element = driver.findElement(By.name("projectStatePanel:dropDown"));
|
||||
Select dropdown = new Select(element);
|
||||
dropdown.selectByVisibleText("Help needed to proceed");
|
||||
|
||||
waitForComponent(By.name("reasonArea:input"));
|
||||
|
||||
WebElement reasonInput = driver.findElement(By.name("reasonArea:input"));
|
||||
reasonInput.sendKeys(reason);
|
||||
driver.findElement(By.name(":submit")).click();
|
||||
}
|
||||
|
||||
public void clickForumLink(){
|
||||
driver.findElement(byPath("projectSub_menuContainer_menuList_4_menuItem")).click();
|
||||
}
|
||||
|
||||
public boolean forumThreadIsCreated(){
|
||||
return driver.findElement(By.partialLinkText("Project state changed: help needed to proceed")).isDisplayed();
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
url = ${url}
|
1
pom.xml
1
pom.xml
@ -12,7 +12,6 @@
|
||||
<modules>
|
||||
<module>core</module>
|
||||
<module>view</module>
|
||||
<module>fitnesse</module>
|
||||
<module>daisy-integration</module>
|
||||
</modules>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user