Giter Site home page Giter Site logo

gocd / functional-tests Goto Github PK

View Code? Open in Web Editor NEW
10.0 16.0 30.0 96.73 MB

Smoke, acceptance and regression tests for GoCD

License: Apache License 2.0

Shell 0.96% Batchfile 0.09% Ruby 67.00% HTML 14.29% JavaScript 7.12% CSS 0.19% Tcl 0.07% PHP 0.02% Java 10.12% Visual Basic 0.01% C 0.11% Python 0.03% Gherkin 0.01% Makefile 0.01% Hack 0.01%

functional-tests's Introduction

Gauge Badge

Pre-Requisites

  • JDK 8 (verified on 1.8.0_172-b11)
  • Gradle (verified to work on 4.6)
  • Maven (verified to work on 3.5.4)
  • Node 6.x (7.x will not work)
  • Gauge 1.0.0
  • Mercurial
  • Ant
  • Git
  • Firefox <= 45.x (verified on 45.9.0esr; the version of webdriver used only supports up to 45)
  • If running specs related to other SCM repos like TFS, SVN, Perforce ensure they are installed on the machine executing the specs

Setup

  • Need the following repos cloned as sibling directories to this repo:
  • $ cd functional-tests
  • $ gauge install
  • $ gauge update --all (in case the plugins were already installed before the previous command, update them to the latest anyway)
  • If you are using nvm, verify that Node 6.x is activated
  • Modfiy the paths to firefox.exe or firefox-bin in src/test/java/twist.properties (for both the sahi.browserLocation and webdriver.firefox.bin properties) to reflect the paths on your machine

Clean/setup

  • Build GoCD master repo and go-plugins repo from their respective folders
# This will prepare the functional tests related artifacts in the functional tests folder
$ cd functional-tests
$ rake clean setup

Running tests

$ GO_VERSION=X.x.x gauge run specs/AdminTaskListing.spec

Contributing

We encourage you to contribute to GoCD. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.

License

Copyright 2018 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

functional-tests's People

Contributors

adityasood avatar arvindsv avatar bdpiprava avatar dependabot[bot] avatar ganeshspatil avatar ibnc avatar imvirajp avatar jyotisingh avatar ketan avatar maheshp avatar marques-work avatar prateekbaheti avatar rajiesh avatar tomzo avatar varshavaradarajan avatar vrushaliwaykole avatar xli avatar zabil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

functional-tests's Issues

TFS test cases uses common TFS repo which cause conflict when 2 TFS related tests run in parallel

https://go05.thoughtworks.com/go/tab/build/detail/regression-postgresql/175/twist/1/firefox-split-runInstance-6

This job failed because the TFSMaterial test case was trying to change and push a file to TFS repo which had an updated copy of another file as shown in the log as below,

--OUTPUT ---
A newer version of $/for_twist_tests_1/AnotherHelloWorld.txt exists on the server.

No files checked in.
--- ERROR ---
ERROR: A resolvable conflict was flagged by the server: No files checked in: resolve the conflicts and try again.

---

AddNewPipeline.spec failing at config validation of `exec` task

AddNewPipeline.spec is failing only on the addons build environment, and not on build.go.cd. Refer to the regression pipeline on addons build environment(regression pipeline instance 709, run 1, Runinstance 4 of Firefox split job).

The application functionality is not broken as verified manually. Also the spec passed on build.go.cd environment. Looks like a test fix

Sample issue to check the template

Issue Type

Please specify the issue type to help us categorize the issue, mention any of the below type,

  • Bug Report
  • Feature proposal
  • Feature enhancement
  • Documentation Report

Sample issue to check the template

Summary

Provide a brief summary of the issue

Environment

Describe the environment in which you encountered this issue. Details of the environment GoCD is running in can be fetched from the GoCD support api - http:///api/go/support

Basic environment details

Below 3 info we recommend to be provided for us to quickly access the issue

Go Version:

JAVA Version:

OS:

Additional Environment Details

More environment details captured from the support API or other sources can be shared here

Steps to Reproduce

Provide steps to reproduce - How you encountered this issue?

Expected Results

From the steps mentioned above what did you expect to happen?

Actual Results

What actually happened?

Log snippets

If you could find any information/exceptions from the logs do provide it here. Do mask any confidential information which you don't want to be shared

Code snippets/Screenshots

if you would like to share any code/screenshots please add it here. Do mask any confidential information which you don't want to be shared

Any other info

Provide any other information you would like to share to explain this issue more better

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.