Word doc termination in automation

Asked by shama on 2018-04-04

We are using SikuliX to automate one report which downloads the word documents from one tool. the doc gets downloaded but while saving it comes up with MS word doc termination error. We do not get this error when we do this manually. Is there any chance to skip or bypass this error and save the word document?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-04-06
Last reply:
2018-04-06
RaiMan (raimund-hocke) said : #1

--- We do not get this error when we do this manually
... then the automatic is not exactly like the manual flow.

Usually this is a timing problem: manually are you watching something where you decide about the moment to save?

Try to reproduce the problem manually and find out the reason.

shama (ssawant) said : #2

The steps defined in sikulix code are the exact same that we perform during
manual work. The thing is that we are not facing this issue during manual
work and not able to capture it and find the root cause.

On Wed 4 Apr, 2018, 5:32 PM RaiMan, <email address hidden>
wrote:

> Your question #667555 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/667555
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> --- We do not get this error when we do this manually
> ... then the automatic is not exactly like the manual flow.
>
> Usually this is a timing problem: manually are you watching something
> where you decide about the moment to save?
>
> Try to reproduce the problem manually and find out the reason.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/667555/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/667555
>
> You received this question notification because you asked the question.
>

RaiMan (raimund-hocke) said : #3

--- The steps defined in sikulix code are the exact same that we perform during
manual work
... of course I believe you ;-)
... but what I wanted to say was: Usually this is a timing problem

So what can you do?

- find out, after which step the problem pops up
- the next step (offending step) maybe comes too fast with the script
- insert a wait(0.5) before the next step (experiment about the needed duration)

or find out, if there is anything to watch, that signals that the offending step can be executed safely.

shama (ssawant) said : #4

Yah.. We are not sure about the root cause. The word doc termination error
does not show up during a manual work and that's why are not able to find
the reason behind it.

On Fri 6 Apr, 2018, 4:22 PM shama, <email address hidden>
wrote:

> Your question #667555 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/667555
>
> Status: Answered => Open
>
> You are still having a problem:
> The steps defined in sikulix code are the exact same that we perform during
> manual work. The thing is that we are not facing this issue during manual
> work and not able to capture it and find the root cause.
>
>
> On Wed 4 Apr, 2018, 5:32 PM RaiMan, <email address hidden>
> wrote:
>
> > Your question #667555 on Sikuli changed:
> > https://answers.launchpad.net/sikuli/+question/667555
> >
> > Status: Open => Answered
> >
> > RaiMan proposed the following answer:
> > --- We do not get this error when we do this manually
> > ... then the automatic is not exactly like the manual flow.
> >
> > Usually this is a timing problem: manually are you watching something
> > where you decide about the moment to save?
> >
> > Try to reproduce the problem manually and find out the reason.
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> https://answers.launchpad.net/sikuli/+question/667555/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/sikuli/+question/667555
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

RaiMan (raimund-hocke) said : #5

--- The word doc termination error does not show up during a manual work and that's why are not able to find
the reason behind it.

that was not the suggestion.

You have to debug the script to find out about the offending step.

Can you help with this problem?

Provide an answer of your own, or ask shama for more information if necessary.

To post a message you must log in.