Tag Info

New answers tagged

1

You have several choices, although none are perfect. In the order I prefer to use them: Database/data manipulation - unless you have a ridiculously complex data structure (been there) or no access to the database in question (been there, too), this is the simplest, safest way to manipulate expiry/deadlines. Setup/configuration manipulation - configure your ...


1

I am going to coin this user246's First Law of Testing: everyone who tests software will eventually need to test something with a deadline. (I'm sure several hundred thousand other testers have coined the same law.) Although the specifics vary from one problem to the next, there are two essential solutions: either change the clock or change the deadline. ...


0

If you are running the tests in a VM, with an offline snapshot of the DB also in a VM, there is no reason not to advance the VM system date/time as necessary. You could even do the same without a VM but with standalone isolated hardware and the actual system date/time. This has the advantage of mimicking the real world situation better than modifying ...


0

You can pass the "now" time into the function which verifies the expiry (and obviously also the function which creates the credentials). The test function calls it with a hard-coded time, and the production function calls it with the actual current time. For example (untested): def credentials_valid(credentials, now): return credentials.expiry > now ...


0

I'm using selenium and C# via visual studio, running the tests via Nunit. If run in their entirety my suite of tests would take over 12 hours to complete (I'm testing chrome, firefox and a single IE version in the automated suite). My devs have assisted by providing the basic framework including the database calls and functions to alter the web.config, ...


1

Does your element put inside in iFrame? If it's in iFrame, you should switch driver to that. OR Could you try with element = driver.findElement(By.cssSelector("div.clearfix.stk_btm_toptabs.text-center>a.stk_btm_chpFlight.active"));


2

We are currently in a similar situation, except not with Selenium, but with CodedUI. I think for the concept the technology does not really matter. We have defined a critical path with functional locations that are most critical to our application. This because we have nearly no automated test coverage and want to start with the most important parts first, ...


0

As you are using Selenium webdriver for automation, u can use cucumber framework approach to breakdown the test cases. A simple Gherkin format is used to breakdown the test cases, and also helpful to reuse the code number of times. http://www.toolsqa.com/cucumber/first-cucumber-selenium-java-test/ Above link gives the cucumber format UI. I am sure. You ...



Top 50 recent answers are included