This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
describe('Awesome tests', () => { | |
beforeEach(() => { | |
cy.visit('https://www.awesome-testing.com/') | |
cy.viewport(1920, 1080) | |
console.log('This will be logged before cy.visit') | |
}) | |
it('should find Cypress posts', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start | |
end | |
middle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('start'); | |
setTimeout(() => { | |
console.log('middle'); | |
}, 1000); | |
console.log('end'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start | |
middle | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('start'); | |
console.log('middle'); | |
console.log('end'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
describe('Awesome tests', () => { | |
it('should find Cypress posts', () => { | |
cy.visit('https://awesome-testing.com/') | |
.then(() => { | |
cy.get('.gsc-input input') | |
}).then(($input) => { | |
cy.wrap($input).type('Cypress') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
describe('Awesome tests', () => { | |
beforeEach(() => { | |
cy.visit('https://awesome-testing.com/') | |
}) | |
it('should find Cypress posts', () => { | |
cy.get('.gsc-input input').type('Cypress') | |
cy.get('.gsc-search-button input').click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress tests | |
on: [push] | |
jobs: | |
cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.core.Predef; | |
import io.gatling.core.scenario.Simulation; | |
import io.gatling.core.structure.ScenarioBuilder; | |
import io.gatling.http.Predef; | |
import io.gatling.http.protocol.HttpProtocolBuilder; | |
public class SimpleLoadTest extends Simulation { | |
HttpProtocolBuilder httpConf = Predef.http().baseUrl("http://localhost:8080") | |
.acceptHeader("application/json"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class SimpleLoadTest extends Simulation { | |
val httpConf = http.baseUrl("http://localhost:8080") | |
.acceptHeader("application/json") | |
val scn = scenario("Simple Load Test") |
NewerOlder