-2

Hello fellow engineers,

I am trying to run allure reports (to generate the html ones) with below command

allure generate C:\Users\Rahul Jain\PycharmProjects\Pytest_Selenium\JSON --clean

But getting below error:

C:\Users\Rahul does not exist
Jain\PycharmProjects\Pytest_Selenium\JSON does not exist

I think this is happening due to spaces between Rahul and Jain. I did google and found few tricks to resolve it but nothing is working for me-

Below are the commands I tried, but not working for me-

"allure generate C:\Users\Rahul Jain\PycharmProjects\Pytest_Selenium\JSON --clean"
"allure generate "C:\Users\Rahul Jain\PycharmProjects\Pytest_Selenium\JSON" --clean"

Would appreciate if you have any other resolution

Stephan
  • 53,940
  • 10
  • 58
  • 91
  • Have you enclosed your command in quotation marks? See this [question](https://stackoverflow.com/questions/6376113/how-do-i-use-spaces-in-the-command-prompt#6378038) – gSaenz Jun 27 '20 at 09:01
  • Does this answer your question? [How do I use spaces in the Command Prompt?](https://stackoverflow.com/questions/6376113/how-do-i-use-spaces-in-the-command-prompt) – gSaenz Jun 27 '20 at 09:01
  • You're supposed to quote the path/filename, not the whole command: `allure generate "C:\Users\Rahul Jain\PycharmProjects\Pytest_Selenium\JSON" --clean` – Stephan Jun 27 '20 at 09:31

1 Answers1

2

allure generate "C:\Users\Rahul Jain\PycharmProjects\Pytest_Selenium\JSON" --clean

The path needs to be in quotes (" "), not any parts of the command you are trying to run.

genovese
  • 45
  • 1
  • 4
  • Sorry,,, its not working as well.Getting below error now 'C:\Users\Rahul' is not recognized as an internal or external command, operable program or batch file. – Rahul Jain Jun 28 '20 at 01:20