Skip to content

Commit

Permalink
Prepare to release 0.3 (#26)
Browse files Browse the repository at this point in the history
* 1) Recompile.
2) Update WizardsForVaading sub module.

* Update README.md

* Fix bug with duplicate history.

* WIP for trace matrix

* WIP for trace matrix

* WIP for trace matrix

* WIP for trace matrix

* Re-add sub module.

* Re-add sub module.

* Changes in Travis script.

* Changes in Travis script.

* Changes in Travis script.

* Try to fix broken build.

* CHange dependency so it compiles on brand new repository.

* Change to correct branch.

* Right version.

* A fix?

* Fix bug associating requirement version to a test case.

* Progress on the Trace Matrix.

* Add coverage column.

* 1) Fix issue with root node menu.
2) Fix issue creating a new project causing NPE.

* Fix issue where executions including Test Cases already in previous ones wouldn't show up.

* Move the requirement version assignment from execution of the step to the creation of the execution.

* Add requirement version to created executions.

* Handle possible NPE.

* Add icon to message box.

* Add coverity stuff to Travis script.

* Add message.

* Update parent/children relationship of requirements.

* Allow to display parent and child requirements.

* Fix formatting on the string representation.

* Enhance demo project to include product spec requirements and links to SW requirements.

* Enhancements to display of parent and children requirements.

* Better demo project. Add requirements links to all requirements for a better populated trace matrix.

* More detailed Trace Matrix.

* 1) Refactor method to display and select requirements from a list.
2) Add feature to add children to a requirement from GUI.

* Required for coverity commands.

* Fix bug where local changes were being lost.

* Fixing test failure. The local object was not updated with import changes so following calls would import all all over again.

* More test fixes.

* More test fixes.

* Add history to steps and link one to the execution step.

* Add step history to steps.
Task #22 - Provide UI features for Execution step management

* Add menus to create and delete executions.
Task #22 - Provide UI features for Execution step management

* Try to fix issues on Travis.

* Fix errors during test.

* Enable cobertura.

* Expose method as public and static.

* Add read requirement permission to quality role.

* Remove redundant class AuditedObject.

* Make sure to change reason.

* Add missing overrides.

* Add test for fixes in versioning system.

* Fix some issues related to tying user with changes.
Task #23 - Implement change history reasons

* Add some missing fields on the update method.
Task #25 - history seems to disappear

* Update dependencies.

* Update dependencies.

* Replicate issue #25
Task #25 - history seems to disappear

* Add checks to verify the History entries are present or not.
Task #25 - history seems to disappear

* Refactoring.

* Might be versionable and not have history (i.e. no fields marked as auditable). In that case set default values.

* Fix inaccurate comment.

* Set entity manager to null when closing.

* Finally fix bug
Task #25 - history seems to disappear

* Update to Vaadin 7.7.9.

* Update database.

* Release actions.

* Fix some code review observations.
  • Loading branch information
javydreamercsw authored May 17, 2017
1 parent 054aa16 commit faf86e5
Show file tree
Hide file tree
Showing 133 changed files with 26,902 additions and 25,494 deletions.
23 changes: 21 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
language: java
sudo: false
sudo: required

env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "BRrm/RtkKH2zxvDWGjMRhZSlbosKVtFh1uyrmMsRW/GvzdKN9j/cFgP7JYShQHRYWYTXkPTFnWiCU19t0kFzd5uRX1iTA7YN1KGdJ1M87RwGHuyPnJdtvNbM2Qt2p8PUeA8X0G8ZXuCBujpMRd0m8B3+WDmb4Yd9eagZLiK2e4jNC/9KZge8h4BQ0Hmz/K68/FXTCirhhFhL4DRvvY76h1/EXEWFx/2s6u34oXVStA3BqTxjQm1ucjxVgOwCMyf+EEEpM/lyIaReg2PcPgwkerXbLGTxl4uaiWmPV0jV41DjMPEIGH7tPgGzbznBaLB/paZLbth6x0wWWq8tumm4uyuaEJeQ9yrq17jTtgWn12PK9X7AWCTWWrYZ01a4K7ClvFiE+kqNW6GxC7fS/iEpL7Ew6Fj/mqCie3x5H6iF/syXA8c0eqHWWglWhhel1XgR+4JMdF6MkpZAoR1BkafBKewQyMacJL/GKwicsi4LtmUfcmKa7hI8IE2pSQnpJ6LDfzRXvuMxeFlfeqKxQtD6+eybhEtq7XFXKhGs8n2W8B5cuzfJ028UDHMvZke7s1ShTnLBtHji4lgqxKjLzjfnGC2I5GfEvIZ+4Ek+q7z0UYdQ5/83S5iWwIz8XDv2XRMVb2xU2NkCzAqjC9AOECifhhOKh6dt5V/shkx273/KKH4="

before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
addons:
apt:
packages:
- oracle-java8-installer
coverity_scan:
project:
name: "javydreamercsw/validation-manager"
description: "Validation Manager is a tool to handle all the cumbersome paperwork of regulated environment validations. Including Validation Plans, protocols, executions and exceptions. Keeping everything in one place and best of all paperless. "
notification_email: [email protected]
build_command_prepend: "mvn clean"
build_command: "mvn -DskipTests=true install --also-make-dependents"
branch_pattern: master

dist: trusty
jdk:
- oraclejdk8
- openjdk8
script: mvn install cobertura:cobertura -Dmaven.javadoc.skip=true -B -V
script: git submodule update --init --recursive
script: mvn install cobertura:cobertura -Dmaven.javadoc.skip=true -B -V --also-make-dependents

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
Binary file modified DB/Validation Master.mwb
Binary file not shown.
Binary file modified DB/Validation Master.mwb.bak
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/390b17b2843d4f29afde2f0194252b99)](https://www.codacy.com/app/javydreamercsw/validation-manager?utm_source=github.com&utm_medium=referral&utm_content=javydreamercsw/validation-manager&utm_campaign=badger)
[![Build Status](https://travis-ci.org/javydreamercsw/validation-manager.svg?branch=master)](https://travis-ci.org/javydreamercsw/validation-manager)
<a href="https://scan.coverity.com/projects/javydreamercsw-validation-manager">
<img alt="Coverity Scan Build Status"
src="https://scan.coverity.com/projects/12634/badge.svg"/>
</a>


Welcome to Validation Manager Repository!
Expand Down
92 changes: 46 additions & 46 deletions VM-Core/nbactions-Load.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
</action>
<action>
<actionName>profile</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
</actions>
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
</action>
<action>
<actionName>profile</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.tool.requirement.importer.LoadTest</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
</actions>
92 changes: 46 additions & 46 deletions VM-Core/nbactions.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
</action>
<action>
<actionName>profile</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
</actions>
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
</action>
<action>
<actionName>profile</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.validation.manager.core.server.core.RequirementServer jdbc:mysql://localhost:3306/validation_manager?serverTimezone=UTC password com.mysql.cj.jdbc.Driver vm</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
</actions>
5 changes: 3 additions & 2 deletions VM-Core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<version>${jacoco.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -161,6 +161,7 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<pdfbox.version>2.0.5</pdfbox.version>
<pdfbox.version>2.0.6</pdfbox.version>
<jacoco.version>0.7.9</jacoco.version>
</properties>
</project>
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
package com.validation.manager.core;

import com.validation.manager.core.db.ExecutionStep;
import com.validation.manager.core.server.core.TestCaseExecutionServer;
import java.util.logging.Logger;

public abstract class AbstractProvider implements IMainContentProvider {

protected static final Logger LOG
= Logger.getLogger(AbstractProvider.class.getSimpleName());

@Override
public void update() {
//Do nothing by default
}

@Override
public String getId() {
return getComponentCaption();
}

protected boolean isLocked(TestCaseExecutionServer tce) {
return isLocked(tce, -1);
}

protected boolean isLocked(TestCaseExecutionServer tce, int tcID) {
boolean locked = true;
//Check to see if the execution is locked or not
if (tce != null) {
for (ExecutionStep e : tce.getExecutionStepList()) {
if ((tcID > 0
&& e.getExecutionStepPK().getStepTestCaseId() == tcID)
&& !e.getLocked()) {
locked = false;
break;
} else if (tcID < 0 && !e.getLocked()) {
locked = false;
break;
}
}
}
return locked;
}

@Override
public void processNotification() {
//Nothing by default
}
}
package com.validation.manager.core;

import com.validation.manager.core.db.ExecutionStep;
import com.validation.manager.core.server.core.TestCaseExecutionServer;
import java.util.logging.Logger;

public abstract class AbstractProvider implements IMainContentProvider {

protected static final Logger LOG
= Logger.getLogger(AbstractProvider.class.getSimpleName());

@Override
public void update() {
//Do nothing by default
}

@Override
public String getId() {
return getComponentCaption();
}

protected boolean isLocked(TestCaseExecutionServer tce) {
return isLocked(tce, -1);
}

protected boolean isLocked(TestCaseExecutionServer tce, int tcID) {
boolean locked = true;
//Check to see if the execution is locked or not
if (tce != null) {
for (ExecutionStep e : tce.getExecutionStepList()) {
if ((tcID > 0
&& e.getExecutionStepPK().getStepTestCaseId() == tcID)
&& !e.getLocked()) {
locked = false;
break;
} else if (tcID < 0 && !e.getLocked()) {
locked = false;
break;
}
}
}
return locked;
}

@Override
public void processNotification() {
//Nothing by default
}
}
Loading

0 comments on commit faf86e5

Please sign in to comment.