When running tests in a local PC environment, it is possible to test the browser before the official release by using the beta version of Chrome or Edge, although this is limited to batch execution from the command line.
Installing the browser
Download and install the beta version of the required browser.
- Chrome: https://www.google.com/intl/ja/chrome/beta/
- Edge: https://www.microsoftedgeinsider.com/ja-jp/download(Beta channel)
Check the path of the installed beta version. Normally, this will be as shown below.
|Windows||Chrome||C:¥Program Files¥Google¥Chrome Beta¥Application¥chrome.exe|
|Edge||C:¥Program Files (x86)¥Microsoft¥Edge Beta¥Application¥msedge.exe|
|Mac||Chrome||/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta|
|Edge||/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta|
Settings for running regular batch tests
It should be possible to run batch tests from the command line in a regular non-beta browser, by referring to Running batch tests/running command line tests (Local PC test).
Setting and running beta versions
Edit the magic_pod_config.json settings file prepared in the previous step. In order to distinguish it from the regular version, it is recommended that you copy it and rename it before editing. Here, in case of Windows/Chrome, it is recommended that you set the filename to magic_pod_config_chrome_beta.json.
Set the following locations as follows:
Edit and save this as follows:
"binary": "<path to the Chrome beta version confirmed in the previous step>"
If you specify the file after modification and run as a batch from the command line, the beta version of the browser will be launched and the test will be run.
& "C:\Users\<username>\AppData\Local\magic_pod_desktop\app-<MagicPodDesktop version>\MagicPodDesktop.exe" run --magic_pod_config="<magic_pod_config_chrome_beta.json full path>"; Wait-Process -Name MagicPodDesktop -Timeout 3600
In the case of Edge, the modified settings file shall be as follows.
"binary": "<path to the Edge beta version confirmed in the previous step>"
This is basically the same procedure for Mac.
- Substitute the path with the Mac one.
- The command to run this is as shown below.
/Applications/MagicPodDesktop.app/Contents/MacOS/MagicPodDesktop run --magic_pod_config=<magic_pod_config_chrome_beta.json full path>