Changing date at browser level for testing - testing

Is there a simple way to test something showing up between two dates by changing the date in the browser (similar to spoofing the time zone in Chrome dev tools) - hoping to avoid changing the date on my whole system to do it 😄
This is for QA testing not automated tests.
Thanks!

Related

How do rapid test driven front end development

I'm trying to rapidly develop my frontend, but every time I change my code I find myself refreshing my browser and running some macro to test whether the changes in my code solved the problem.
I tried changing the process to headless PySelenium, but it takes so long for the driver to launch every time I change my code.
I also tried Cypress.io, but after following the tutorial, the directory just didn't load.
I'm looking for a headless option that runs as fast as possible.

How can I get system uptime programmatically on the chrome-os platform?

System uptime is available in chrome without enabling the developer mode via the crosh window and the command top. I'd like to be able to access this programmatically within my chrome app. I'm not seeing it jump out at me in the chrome apis here.
Uptime usually includes both the load average and the time since the last boot-up. I'm mostly interested in the time since the last boot-up.
How can I get system uptime programmatically on the chrome-os platform - without enabling developer mode?
I do not have a chrome development environment set up at the moment, or I'd try. But chrome.system.cpu.getInfo() looks like it will give you what you want. Note that the processors array gives cumulative time (total) that may be equivalent to time since last boot.
See https://developer.chrome.com/apps/system_cpu.

How to test chrome.alarms api?

I have a chrome extension that uses several alarms scheduled to trigger every hour, every day, etc.
Testing alarm-related features is a pain for our testers, because they need to change system time. What they actually do:
close chrome
open system date/time dialog
move system date ahead
open chrome
Could anybody suggest more convenient ways to make functional tests of chrome alarms?
We check on both windows and OSX.

What tools should I use Selenium or nightwatch or other to automate data entry on few similar websites at the same time?.

I need to enter pretty much the same date on few handful of similar sites using web automation tools/ software. I am not doing testing I just want to use automation side of the tools. I need to enter the data same time ( as real time as possible ). I am wondering if one tool has advantage over other as I am using it just for automation.

Selenium to do automated smoke testing on an interval

I've actually looked through Selenium questions on here and didn't find quite what I was looking for.
Basically I have about 10 "use cases" for smoke testing my site. Basic things such as, can a user log in, can they register etc..
I want to set this up on an interval such as every 10 minutes run these tests.
Is this possible with Selenium Remote Control? Does anyone have a link/tutorial they could point me towards. I'm fairly confident this is possible but I'm just not 100% sure how to get it all set up and running.
Thanks in advance.
Yes this can be done with Selenium RC. I have some Selenium Tutorials on my site. I have set up a basic user experience monitor before using Selenium RC, C#/Nunit and Windows Scheduled tasks to start the job to check the speed of our web app through the day.
Since I recommend using Selenium RC you can use any language you want to write the test.
Dending on what kind of environment you're working with you could use something like JUnit and an automated build system like hudson. This gives you all sorts of notification infrastructure when something goes wrong.
I have known people to run a script like this against both test and production systems (with a fixed user). In test environments you can discover programming mistakes, in production you can assess the up-ness of your system at a far more interesting level than pings or process watching.
Take a look at New Relic's Synthetics product, which wraps Selenium and provides periodic runs with alerting.