Skip to content

Commit

Permalink
- Added gitignore file. - Upgraded the Quantum version - Added the ne…
Browse files Browse the repository at this point in the history
…w properties in the application.properties file - Stopped the log4j logs in logs folder as it was taking too much space - Fixed one failing web scenario
  • Loading branch information
kulin24 committed Jul 6, 2018
1 parent c232dcf commit a68cb99
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
target/
.idea/
*.setting
*.DS_store
*.classpath
.settings/
*.project
*.png
test-output/
build/
.DS_Store
test-order-details/
test-results/
img/
perfectoReports/
.git/
*.log
/logs/
/dashboard/
*.pdf
/bin
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<cukes.version>1.2.5</cukes.version>
<qaf.version>2.1.13</qaf.version>
<qafsupport.version>2.1.13</qafsupport.version>
<quantum.version>1.15-RC</quantum.version>
<quantum.version>1.16</quantum.version>
<org.json.version>20160810</org.json.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down Expand Up @@ -148,5 +148,10 @@
<artifactId>reportium-testng</artifactId>
<version>${reportium-sdk.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
</dependency>
</dependencies>
</project>
24 changes: 21 additions & 3 deletions resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,30 @@ wd.command.listeners=com.quantum.listeners.PerfectoDriverListener
#we.command.listeners=
teststep.listeners=com.quantum.listeners.QuantumReportiumListener

retry.count=0
#When enabled your test will be retried from the start
#customizations can be made to your own personal retry analyzer - please see the documentation on our github wiki page
#https://github.com/Project-Quantum/Quantum-Starter-Kit/wiki
#retry.count=1
#retry.analyzer=com.quantum.utils.Retry

#user proxy for API calls - enable this and set you proxy details if you encounter unexpected errors when downloading perfecto reports
#proxyHost=127.0.0.1
#proxyPort=8888
#proxyUser=1
#proxyPassword=1


#enable to turn on parallel data providers
#you must also define in testNg.xml the data provider thread count
#<suite name=....... data-provider-thread-count="10">
#global.datadriven.parallel=true

#set true to fill bean randomly from set of test-data
#bean.populate.random=false

#set 1 to suppress success log, when 0 it will also show verification success message
report.log.skip.success=0
#uselesscomment


#Use this key to add test data in the scenario names for Reportium results
#addFullDataToReport=true
Expand All @@ -62,5 +78,7 @@ report.log.skip.success=0
#switch download reports true/false to download reports.
perfecto.download.reports=false
perfecto.download.summaryReports=false
perfecto.download.video=false
perfecto.download.attachments=false
perfecto.report.location= perfectoReports
#perfecto.offlineToken= <<CQ_LAB_TOKEN>>
#perfecto.offlineToken= <<CQ_LAB_SECURITY_TOKEN>>
8 changes: 4 additions & 4 deletions src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#log4j.rootCategory=INFO, CONSOLE


log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
log4j.rootCategory=DEBUG, CONSOLE
log4j.appender.console.Follow=true
log4j.logger.com.qmetry.qaf=INFO, LOGFILE
log4j.logger.com.qmetry.qaf=INFO
# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
log4j.logger.org.reflections=FATAL
Expand Down Expand Up @@ -64,15 +64,15 @@ log4j.appender.resultUpdationLog.layout=org.apache.log4j.PatternLayout
log4j.appender.resultUpdationLog.layout.ConversionPattern=%-6r [%t] %-5p %c %x - %m%n

log4j.additivity.com.qmetry.qaf.automation.step=false
log4j.logger.com.qmetry.qaf.automation.step=DEBUG, SCENARIOLOGFILE
log4j.logger.com.qmetry.qaf.automation.step=DEBUG
log4j.appender.SCENARIOLOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.SCENARIOLOGFILE.File=${outputDir}/scenario.log
log4j.appender.SCENARIOLOGFILE.Append=true
log4j.appender.SCENARIOLOGFILE.Threshold=DEBUG
log4j.appender.SCENARIOLOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.SCENARIOLOGFILE.layout.ConversionPattern=%d{HH:mm:ss} %m%n

log4j.logger.ws_rest=DEBUG, file
log4j.logger.ws_rest=DEBUG
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.file=${outputDir}/ws.log
log4j.appender.file.MaxFileSize=1GB
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/scenarios/webSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Google Search
Given I am on Google Search Page
When I search for "Project-Quantum Quantum-Starter-Kit"
Then it should have following search results:
| Getting Started |
| Quantum-Starter-Kit |
| Project-Quantum |

@WebDD
Expand Down

0 comments on commit a68cb99

Please sign in to comment.