Virtual System Testing

1 Install Virtual System Test Runner GEMs

Commands to execute in directory 03-virtual-system-test/:

1.2 Install GEMs

Run

bundle install

to install GEM defined in Gemfile

1.3 Ensure directory virtual-system-test-input exists

# create directory - unless it already exists
[ -d virtual-system-test-input ] || mkdir virtual-system-test-input

1.4 Validate tester runner

Assuming timeoff-management application has been correctely installed, launch test runner moke test with the command

bundle exec rspec spec/smoke/smoke.rb

and observe following output show that application server was started and stoped successfully:

Starting server 'npm start' in directory 'timeoff' in pid: 3476
[?25l[..................] - : info using node@v6.11.4

[?25h
> TimeOff.Management@0.10.0 start /home/jj/work/sbuilder-timeoff-demo/03-virtual-system-test/timeoff
> node bin/wwww

.isAppRunning: @svcContext[:status]=true
.Shutting down server 'npm start' in directory 'timeoff'
Finish:  killed process 3476 killed thread #<Thread:0x007febef292a60>


Finished in 2.01 seconds (files took 0.25857 seconds to load)
2 examples, 0 failures

1.5 Version information

  • Ruby language envrionment : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
  • Tester environment
    • rspec GEM = * rspec (3.7.0)=
    • sqlite3-ruby GEM = * sqlite3-ruby (1.3.3)=
    • capybara GEM = * capybara (2.17.0)=
    • selenium-webdriver GEM = * selenium-webdriver (3.8.0)=
  • Sbuilder Tools Set
    • tla-trace-arch GEM create self extracting archive = * tla-trace-arch (0.1.1)=