Skip to content

Commit a491406

Browse files
authored
Merge pull request #37 from Yuval-Roth/Acceptance-Tests
Acceptance tests
2 parents c48b5a0 + 8c50b76 commit a491406

10 files changed

Lines changed: 676 additions & 0 deletions

File tree

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,maven,java,visualstudiocode,macos
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,maven,java,visualstudiocode,macos
3+
4+
### Intellij+all ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/**/usage.statistics.xml
12+
.idea/**/dictionaries
13+
.idea/**/shelf
14+
15+
# AWS User-specific
16+
.idea/**/aws.xml
17+
18+
# Generated files
19+
.idea/**/contentModel.xml
20+
21+
# Sensitive or high-churn files
22+
.idea/**/dataSources/
23+
.idea/**/dataSources.ids
24+
.idea/**/dataSources.local.xml
25+
.idea/**/sqlDataSources.xml
26+
.idea/**/dynamic.xml
27+
.idea/**/uiDesigner.xml
28+
.idea/**/dbnavigator.xml
29+
30+
# Gradle
31+
.idea/**/gradle.xml
32+
.idea/**/libraries
33+
34+
# Gradle and Maven with auto-import
35+
# When using Gradle or Maven with auto-import, you should exclude module files,
36+
# since they will be recreated, and may cause churn. Uncomment if using
37+
# auto-import.
38+
# .idea/artifacts
39+
# .idea/compiler.xml
40+
# .idea/jarRepositories.xml
41+
# .idea/modules.xml
42+
# .idea/*.iml
43+
# .idea/modules
44+
# *.iml
45+
# *.ipr
46+
47+
# CMake
48+
cmake-build-*/
49+
50+
# Mongo Explorer plugin
51+
.idea/**/mongoSettings.xml
52+
53+
# File-based project format
54+
*.iws
55+
56+
# IntelliJ
57+
out/
58+
59+
# mpeltonen/sbt-idea plugin
60+
.idea_modules/
61+
62+
# JIRA plugin
63+
atlassian-ide-plugin.xml
64+
65+
# Cursive Clojure plugin
66+
.idea/replstate.xml
67+
68+
# SonarLint plugin
69+
.idea/sonarlint/
70+
71+
# Crashlytics plugin (for Android Studio and IntelliJ)
72+
com_crashlytics_export_strings.xml
73+
crashlytics.properties
74+
crashlytics-build.properties
75+
fabric.properties
76+
77+
# Editor-based Rest Client
78+
.idea/httpRequests
79+
80+
# Android studio 3.1+ serialized cache file
81+
.idea/caches/build_file_checksums.ser
82+
83+
### Intellij+all Patch ###
84+
# Ignore everything but code style settings and run configurations
85+
# that are supposed to be shared within teams.
86+
87+
.idea/*
88+
89+
!.idea/codeStyles
90+
!.idea/runConfigurations
91+
92+
### Java ###
93+
# Compiled class file
94+
*.class
95+
96+
# Log file
97+
*.log
98+
99+
# BlueJ files
100+
*.ctxt
101+
102+
# Mobile Tools for Java (J2ME)
103+
.mtj.tmp/
104+
105+
# Package Files #
106+
*.jar
107+
*.war
108+
*.nar
109+
*.ear
110+
*.zip
111+
*.tar.gz
112+
*.rar
113+
114+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
115+
hs_err_pid*
116+
replay_pid*
117+
118+
### macOS ###
119+
# General
120+
.DS_Store
121+
.AppleDouble
122+
.LSOverride
123+
124+
# Icon must end with two \r
125+
Icon
126+
127+
128+
# Thumbnails
129+
._*
130+
131+
# Files that might appear in the root of a volume
132+
.DocumentRevisions-V100
133+
.fseventsd
134+
.Spotlight-V100
135+
.TemporaryItems
136+
.Trashes
137+
.VolumeIcon.icns
138+
.com.apple.timemachine.donotpresent
139+
140+
# Directories potentially created on remote AFP share
141+
.AppleDB
142+
.AppleDesktop
143+
Network Trash Folder
144+
Temporary Items
145+
.apdisk
146+
147+
### macOS Patch ###
148+
# iCloud generated files
149+
*.icloud
150+
151+
### Maven ###
152+
target/
153+
pom.xml.tag
154+
pom.xml.releaseBackup
155+
pom.xml.versionsBackup
156+
pom.xml.next
157+
release.properties
158+
dependency-reduced-pom.xml
159+
buildNumber.properties
160+
.mvn/timing.properties
161+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
162+
.mvn/wrapper/maven-wrapper.jar
163+
164+
# Eclipse m2e generated files
165+
# Eclipse Core
166+
.project
167+
# JDT-specific (Eclipse Java Development Tools)
168+
.classpath
169+
170+
### VisualStudioCode ###
171+
.vscode/*
172+
!.vscode/settings.json
173+
!.vscode/tasks.json
174+
!.vscode/launch.json
175+
!.vscode/extensions.json
176+
!.vscode/*.code-snippets
177+
178+
# Local History for Visual Studio Code
179+
.history/
180+
181+
# Built Visual Studio Code Extensions
182+
*.vsix
183+
184+
### VisualStudioCode Patch ###
185+
# Ignore all local history of files
186+
.history
187+
.ionide
188+
189+
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,maven,java,visualstudiocode,macos
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CHROME_DRIVER_PATH=C:\\FINAL-PROJECT\\Code\\ims_project\\tests\\2023-mbt-04-14\\Selenium\\chromedriver-win64\\chromedriver-win64\\chromedriver.exe
2+
LOCAL_MOODLE_LINK=https://ims-project.cs.bgu.ac.il/
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>hellocucumber</groupId>
6+
<artifactId>hellocucumber</artifactId>
7+
<version>0.0.1</version>
8+
<packaging>jar</packaging>
9+
<name>Cucumber-Java Skeleton</name>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<java.version>11</java.version>
14+
</properties>
15+
16+
<dependencyManagement>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.junit</groupId>
20+
<artifactId>junit-bom</artifactId>
21+
<version>5.10.2</version>
22+
<type>pom</type>
23+
<scope>import</scope>
24+
</dependency>
25+
<dependency>
26+
<groupId>io.cucumber</groupId>
27+
<artifactId>cucumber-bom</artifactId>
28+
<version>7.15.0</version>
29+
<type>pom</type>
30+
<scope>import</scope>
31+
</dependency>
32+
</dependencies>
33+
</dependencyManagement>
34+
35+
<dependencies>
36+
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
37+
<dependency>
38+
<groupId>org.seleniumhq.selenium</groupId>
39+
<artifactId>selenium-java</artifactId>
40+
<version>4.17.0</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>io.cucumber</groupId>
44+
<artifactId>cucumber-java</artifactId>
45+
<scope>test</scope>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>io.cucumber</groupId>
50+
<artifactId>cucumber-junit-platform-engine</artifactId>
51+
<scope>test</scope>
52+
</dependency>
53+
54+
<dependency>
55+
<groupId>org.junit.platform</groupId>
56+
<artifactId>junit-platform-suite</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
60+
<dependency>
61+
<groupId>org.junit.jupiter</groupId>
62+
<artifactId>junit-jupiter</artifactId>
63+
<scope>test</scope>
64+
</dependency>
65+
66+
</dependencies>
67+
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-compiler-plugin</artifactId>
73+
<version>3.12.1</version>
74+
<configuration>
75+
<encoding>UTF-8</encoding>
76+
<source>${java.version}</source>
77+
<target>${java.version}</target>
78+
</configuration>
79+
</plugin>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-surefire-plugin</artifactId>
83+
<version>3.2.5</version>
84+
<configuration>
85+
<properties>
86+
<!-- Work around. Surefire does not include enough
87+
information to disambiguate between different
88+
examples and scenarios. -->
89+
<configurationParameters>
90+
cucumber.junit-platform.naming-strategy=long
91+
</configurationParameters>
92+
</properties>
93+
</configuration>
94+
</plugin>
95+
</plugins>
96+
</build>
97+
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package hellocucumber;
2+
3+
import org.junit.platform.suite.api.ConfigurationParameter;
4+
import org.junit.platform.suite.api.IncludeEngines;
5+
import org.junit.platform.suite.api.SelectClasspathResource;
6+
import org.junit.platform.suite.api.Suite;
7+
8+
import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME;
9+
10+
@Suite
11+
@IncludeEngines("cucumber")
12+
@SelectClasspathResource("hellocucumber")
13+
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
14+
public class RunCucumberTest {
15+
}

0 commit comments

Comments
 (0)