Sorry I didn’t get you. What do you mean by if Excel was not defined ?
If the excel is not created that mean’s if you do a write excel. The tool creates the Excel and so it’s not required to create one excel manually or through the tool… I hope I am understanding your query correctly
solved this issue , just removed runAllTest.xaml which created under Test framework.