I have developed code to capture screenshots at run time and save in word document step by step using katalon. here i can able to capture the screenshot and same screenshot again i am saving under word document but the concern is while trying to open the word document i am receiving error alert popup “We’re Sorry . We cant open code for Word Document because we found a problem with its contents.”
Note: Same code if i run using Ecllipse IDE its capture screen shots and storing under word document. i can able to open the document without any issue.
Could you please let us know why the code is not working under Katalon ??
It’s extremely unusual to see a block of Katalon Groovy code using a main function. Why are you doing it this way?
- I Want to test the particular method, and to run the method in same class with out calling any other test cases i have used Main function.
How do you import the class test into your Katalon TestCase scripts?
I created separate keyword(following the principles of katalon logic) and paste the code
Is there some reason you don’t want to use Katalon custom keywords (the conventional way to do this kind of thing)?
We are using Katalon provided In-built keywords functionality
Can you show me the code from an example TestCase that calls this code?