Service Virtualization

  • 1.  How can I change the timeout period for a selenium step in Devtest 9.1?

    Posted Mar 09, 2017 11:13 AM

    I'm trying to have a step asserting that a loading page icon isn't on a page. However, it'll wait a long time before it decides that the icon isn't there, about 60 seconds. Below is an example json selenium step. The "timeoutSeconds" property seems to be ignored. Is there a way to actually decrease the timeout time or is there another way to assert on whether an object isn't there?

     

    {
    "type": "script",
    "seleniumVersion": "2",
    "formatVersion": 2,
    "steps": [
    {
    "type": "assertElementPresent",
    "negated": true,
    "locator": {
    "type": "xpath",
    "value": ""(some generic xpath)"
    }
    }
    ],
    "data": {
    "configs": {},
    "source": "none"
    },
    "inputs": [],
      "timeoutSeconds": 7
    }



  • 2.  Re: How can I change the timeout period for a selenium step in Devtest 9.1?

    Posted Jun 20, 2017 06:54 AM

    Hi Bielewicz3,

    Did Madison's recommendations help you out with this issue?



  • 3.  Re: How can I change the timeout period for a selenium step in Devtest 9.1?

    Posted Aug 04, 2017 01:55 PM

    Hi Sorry for the delay. 
    That's fine for Selenium WebDriver, but Devtest doesn't give you that much room to use the script that way. The Selenium used is in a json format only. 

    There is a way to overwrite the properties similarly using testexec in the java steps, not sure what that would be. Updating the selenium-config file doesn't seem to affect the wait time either.