Versions Compared

Key

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

Sub pages

Children Display

Summary

Table of Contents
excludeSummary

...

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



DescriptionBash command
1

Vivo Home and Vivo solr configuration

from the directory $REG_TEST_GIT/vivo-regression-tests/vivo-config-proposal/vivo_orig , copy solr and vivo_home in aprropriate directory


Code Block
languagebash
cd $REG_TEST_GIT/vivo-regression-tests/vivo-config-proposal/vivo_orig
mkdir -p $VIVO_HOME_ORIG/home/config
cp -r vivo_home/* $VIVO_HOME_ORIG/home/config
sudo -u solr cp -r solr/server $SOLR


2

rom the directory C:\UQAM-DEV\GIT\vivo-regression-tests

Installing VIVO 1.11.1 original


Code Block
languagebash
titleFor UQAM-DEV installation
cd $REG_TEST_GIT/vivo-regression-tests/vivo-installer-orig
mvn install -s UQAM-DEV-RgTest_orig_settings.xml


Code Block
languagebash
titleFor OTHER installation
cd $REG_TEST_GIT/vivo-regression-tests/vivo-installer-orig
# Edit and change attributes values to appropriate settings of 
# NON_UQAM-DEV-RgTest_orig_settings.xml file
vi NON_UQAM-DEV-RgTest_orig_settings.xml
mvn install -s NON_UQAM-DEV-RgTest_orig_settings.xml


Step 3 b: Installing VIVO 1.11.2-SNAPSHOT (VIVO-i18n) from the CLI


DescriptionBash command
1

Vivo Home and Vivo solr configuration for i18n

from the directory $REG_TEST_GIT/vivo-regression-tests/vivo-config-proposal/vivo_i18n , copy solr and vivo_home in aprropriate directory


Code Block
languagebash
cd $REG_TEST_GIT/vivo-regression-tests/vivo-config-proposal/vivo_i18n
mkdir -p $VIVO_HOME_I18N/home/config
cp -r vivo_home/* $VIVO_HOME_I18N/home/config
sudo -u solr cp -r solr/server $SOLR


2

From de vivo installer for i18n: cd $REG_TEST_GIT/vivo-regression-tests/vivo-installer-i18n

install the vivo-i18n (solr and vivo_home are pre-configured with the UQAM-DEV installation)



Code Block
languagebash
titleFor UQAM-DEV installation
cd $REG_TEST_GIT/vivo-regression-tests/vivo-installer-i18n
mvn install -s UQAM_DEV_RgTest_i18n_settings.xml -Dmaven.test.skip=true


Code Block
languagebash
titleFor OTHER installation
cd $REG_TEST_GIT/vivo-regression-tests/vivo-installer-i18n
# Edit and change attributes values to appropriate settings of 
# NON_UQAM_DEV_i18n_RgTest_settings.xml file
vi NON_UQAM_DEV_i18n_RgTest_settings.xml
mvn install -s NON_UQAM_DEV_i18n_RgTest_settings.xml  -Dmaven.test.skip=true


Step 3 c: Checking the installation

This section is used to verify the co-execution of VIVO-ORIG and VIVO-i18n.


DescriptionBash commands
1

Starting solr

Info

Make sure your JAVA_HOME is set up correctly e.g.

export JAVA_HOME=C:/UQAM-DEV/jdk



Code Block
languagebash
cd $SOLR/bin/
./solr.cmd start

# Start http://localhost:8983/solr/#/ in your WebBrowser
# and look for vivocore_i18n and vivocore_orig in the 
# core selector dropdown menue


2Start TOMCAT


Code Block
languagebash
cd $REG_TEST_HOME/apache-tomcat-8.5.11/bin/
./catalina.bat jpda start


3Verify VIVO i18n at http://localhost:8080/vivo/

Image Modified

4Verify VIVO otiginal at http://localhost:8080/vivo_orig/

Image Modified

Step 4: Configure property files in preparation for running a test case


DescriptionCommands
1

a) Setup VIVO_ORIG

Assign the password for for the user admin





Image Modified
On the page of http://localhost:8080/vivo_orig/ click continue
Image Modified

In the login passord enter:

email: vivo@uqam.ca

passwd: rootPassword

Image Modified

Enter the new passord

e.g.: Vivo2435....


2Edit the file C:\UQAM-DEV\vivo_orig\home\config\runtime.properties

Make sure the variable rootUser.emailAddress matches the login you entered in the last step.

Don't worry about the variables below, they are not enabled for version 1.11.1 of VIVO.

rootUser.passwordChangeRequired
rootUser.password
3

b) Setup VIVO i18n

edit C:\UQAM-DEV\vivo\home\config\runtime.properties

Validate that the variables are correctly configured

rootUser.emailAddress = vivo@uqam.ca
rootUser.passwordChangeRequired = false
rootUser.password = Vivo2435....
RDFService.languageFilter = true
languages.selectableLocales = fr_CA, en_CA, en_US, de_DE
4Restarted Tomcat if changes have been made to any of the runtime.properties files.

Step 5: Setting up the test bench

DescriptionCommands

a) testbench runtime.properties

Edit the file C:\UQAM-DEV\GIT\vivo-regression-tests\src\main\resources\runtime.properties

Make sure that the content (especially the credential section) corresponds to the VIVO login values.

Code Block
titleruntime.properties
#
# Credential for connecting to Vivo
#
vivo.i18n.rootlogin=vivo@uqam.ca
vivo.i18n.password=Vivo2435....
vivo.orig.rootlogin=vivo@uqam.ca
vivo.orig.password=Vivo2435....
# ...


b) TestRunner properties

Edit the file C:\UQAM-DEV\GIT\vivo-regression-tests\src\main\resources\TestRunner.properties

Select the test case you want to run

e.g.:

Code Block
titleTestRunner.properties
ResearchOverviewToPerson=true
EmailAddress=false
HeadOfFaculty=true


c) Maven profile

Edit the file C:\UQAM-DEV\GIT\vivo-regression-tests\settings.xml

Select the test case you want in the activeProfile section. Seul une profile peut être sélectionné

e.g.:

Code Block
titlesettings.xml
	<activeProfiles>
		<activeProfile>ResearchOverviewToPersonTest</activeProfile>
<!-- 		<activeProfile>EmailAddressTest</activeProfile> -->
<!-- 		<activeProfile>HeadOfFaculty</activeProfile> -->
	</activeProfiles>


d) For Linux, Installing geckodriver


Code Block
languagebash
#Edit the texbenvh  runtime.properties
vi $REG_TEST_GIT/vivo-regression-tests/src/main/resources/runtime.properties

# Comment the line selenium.driver.location=./lib/geckodriver-v0.26.0-win64/geckodriver.exe
# and
# uncomment selenium.driver.location=./lib/geckodriver-v0.26.0-linux/geckodriver


Step 6: Running a test case

DescriptionCommand

a) TestRunner Java runtime mode


Code Block
export DISPLAY=:0 (For Linux user)
cd $REG_TEST_GIT/vivo-regression-tests
mvn install
mvn exec:java


b) Test case running by profiles setting in settings.xml




Code Block
export DISPLAY=:0 (For Linux user)
cd $REG_TEST_GIT/vivo-regression-tests
mvn install
mvn test -s settings.xml


c) Test case running by profiles in options


Code Block
export DISPLAY=:0 (For Linux user)
cd $REG_TEST_GIT/vivo-regression-tests
mvn install
mvn test -P EmailAddressTest,HeadOfFacultyTest,ResearchOverviewToPersonTest


...

Done