Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
Testing via Jasmine - new line after each step

I am new to the Jasmine library.

My aim is to print all the title of each step ("it") even if it passes. Moreover, I would like to write each step in a new line.

How do I do this?

 it('type manager id ', async() => {
    await useful.clickAndWait(page, confEditOrder.openSaleToEdit, confMWpos.swipeCardUsrContinue);
    await sleep.sleep(confUtility.levelWait.selectorAppears);
    isAppear = await useful.isExist(page, confMWpos.swipeCardUsrContinue);
    await ta.inputSwipeCard.setText(confSeting.password.shiftsManager[useful.environments().station]);
    expect("Swipe card is opening: true").toBe(`Swipe card is opening: ${isAppear}`);
});
it('open menu ', async() => {
    // {
    // debugger;
    await useful.clickAndWait(page, confMWpos.swipeCardUsrContinue, confEditOrder.saveCustomer);
    if (customer.subService == "delivery")
        await useful.click(page, confEditOrder.saveCustomer);
    isAppear = await useful.isExist(page, confEditOrder.dealsButton);
    expect("menu is opening: true").toBe(`menu is opening: ${isAppear}`);
    // }
});

My output is

.F

And I wish to change that to be:

type manager id - passed
open menu - failed

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you would like the tests to run in order, you need to change the random boolean.

Check out this exchange: https://sqa.stackexchange.com/q/36601

Although, to ensure the reliability of the unit tests, it is preferable to make the unit tests run in random order to ensure they don't rely on the order they run in.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda