Cypress Testing Interview Questions| Postman Interview Questions For Experienced

Поделиться
HTML-код
  • Опубликовано: 24 янв 2022
  • #postmaninterview #cypressinterview #apitesting
    Which testing framework Cypress support?
    Cypress support Mocha and Chai. It does not support TestNG or JUnit.
    What are the advantages or benefits of Cypress?
    Here are some benefits of Cypress:
    Fast compare to Selenium
    Time Travel Option: You can see the result of every step.
    No sleep time required. Automatic wait is default in Cypress.
    Debugging feature provide access to developer tools
    Google for Angular Application
    Less flaky, since directly execute on browser
    It provides video capture option.
    How to access shadow DOM in Cypress?
    Shadow DOM allows hidden DOM trees to be attached to elements in the regular DOM tree. Shadow DOM is not a new thing by any means - browsers have used it for a long time to encapsulate the inner structure of an element. Use shadow() function to handle shadow dom:
    cy.get('#locator').shadow().find('.nb-btn').click()
    How can I get the first and last child of the selected element in Cypress?
    In Cypress we have first() and last() functions for this. Example:
    cy.get('#nb-element').first()
    cy.get('#nb-element').last()
    Launched the browser (Amazon website) and I need to verify its page title using Cypress so how will you do that
    You can use cy.title() to get the title of the page and .should() to assert. For Example:
    cy.title().should('eq','My Site Title')
    List 5 cypress commands which can be used to interact with DOM elements?
    type(): is used to type on element or text boxes.
    clear(): is used to clear the fields or text boxes.
    click(): is used to click on the element.
    dblclick(): is used to double click on the element.
    rightclick(): is used to right click on the element.
    Could you describe the Cypress folder structures?
    After you install Cypress it will create a recommended folder structure for you. Basically there are 4 major folders:
    Fixture: This folder is used to store data objects or external pieces of static data that can be used throughout the tests. Usually, the data is stored in JSON format.
    Integration: Next folder is integration, This is the main folder where you will keep you test. All your spec files will be here. Test file can be written as .js, .jsx, .coffee and .cjsx.
    Plugins: It has own it's index.js file. Put here your custom plugins code.
    Support: There are 2 files inside support folder: commands.js and index.js
    How Cypress architecture is different from selenium?
    In Selenium we have WebDriver present as a middle layer, which helps in Selenium command execution. But in the cypress, it directly operates inside the browser. So the browser executes the commands which we run as a script.
    Any command you send using Selenium will be sent to specific browser driver like ChromeDriver, GeckoDriver etc and then driver will send command to browser.
    Once you execute code in Cypress, The cypress directly sends the code to browser and click action gets executed.
    What are the various authorization methods provided by Postman?
    Postman provides the below API request Authorization Options:
    API Key
    Bearer Token
    Basic auth
    Digest auth
    Oauth 1.0
    Oauth 2.0
    Hawk Authentication
    AWS Signature
    NTLM Authentication
    What are the various variable scopes provided by Postman?
    Postman has the following variable scopes:
    Global Variables: Global variables allow data access between different collections, requests, and scripts. They are available throughout the workspace.
    Environment Variables: These allow us to tailor the requests about different development environments - such as local testing, stage testing, or prod testing.
    Local Variables: These are temporary variables that are accessible only within the scope of requests scripts. They are either scoped to a single request or single collection, depending on the requirements. These variables are not available after the completion of the script execution.
    Collection Variables: These variables are scoped to be available for all the requests present in a collection. They are independent of the environment.
    Data Variables: These variables come from external JSON or CSV files for defining the datasets required to run the collection in Collection Runner or Newman
    How will you stop the execution of upcoming requests or execution of the collections?
    We can use the below code to stop the execution of the next request: pm.setNextRequest(null);
    29. What do you understand by the pre-request script?
    Pre-request scripts are those scripts that are used for executing Javascript code before a request is run. It is used for performing pre-processing tasks like setting variables, parameters, headers, body data, etc.
    30. If we have a global and a local variable of the same name, which one will be given the most preference in Postman?
    In such cases, the higher precedence is given to the local variable by overwriting the value of the global variable.

Комментарии • 29

  • @rdautomationlearning609
    @rdautomationlearning609  2 года назад +2

    ruclips.net/p/PLTGn8a4YcF3wp7Jb7VKtkYLiIpvyL0pl7
    QA Success Stories Playlist

    • @chavalisumabala957
      @chavalisumabala957 2 года назад +2

      Thanks for giving me the opportunity .

    • @rdautomationlearning609
      @rdautomationlearning609  2 года назад +1

      @@chavalisumabala957 Thanks to you please share the video in your network

    • @chavalisumabala957
      @chavalisumabala957 2 года назад

      @@rdautomationlearning609 Sure

    • @rohithyarramsetty5600
      @rohithyarramsetty5600 11 месяцев назад

      ​ @RD Automation Learning Thanks for posting these mock's.
      Actually, I've attended an interview for a dabba company with my profile as a guy who had 1+ years of experience on Cypress Automation.
      Literally, they've asked each & every question that you questioned @chavali sumabala. However, I've answered everything & cracked it with my experience.
      I really got shocked to know that your mocks are helping interview panels along with job seekers. I would have seen this video before my interview🤣. Kindly someone let me know the way of attending these mocks...!

  • @nokotable
    @nokotable Месяц назад +1

    she is good honestly, i like how she responded to the selenium and cypress question

  • @kumarprakash93
    @kumarprakash93 2 года назад +2

    I already know some answered but definitely this increase my knowledge. Much Appreciated

  • @amitkumarchaudhary2576
    @amitkumarchaudhary2576 Год назад +2

    Thank you sir, I found this video helpful and looking forward for more cypress/API automation related videos.

  • @pankajthapaliya2336
    @pankajthapaliya2336 Год назад

    Really insightful video. Thanks for uploading.

  • @gauri992
    @gauri992 Год назад +1

    Yes sir please start more videos in cypress

  • @albinleo255
    @albinleo255 Год назад +2

    Thank you for the cypress interview questions. Would be helpful if you add the java script interview questions which would be asked in cypress testing interview.

  • @jonnypep
    @jonnypep 2 года назад +2

    Informative 👍

  • @amanmishra6808
    @amanmishra6808 Год назад +1

    One suggestion- 38 minutes of video will be fruitful if someone gets the idea of more and more interview questions. Rather than the candidate it would be good if you directly ask pause for a while and then answer on your own. This video can be improved.

  • @user-xz5qk1tw8k
    @user-xz5qk1tw8k 9 месяцев назад

    hi sir, please create more videos on cypress

  • @jiishudasgupta3139
    @jiishudasgupta3139 9 месяцев назад

    Can you upload a video on how to explain Cypres framework in Interview

  • @ss-pm6oj
    @ss-pm6oj 2 года назад

    👍

  • @akshayband4308
    @akshayband4308 10 месяцев назад

    Sir please create more videos on Cypress

  • @lakshminarayanakankipati7756
    @lakshminarayanakankipati7756 2 года назад

    Please do videos on tosca automation

  • @manpreetsingh4084
    @manpreetsingh4084 2 года назад +2

    20:00
    Running the test multiple times
    Cypress._.times(10, () => {
    describe('Description', () => {
    it('runs 10 times', () => {
    //...
    });
    });
    });

  • @travelsagga
    @travelsagga 2 года назад +2

    Hello Sir, is Cypress automation having opportunities... Will it worth to learn Cypress instead of selenium...?
    Please guide on this....

    • @yoosufsiddiqui8268
      @yoosufsiddiqui8268 Год назад

      Start with selenium then move to cypress, it will be easier to transition

  • @rsfoodchannel6308
    @rsfoodchannel6308 Месяц назад

    Haii sir, i am working on cypress, is that possible to send html report direct to mails using nodemailer , after test exicution

  • @Listen_Evergreen_Songs
    @Listen_Evergreen_Songs Год назад

    Can anyone tell how to verify email means how to open mail & click link inside mail body using cypress..please

  • @ganeshmeher1477
    @ganeshmeher1477 2 года назад +1

    Sir I want to give mock interview..

  • @badsanta7356
    @badsanta7356 12 дней назад

    The real interviewers are not so agreeable on each answer like him. He should act more challenging.

  • @vishalrraymal9582
    @vishalrraymal9582 Год назад

    How can she skip manual testing and directly skip on automation testing? I am not agree with her answer

    • @k4sPer0
      @k4sPer0 Год назад

      Because you can do courses and even istqb certificate that should provide you will all knowledge you would normally get from manual testing