Used to proctor online tests
npm install react_proctoring_librarynpx create-react-app my-new-app command.
npm install react_proctoring_library in your terminal and if everything goes fine, you are good to go.
TestComponent | Yes | JSX Component | The Component which you want to proctor |
testIdentifier | Yes | String | A unique string to identify every test |
fullScreenMessage | Optional | String | If you want your test to run only in full screen mode, this message will appear instead of TestComponent whenever User exits Full Screen |
ProctorApp - A Component which will help you in proctoring
Object getStatistics(string: testIdentifier) - A function which will return a data Object with all Statistics
import { ProctorApp, getStatistics } from 'react_proctoring_library';
function Test(props) {
return (
Proctoring Window
);
}
function App() {
const testIdentifier = 'unique-proctoring-identifier';
const fullScreenMessage = 'This test can only be completed in Full Screen Mode, do you want to start this test?';
const getStats = e => {
e.preventDefault();
console.log(getStatistics(testIdentifier));
};
return (
);
}
export default App;
``