Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In general, each test case is divided into 5 phases in addition to the setUpBeforeClass et tearDownAfterClass

Five phases pattern of testCaseDescription
setUpBeforeClass
  • Opening Silenium Driver
  • Choosing the Vivo tested instance (I18n or non-i18n instance)
  • Purge Tripestore from instance statement (previus sample data manipulation
  • loading sampleData
Phase 1
  • login from the UI
Phase 2
  • Adding Data by UI
  • verify in the triplestore if the data is correctly added
Phase3
  • Modifying Data by UI
  • verify in the triplestore if the data is correctly modified
Phase 4
  • Delete Data by UI
  • verify in the triplestore if the data is correctly Deleted
Phase 5
  • Log out
tearDownAfterClass
  • Closing Selenium driver

...

Anchor
run_a
run_a
4 ) Running A Test Case in the TestBench under UQAM-DEV

...

For complete installation, following: 2. Installing UQAM-DEV

OR FROM SCRATCH

Install Tomcat and SOLR as indicated in the Lyrasis documentation. https://wiki.lyrasis.org/display/VIVODOC111x/Installing+VIVO

Or these documents more specific to this installation:

https://wiki.lyrasis.org/display/VIVO/1%29+Starting+with+basic+installation%3A+Java-Maven-Solr-GIT

https://wiki.lyrasis.org/display/VIVO/3%29+Installing+Tomcat+8.5+for+Vivo-1.11.0-i18n


Variables configuration

Code Block
languagebash
titleFor UQAM-DEV installation
linenumberstrue
export REG_TEST_HOME=/c/UQAM-DEV                    # Home regression test directory
export REG_TEST_GIT=$REG_TEST_HOME/GIT              # GIT extraction directory
export JAVA_HOME=$REG_TEST_HOME/jdk                 # Java Jdk 1.8
export SOLR=$REG_TEST_HOME/solr-7.7.2               # Solr 7.7.2 installation directory
export TOMCAT=$REG_TEST_HOME/apache-tomcat-8.5.11   # Tomcat installation directory
export VIVO_HOME_I18N=$REG_TEST_HOME/vivo_i18n      # Vivo-i18n Home directory
export VIVO_HOME_ORIG=$REG_TEST_HOME/vivo_orig      # Vivo original (non-i18n) Home directory


Code Block
languagebash
titleFor Other installation
linenumberstrue
export REG_TEST_HOME=YOUR_VALUE  # Home regression test directory
export REG_TEST_GIT=YOUR_VALUE   # GIT extraction directory
export JAVA_HOME=YOUR_VALUE	     # Java Jdk 1.8
export SOLR=YOUR_VALUE			 # Solr 7.7.2 installation directory
export TOMCAT=YOUR_VALUE		 # Tomcat installation directory
export VIVO_HOME_I18N=YOUR_VALUE # Vivo-i18n Home directory
export VIVO_HOME_ORIG=YOUR_VALUE # Vivo original (non-i18n) Home directory


Code Block
languagebash
titleExample for Linux
linenumberstrue
export REG_TEST_HOME=/opt/tomcat
export REG_TEST_GIT=/opt/tomcat/GIT
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export SOLR=/opt/solr
export TOMCAT=/opt/tomcat
export VIVO_HOME_I18N=/opt/tomcat/vivo_i18n
export VIVO_HOME_ORIG=/opt/tomcat/vivo_orig

# You can also source the ./linux_var_dir.sh file

Step 2: Extracting the appropriate GitHub Repos

While waiting for the integration of the development branches to the Master branch, it is necessary to perform the extractions from the following repo:

Repos are retrieved from the $REG_TEST_GIT


Code Block
cd $REG_TEST_GIT


Repo nameGIT clone commans
Vitro


Code Block
languagebash
git clone --single-branch --branch  feature-1801-regtest https://github.com/MichelHeon/Vitro.git


Vitro-languages


Code Block
languagebash
git clone --single-branch --branch  feature-1801-regtest https://github.com/MichelHeon/Vitro-languages.git


VIVO


Code Block
languagebash
git clone --single-branch --branch  feature-1801-regtest https://github.com/MichelHeon/VIVO.git


VIVO-languages


Code Block
languagebash
git clone --single-branch --branch  feature-1801-regtest https://github.com/MichelHeon/VIVO-languages.git


Vivo-regression-test


Code Block
languagebash
git clone --single-branch --branch  feature-1801-regtest https://github.com/MichelHeon/vivo-regression-tests.git


Step 3 Installing VIVO's (orig and i18n)

Step 3 a: Installing VIVO 1.11.1 (Original VIVO) from the CLI

The installation procedure below refers to the official Lyrasis installation guide, available here.i: https://wiki.lyrasis.org/display/VIVODOC111x/Installing+VIVO