<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Check If Signed In Before Test Start (Thread)</title><description> Hello,      I am trying to write a test that involves the actions of signing in and out of a web application. However, I also work manually in this web app as well so I need to sign in manually as well, which can mess up the test results if I forget to sign out when Im done. To save myself worry, Im trying to add an if-statement in my script that checks if the user profile button that appears when one is logged in is on the screen. If it is, then the script will continue, but if not, then the script will perform the necessary log-in actions. I seem to be having trouble generating the if-statement in the RVL language though. What would an if-statement in RVL look like that verifies if a user is logged by checking if the user profile icon, or maybe something else, is visible in the window? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/issues-questions/1814.aspx</link><item><guid isPermaLink="false">threadId=1814</guid><author>Nicholas DiPinto (nicholas_dipinto@wycliffeassociates.org)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">authentication</category><title>Check If Signed In Before Test Start</title><description> Hello,      I am trying to write a test that involves the actions of signing in and out of a web application. However, I also work manually in this web app as well so I need to sign in manually as well, which can mess up the test results if I forget to sign out when Im done. To save myself worry, Im trying to add an if-statement in my script that checks if the user profile button that appears when one is logged in is on the screen. If it is, then the script will continue, but if not, then the script will perform the necessary log-in actions. I seem to be having trouble generating the if-statement in the RVL language though. What would an if-statement in RVL look like that verifies if a user is logged by checking if the user profile icon, or maybe something else, is visible in the window? </description><pubDate>Wed, 07 Mar 2018 18:28:37 -0500</pubDate><a10:updated>2018-03-20T14:00:55-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1814.aspx</link></item><item><guid isPermaLink="false">messageId=3241</guid><author>Nicholas DiPinto (nicholas_dipinto@wycliffeassociates.org)</author><title> Never mind. I got it working. My setup was to include the if-statement  with the action of getting </title><description> Never mind. I got it working. My setup was to include the if-statement  with the action of getting whether the profile button was enabled. My RVL looks similar to this:          If       Action             profile_button      GetEnabled                 Condition                                           output1 isTrue               #If actions     Now my problem is that the test seems to fail whenever GetEnabled returns False (no one is signed in). Seeing as I included this step as a precaution, I want expecting this behavior. Is there a way for Rapise not to consider the test as FAILED if the profile button is not enabled? </description><pubDate>Wed, 07 Mar 2018 20:25:49 -0500</pubDate><a10:updated>2018-03-07T20:25:49-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1814.aspx#reply3241</link></item><item><guid isPermaLink="false">messageId=3242</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> The issue most likely that the GetEnabled property is checking if the item is enabled, but visible.</title><description> The issue most likely that the GetEnabled property is checking if the item is enabled, but visible. In this case it is not actually visible (most likely). So instead you way want to use:     profile_button  DoEnsureVisible      Regards  Adam </description><pubDate>Wed, 07 Mar 2018 21:17:14 -0500</pubDate><a10:updated>2018-03-07T21:17:14-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1814.aspx#reply3242</link></item><item><guid isPermaLink="false">messageId=3245</guid><author>Nicholas DiPinto (nicholas_dipinto@wycliffeassociates.org)</author><title> Adam,      Please disregard my previous reply. Both the method I mentioned previously and the metho</title><description> Adam,      Please disregard my previous reply. Both the method I mentioned previously and the method you recommended generate an expected result. Both methods work just fine when a user is already logged in, but if a user is not logged in, then the test has an overall status of fail. Is this expected? I would imagine an if-statement inside a test should not affect the overall result of the test. The if-statement should only affect the test by verifying whether a particular condition is true.     Nick  </description><pubDate>Thu, 08 Mar 2018 16:09:06 -0500</pubDate><a10:updated>2018-03-08T16:09:06-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1814.aspx#reply3245</link></item><item><guid isPermaLink="false">messageId=3249</guid><author>Nicholas DiPinto (nicholas_dipinto@wycliffeassociates.org)</author><title> I am still experiencing an issue with trying to get this feature to work. When I have an if-stateme</title><description> I am still experiencing an issue with trying to get this feature to work. When I have an if-statement like this:      |      Action     |   sign-in-button  |   DoEnsureVisible        |                       |  Condition |                                      |   output1 IsNotNull    |      The test fails if I am already signed-in. The sign-in button should not be visible in this case because we skip the sign-in page if we are already signed-in. The test should not fail if the sign-in button is not visible. If the output of DoEnsureVisible is Null, then the result should only be that the test does not perform the log-in actions. Is there something I am doing wrong with my if-statement inside my RVL script?                   </description><pubDate>Tue, 20 Mar 2018 14:00:55 -0400</pubDate><a10:updated>2018-03-20T14:00:55-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1814.aspx#reply3249</link></item></channel></rss>