Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda