Q: ability like "go to" ?

Ask general questions here.
SirJay
Posts: 4
Joined: Wed Oct 06, 2021 4:38 am

Q: ability like "go to" ?

Post by SirJay » Wed Oct 06, 2021 6:10 am

Hi Team,

I’m just new in ranorex. I’m currently studying it in preparation before my employer buys a license from it.
More like doing some “proof of concept”.
This contains an attachment.
You can see in the image, there is action 1, 2, and 3.
Note that I have a background in coding; and was able to do some basic user coding in ranorex. (See sample next slide).

Here is now my question.
Is it possible in ranorex, on where, example,
depending on #1; If <something>, it will go to #2…….
Or #1; If <something>, it will go to #3 ?

I guess what I’m trying to proof of concept is, like in coding, the ability of “Go To”; depending on the user code.
------------
q1.PNG
------------
q2.PNG
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Q: ability like "go to" ?

Post by odklizec » Wed Oct 06, 2021 4:05 pm

Hi,

What you want is possible, using SmartFolders and SmartFolder conditions.

At first, create two SmartFolders in Test_IterateCondition. Move SubmitName to first SF and ValidateEntry to second one.
Now in InsertName module, create a variable, which should be filled with result of condition.
Now go to Test_IterateCondition and create new module parameter, which should be connected with variable from InsertName.
And finally, in both SmartFolders, create a condition, which should check the value of parameter from Test_IterateCondition.

You can learn more about TestCase/SmartFolder conditions here:
https://www.ranorex.com/blog/how-to-cre ... ut-coding/
https://www.ranorex.com/help/latest/ran ... ons-rules/
Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration