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

144
Visualizações
How to simulate a F2 key to a commad line application hosted in a server using NodeJS?

I have to automate and test the happy path of a command line tool hosted in an AWS server. I am stuck in simulating a F2 key. Is there a way, we could pass it to the server as bytes? A sample example code is added below. F2 is needed as it is used to save the entry.

describe(testName, async()=>{
 it('Verify Connection', async(done) => {
    const stream = await conPromise.connectPromise();
    const writable = await fs.createWriteStream('file.txt');
     await sleep(5000);
     await stream.write('3\n');
     await sleep(5000);
     await stream.write('T\n');       
 });
})

Please help out with some suggestions as I have tried many and failed.

about 4 years ago · Juan Pablo Isaza
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