macos 当我没有 Mac 时在 Mac/Safari 上测试 Web 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1825599/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Testing web application on Mac/Safari when I don't own a Mac
提问by SimonF
Having been caught out recently when a web site I launched displayed perfectly on IE, Firefox, Chrome and Safari on Windows but was corrupted when viewed using Safari on the Mac (by a potential customer), I need to start testing how my sites look when viewed on a Mac.
最近,当我启动的一个网站在 Windows 上的 IE、Firefox、Chrome 和 Safari 上完美显示,但在 Mac 上使用 Safari(潜在客户)查看时被损坏时被发现,我需要开始测试我的网站在以下情况下的外观在 Mac 上查看。
Problem is, I don't own a Mac.
问题是,我没有 Mac。
I've tried BrowsrCamp, which claims to provide VNC access to a Mac with lots of browsers installed, but after finding it unreliable (so far, it's worked 1 day in the last 5) I need another solution.
我试过 BrowsrCamp,它声称可以提供对安装了大量浏览器的 Mac 的 VNC 访问,但在发现它不可靠(到目前为止,它在过去 5 天中工作了 1 天)之后,我需要另一个解决方案。
Any suggestions?
有什么建议?
回答by Muhammad Ahsan
The best site to test website and see them realtime on MAC Safari is by using
测试网站并在 MAC Safari 上实时查看它们的最佳站点是使用
They have like 25 free minutes of first time testing and then 10 free mins each day..You can even test your pages from your local PC by using their WEB TUNNEL Feature
他们有 25 分钟的首次测试免费时间,然后每天有 10 分钟的免费时间。您甚至可以使用他们的 WEB 隧道功能从本地 PC 测试您的页面
I tested 7 to 8 pages in browserstack...And I think they have some java debugging tool in the upper right corner that is great help
我在浏览器堆栈中测试了 7 到 8 个页面......我认为他们在右上角有一些 java 调试工具,很有帮助
回答by Marcel Haldemann
Meanwhile, MacOS High Sierra can be run in VirtualBox (on a PC) for Free. It's not really fast but it works for general browser testing.
同时,MacOS High Sierra 可以在 VirtualBox(在 PC 上)免费运行。它不是很快,但它适用于一般浏览器测试。
How to setup see here: https://www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/
如何设置见这里:https: //www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/
I'm using this for a while now and it works quite well
我现在用了一段时间,效果很好
回答by m3h0w
For my case (a small, personal project) https://www.lambdatest.com/was very helpful. Free tier allows for 6 sessions per month.
对于我的案例(一个小型的个人项目)https://www.lambdatest.com/非常有帮助。免费套餐允许每月 6 个会话。
回答by eric
Unfortunately you cannot run MacOS X on anything but a genuine Mac.
不幸的是,除了正版 Mac,您无法在任何设备上运行 MacOS X。
MacOS X Server however can be run in VMWare. A stopgap solution would be to install it inside a VM. But you should be aware that MacOS X Server and MacOS X are not exactly the same, and your testing is not going to be exactly what the user has. Not to mention the $499 price tag.
然而,MacOS X Server 可以在 VMWare 中运行。权宜之计是将其安装在 VM 中。但是您应该知道 MacOS X Server 和 MacOS X 并不完全相同,并且您的测试不会与用户所拥有的完全相同。更不用说499美元的价格标签了。
Simplest way is to buy yourself a cheap mac mini or a laptop with a broken screen used on ebay, plug it onto your network and access it via VNC to do your testing.
最简单的方法是给自己买一台便宜的 mac mini 或在 ebay 上使用的屏幕坏了的笔记本电脑,将其插入您的网络并通过 VNC 访问它以进行测试。
回答by Kevin Shea
回答by Coxy
If it's a major concern to start doing a lot of testing on a Mac, then I would definitely suggest buying a second hand Mac, or perhaps building a Hackintosh. The former gets you up and running quickly, the latter gives you a lot of power for the same price.
如果开始在 Mac 上进行大量测试是一个主要问题,那么我肯定会建议购买二手 Mac,或者构建一个 Hackintosh。前者让您快速启动并运行,后者以相同的价格为您提供强大的动力。
For just the odd piece of testing, running OS X in VMWare on your current PC is a cheaper option.
对于一些奇怪的测试,在当前 PC 上的 VMWare 中运行 OS X 是一个更便宜的选择。
回答by Martin Zvarík
A) Install VirtualBox and download free MacOS High Sierra image
A) 安装 VirtualBox 并下载免费的 MacOS High Sierra 镜像
See tutorial here: https://www.wikigain.com/install-macos-high-sierra-virtualbox-windows/
请参阅此处的教程:https: //www.wikigain.com/install-macos-high-sierra-virtualbox-windows/
You will get the latest Safari.
您将获得最新的 Safari。
You don't need to pay for those online services!!!
您无需为这些在线服务付费!!!
Use these vbox settings to increase resolution and memory, but it is still very laggy and slow:
使用这些 vbox 设置来增加分辨率和内存,但它仍然非常滞后和缓慢:
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage setextradata "macOS" VBoxInternal2/EfiGraphicsResolution 1920x1080
VBoxManage modifyvm "macOS" --vram 256
B) Alternatively try VMware
B) 或者尝试 VMware
which seems to be much faster: youtube.com/watch?v=K7E_UqgCFbQ (video taken down) - use google( you need VMware + MacOs ISO image)
这似乎要快得多:youtube.com/watch?v=K7E_UqgCFbQ(视频已删除)-使用谷歌(您需要 VMware + MacOs ISO 映像)
@edit: It is significantly faster!!!
@edit:明显更快!!!
回答by Ben Curthoys
https://turbo.net/offers a browser sandbox in which containerised virtual machines run browser sessions for you. I tried it with Safari on my Windows development machine and it seems to work very well.
https://turbo.net/提供了一个浏览器沙箱,容器化虚拟机在其中为您运行浏览器会话。我在我的 Windows 开发机器上用 Safari 尝试过它,它似乎工作得很好。
回答by JerryGoyal
There's a free trial for 100 minutes on https://browserling.comand you can test on Safari v7.0during the trial period.
https://browserling.com上有 100 分钟的免费试用期,您可以在试用期内在 Safari v7.0 上进行测试。
回答by Steve Harrison
Litmusmay help you. It will take screenshots of your webpage(s) in a wide variety of browsers so you can make sure that your site works in all of them. A free alternative (Litmus is a paid service) is Browsershots, but you do get what you pay for. (In some screenshots that Browershots returns, the browser hasn't yet finished loading the webpage...)
石蕊可能对你有帮助。它将在各种浏览器中截取您的网页的屏幕截图,以便您确保您的网站在所有浏览器中都能正常工作。一个免费的替代方案(Litmus 是一项付费服务)是Browsershots,但你确实得到了你所支付的。(在Browershots返回的一些截图中,浏览器还没有加载完网页......)
Of course, as other people have suggested, buying a Mac is also a good solution (and may be better, depending on the kind of testing you need to do), because then you can test your website yourself in any of the browsers that run under Mac OS X or Windows.
当然,正如其他人所建议的,购买 Mac 也是一个很好的解决方案(可能更好,取决于您需要进行的测试类型),因为这样您就可以在任何运行的浏览器中自己测试您的网站在 Mac OS X 或 Windows 下。