Skip to content

Commit

Permalink
Merge pull request #3 from virtual-labs/testing
Browse files Browse the repository at this point in the history
Converted pre test and post test questions  from .js format to .json format and updated .yml file.
  • Loading branch information
BalammaBoya authored Apr 22, 2021
2 parents 09658ab + 4c67be2 commit 11920e9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 401 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deployment-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# The following job will pull phase3 lab management scipt and build the experiment
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
check-latest: true
- run: |
git clone -b pipeline https://github.com/virtual-labs/ph3-lab-mgmt
cd ph3-lab-mgmt/ph3-beta-to-ui3.0-conv
make host-experiments
cd ../../
git clone --depth=1 https://github.com/virtual-labs/ph3-lab-mgmt
cd ph3-lab-mgmt
npm install
npm run build-exp
cd ../
git config --local user.email "admin@vlabs.ac.in"
git config --local user.name "vleadadmin"
git checkout --orphan gh-pages
Expand Down
198 changes: 0 additions & 198 deletions experiment/posttest.js

This file was deleted.

1 change: 1 addition & 0 deletions experiment/posttest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"question":"In case of regenerative braking, the motor","answers":{"a":"Dissipates energy in armature circuit","b":"Dissipates energy in field circuit","c":"Both a and b","d":"Supply energy to source"},"correctAnswer":"d"},{"question":"If plugging is applied to series motor for a long time, then","answers":{"a":"It will start revolving in other direction at low speed","b":"Motor will stop","c":"Motor will burn","d":"None of these"},"correctAnswer":"a"},{"question":"Disadvantage of the field-control method of speed control is","answers":{"a":"That speed above normal speed can be achieved","b":"That commutation becomes unsatisfactory","c":"Its low efficiency","d":"None of these"},"correctAnswer":"b"},{"question":"Speed regulation of a d.c. motor can be ideally achieved with","answers":{"a":"A.C. excitation to the field of the motor","b":"Variable excitation to the field of the motor","c":"constant excitation to the field of the motor","d":"no excitation to the field of the motor"},"correctAnswer":"c"},{"question":"Disadvantage of ward-Leonard system is","answers":{"a":"increased maintenance cost","b":"its high initial cost","c":"its low efficiency at light loads","d":"All of them"},"correctAnswer":"d"}]
Loading

0 comments on commit 11920e9

Please sign in to comment.