https://cypress.io logo
Join Discord
Powered by
# help
  • g

    gray-kilobyte-89541

    10/19/2022, 10:31 AM
    you can do the same using https://on.cypress.io/request command
  • r

    refined-raincoat-56329

    10/19/2022, 11:13 AM
    Can someone help me out with parallel testing, I am using jenkins and I have integrated the script needed like
    Copy code
    npx cypress run --record --key 8964954e-cd3b-40c2-9228-590a08290363 --parallel
    But the problem is my spec files are still not running in parallel. Do I need to make more then one node in Jenkins ?
  • g

    gray-kilobyte-89541

    10/19/2022, 11:16 AM
    yes, read https://on.cypress.io/parallelization
  • r

    refined-raincoat-56329

    10/19/2022, 11:22 AM
    @gray-kilobyte-89541 I have read this and configured my system accordingly but there are no takeaways on how to setup multiple server or nodes in Jenkins
  • s

    stale-optician-85950

    10/19/2022, 11:25 AM
    A quick Google brings up this https://github.com/cypress-io/cypress-example-kitchensink/blob/master/Jenkinsfile for 'Parallel Jenkinsfile' from here https://docs.cypress.io/guides/continuous-integration/ci-provider-examples#Jenkins
  • l

    lemon-animal-16490

    10/19/2022, 11:56 AM
    Hey everyone! any good cypress with page object model repo in large scale?
  • r

    refined-raincoat-56329

    10/19/2022, 12:07 PM
    get I get any other example, in this one dockers is included I am looking for Jenkins and Cypress
  • s

    stale-optician-85950

    10/19/2022, 12:09 PM
    Nope, I'm not using Jenkins.
  • f

    fresh-doctor-14925

    10/19/2022, 12:27 PM
    Are you running docker containers within your Jenkins Job? When I did this (previous employer) I set up a simple bash loop containing a
    docker run
    command. That was enough to create several machines
  • f

    fierce-beach-68131

    10/19/2022, 12:31 PM
    How can I keep faker data for another it block?
    • 1
    • 1
  • w

    wonderful-whale-44360

    10/19/2022, 12:34 PM
    I tried but I didn't get the expected result
  • w

    wonderful-whale-44360

    10/19/2022, 12:37 PM
    Can I get some examples for the post request API using Formdata/multipart as body using Cypress
  • r

    refined-raincoat-56329

    10/19/2022, 12:41 PM
    No i am not running docker containers, do I need to ?
  • f

    fresh-doctor-14925

    10/19/2022, 12:42 PM
    Will probably make it easier to do what you're trying to achieve
  • m

    mysterious-belgium-25713

    10/19/2022, 1:04 PM
    I'm not near my pc now. But i think you can use this format
    Copy code
    Steps:{
    
     parallel(
       Test1: {
         npx cypress run (with your params
       }
    Test2: {
       npx cypress run (same params)
    }
    )
    }
  • m

    mysterious-belgium-25713

    10/19/2022, 1:05 PM
    And if that does not work i will check later today
  • a

    adorable-vase-67839

    10/19/2022, 1:13 PM
    I have a problem in cypress that when running a test that needs an authentication hash it gives this error! How do I preserve the authentication hash created from when the user is logged into cypress?
  • a

    adorable-vase-67839

    10/19/2022, 1:18 PM
    this hash is for me to locate the company within the application
  • g

    gray-kilobyte-89541

    10/19/2022, 1:41 PM
    hmm, I will add an example, but it will be part of my paid course https://cypress.tips/courses/network-testing
  • r

    refined-raincoat-56329

    10/19/2022, 1:42 PM
    where do I have to apply this condition like in which file is it the package.json file ?
  • m

    mysterious-belgium-25713

    10/19/2022, 1:42 PM
    If you are using Jenkins then in your Jenkinsfile
  • m

    mysterious-belgium-25713

    10/19/2022, 1:43 PM
    That is where you write your Jenkins pipeline definition
  • n

    narrow-oxygen-98042

    10/19/2022, 1:59 PM
    Hi guys, i am newbie I need help about click multi elements until element undisplayed (number of element change in different account, case -> no use hard number of elements) I used condition cy.find(element) > 0 and alias to do the action - click; but it's not work like i want to. Thank you in advance for any response.
  • r

    refined-raincoat-56329

    10/19/2022, 2:29 PM
    I am not using pipeline
  • r

    refined-raincoat-56329

    10/19/2022, 2:30 PM
    Its simple project of jenkins integrated with GitHub
  • m

    mysterious-belgium-25713

    10/19/2022, 2:35 PM
    Sorry now you lost me. You where asking how to use parallel testing with Jenkins right? To do that you need a pipeline in jenkins.
  • r

    refined-raincoat-56329

    10/19/2022, 2:43 PM
    Alright I'll make a project in pipeline
  • r

    refined-raincoat-56329

    10/19/2022, 3:00 PM
    Can someone tell me about a scenario: If a user logins and while performing certain action the test case fails, I still want some action to perform like I want the user account to get deleted if the test case passes or fails in both scenarios
  • r

    refined-raincoat-56329

    10/19/2022, 3:01 PM
    I have used the afterEach hook but that only works when the test case has passed
  • r

    refined-raincoat-56329

    10/19/2022, 3:22 PM
    I applied this method, was a local machine configuration and was acceptable https://github.com/tnicola/cypress-parallel
1...181182183...252Latest