This is an approach to repair test scripts efficiently for large web applications.
-
Download the corresponding versions of the web applications.
-
And install these web apps
The database for them is mysql. Database Configuration:
- Host name:127.0.0.1
- Username:root
- passworld: 12345678
- databaseName: Joomla_3_6_0 or Joomla_3_7_0 or
The login account for these web apps:
- account : admin,
- passworld : 123456
-
Then these web apps are ready to test.
On my local computer machine, I set the port as 8888 ,
So the Joomla URLs are :
And Moodle URLs :
And Dolibarr URLs :
Install mocha:
npm install --global mocha
Installation Steps of RTSP:
git clone https://github.com/chenweiLabri/RTSP
npm install
Set Steps:
* Set the fileName in file transferScenario.js (set the test script to test).
For example, const fileName = '/joomla/' + 'joomla001Login.js';
* In this script, set the url of GotoAction,
For example, .goto("http://localhost:8888/Joomla_3_6_0/")//version 3.6.0
Because the web apps are different and their releases are also different, so the goto urls differ.
Run TSRP:
`Mocha playToFix.js`