Use dotenv in playwright node.js server

In order for dotenv to work, you need to add import “dotenv/config“; in playwright.config.js

Then in your test script import * as dotenv from 'dotenv'; in example.spec.ts

to call the environment variables:
const API_USER_ID: string = process.env.API_USER_ID || 'user_api';
const API_USER_PASSWORD: string = process.env.API_USER_PASSWORD || 'xyz-123';

Create .env with your environment variables:
USER_ID = user_api
API_USER_PASSWORD = xyz-123

Jmeter: first line of a csv not read in a loop

One obvious reason for this to happen is that you set the “ignore first line” parameter to true.

The most likely case is that you used the csv in another request before your loop. This previous request is taken into account and the first line is considered already done when the loop starts.

If you call the csv three times in three separate requests before using it in a loop, the loop will starts at the fourth line of the csv (disregarding the column name line), even though only the first line was read in the first attempt.