0

Take one example in that i have declare one variable in global scope,how can i access in two test cases.

describe('variable Access', () => {

let name = 'Abhijit'

it('TC_01 Access same variable in two test cases', () => {

    cy.log(name)
})
it('TC_02 Access same variable in two test cases', () => {

    cy.log(name)
})

})

i tried with this one is it write or wrong?

0 Answers0