Verwendung von Global Parameter in IF

Ranorex Studio, Spy, Recorder, and Driver.
RudolfK
Posts: 9
Joined: Thu Sep 27, 2018 10:26 am

Verwendung von Global Parameter in IF

Post by RudolfK » Mon Nov 11, 2019 11:07 am

In meiner Test-Suite möchte ich folgendes erreichen :

1.) Nach Start der Anwendung AUSLESEN des aktuellen Benutzer und speichern in Global Parameter

2.) Das nächste Recording Module "Anzeige Benutzer" im folgenden Testcase soll nur ausgeführt werden wenn der oben ausgelesene Benutzer UNGLEICH "zvo" ist.

Hätte ich mir eigentlich recht einfach vorgestellt, nur funktioniert es bei mir nicht - würde gerne ein PDF- oder WORD oder Ranorex Logfile hochladen, bekomme aber die Meldung invalid file extension :-(

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

Re: Verwendung von Global Parameter in IF

Post by odklizec » Mon Nov 11, 2019 11:23 am

Hi,

I would suggest you to read below blog post, which nicely describes how to share date between modules...
https://www.ranorex.com/blog/sharing-da ... o-another/

Basically, you must store the obtained user in a module variable, which must be connected to Global parameter of your choice (or Test Case/Smart Folder parameter). And then you must connect that parameter with module variable of your choice in second module. Simply, first module will read the user, store it in parameter. Then second module will use the stored value. 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