Replies: 5 comments 46 replies
-
Hi @esp0314 thanks for reporting will look into it. can you please verify subscription by using below form, needed for support. |
Beta Was this translation helpful? Give feedback.
-
You need to use relative path to the project/workspace
![]() |
Beta Was this translation helpful? Give feedback.
-
i only have issue "File Not Found" on the CLI, but when run in the UI it works fine |
Beta Was this translation helpful? Give feedback.
-
this is the full path, but in the azure pipeline agent, this will be different, right? Then it will not work |
Beta Was this translation helpful? Give feedback.
-
I have fixed the issue, Please update CLI to Please test and let me know |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a custom js script wherein it reads a text file and check the value. But when run in in CLI, it says file not found. The location of the envi.txt is the same location with my custom js script. Can you please help me?
const filePath = 'tests/envi.txt';
const endPoint1 = "https://www.google.com/abc";
const endPoint2 = "https://www.yahoo.com/abc";
var env = await tc.readFile(filePath);
console.log("Environment: " + env);
if (env.toLowerCase() == "beta") {
tc.setVar("endPoint", endPoint1, "local");
await tc.runRequest("id");
} else {
tc.setVar("endPoint", endPoint2, "local");
await tc.runRequest("id");
}
also tried const filePath = './tests/envi.txt'; but cannot find also the txt file
Beta Was this translation helpful? Give feedback.
All reactions