Page 1 of 1

Repo item missing, but no error given.

Posted: Tue Sep 08, 2020 2:40 pm
by dmconsulting1
Somehow there is a repo item missing. Usually when that has happened, the Ranorex project build will fail. But this time, the project builds, but at runtime, it will error on the step because it can't find a missing item. I THOUGHT it used to error at build, but it doesn't seem to.

Did this function change, or am I crazy? Thanks,

repoMissing.png

Re: Repo item missing, but no error given.

Posted: Wed Sep 09, 2020 7:43 am
by odklizec
Hi,

"No Item" means, that there is no repo item attached to the given action. And as far as I know, repo element is not required in case of Key Sequence action? Therefore, there is no exception thrown during build.

Re: Repo item missing, but no error given.

Posted: Wed Sep 09, 2020 2:08 pm
by dmconsulting1
Well that sucks. :lol:

That isn't helpful at all I guess.

Re: Repo item missing, but no error given.

Posted: Thu Sep 17, 2020 8:48 am
by MichalSk
odklizec wrote:
Wed Sep 09, 2020 7:43 am
Hi,

"No Item" means, that there is no repo item attached to the given action. And as far as I know, repo element is not required in case of Key Sequence action? Therefore, there is no exception thrown during build.
Hello everyone,

@odklizec You are totally right, for "Key sequence" Action there are no repo items required.
The new Ranorex Coach, even tells you about that, when you are saving a recording module, by leaving a Key sequence without a repo item. ;)

@dmconsulting1 Why that sucks? If the AUT at this test step, already have focus on a text field or any other input text, why should it be a problem to not attach a repo item?

Re: Repo item missing, but no error given.

Posted: Thu Sep 17, 2020 9:21 pm
by dmconsulting1
If the AUT was in the appropriate state, the script might not have failed and I would not have posted this question in the first place. :lol:

adding the appropriate repo item resolved this issue. I just wish the lack of reference would have caused a build error, but I understand why the keystorke action doesn't require a target I missed the missing reference while doing a peer review for another project.