Steps to use Testcafe
- Have nodejs and npm installed on your machine
- use npm install testcafe command to install testcafe on your machine
- Using Selector library you will be able to test web application
- Create ,js file
- Use command to import selector from testcafe
- Use fixture to describe test and simultaneously you could mention url to launch in the same command
- Use test function - test( testName, fn(t) )
fixture `MyFixture`;
test('Test1', async t => {
/* Test 1 Code */
});
test('Test2', async t => {
/* Test 2 Code */
});
Comments
Post a Comment