modern.IE来测试防火墙后面的网站

时间:2014-04-17 19:30:26

标签: internet-explorer-11 modern.ie

我希望测试防火墙后面托管的一些网络应用的浏览器兼容性。

我想在我从我的机器上安装并设置了来自GitHub的modern.IE后面的应用程序落后于相同的防火墙(注意:应用程序不在我的机器上,不能通过localhost访问),我可以测试它们......但到目前为止,我一直受到各种问题的困扰。

在我问这个伟大的stackoverflow网站有问题诊断这些问题之前(我已经阅读并在几天的建议之后尝试建议,来自网络各处),我想确认我正在尝试做什么实际上是可能的。

如果在防火墙后面的机器上正确安装和配置了modern.IE,它是否可以用于测试位于该防火墙后面但在该机器上不在本地可用的站点/应用程序?

感谢您的时间。

更新,详细了解我遇到的问题,我采取的一些步骤以及我的最新结果:

我已经使用npm / nodejs多次安装了modern.IE应用程序,每次解决以前的安装问题,例如设置代理,获取适用的vcbuild.exe文件,安装Python,更新路径等每次我做一个新的安装,我都开始使用modern.IE文件的新版本。

- 在我最近的安装之后,我没有收到任何错误,但确实得到了以下警告,在研究它们之后,我找不到解决它们的解决方案,但我继续前进,希望它们不会导致致命的问题:

  

C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \ node_modules \楠\ nan.h(1066)   :警告C4267:'论证' :从' size_t'转换到' int',   可能会丢失数据   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \建立\ contextify.vc   xproj]   C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \ node_modules \楠\ nan.h(1083)   :警告C4267:'论证' :从' size_t'转换到' int',   可能会丢失数据   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \建立\ contextify.vc   xproj]   C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \ node_modules \楠\ nan.h(1114)   :警告C4267:'论证' :从' size_t'转换到' int',   可能会丢失数据   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \建立\ contextify.vc   xproj]   C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \ node_modules \楠\ nan.h(1146)   :警告C4267:'论证' :从' size_t'转换到' int',   可能会丢失数据   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \建立\ contextify.vc   xproj] C:\ Program Files(x86)\ Microsoft Visual Studio   12.0 \ VC \ include \ xlocale(337):使用C4530:使用了C ++异常处理程序,但未启用展开语义。指定/ EHsc   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \构建\上下文   ify.vcxproj]   C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \ node_modules \楠\ nan.h(934):   警告C4244:'初始化' :转换自' __ int64'到' int',   可能的数据   [C:\ IE11 \ node_modules \ jsdom \ node_modules \ contextify \建立\ contextif   y.vcxproj]

以下是在不同类型的网站上运行modern.IE时获得的结果类型:

外部/开放网站,google.com:

  

{" statusCode":"没有回复","消息":"发现错误:错误:   连接ECONNREFUSED" }

内部网站,在我的电脑后面的防火墙后面,xxxx.xxxx.com,我收到以下错误:

C:\ie11>node app.js Server started on port 1337 To scan a private url go to http://localhost:1337/ and follow the instructions

C:\ie11\lib\checks\check-compatlist.js:34
        return this[0].attribs['http-equiv'].toLowerCase() === 'x-ua-compatibl
                      ^ TypeError: Cannot read property 'attribs' of undefined
    at Object.<anonymous> (C:\ie11\lib\checks\check-compatlist.js:34:23)
    at filterFn (C:\ie11\node_modules\cheerio\lib\api\traversing.js:288:20)
    at Function.filter (C:\ie11\node_modules\cheerio\node_modules\lodash\dist\lo dash.js:3150:15)
    at exports.filter (C:\ie11\node_modules\cheerio\lib\api\traversing.js:298:17 )
    at Object.initiate [as check] (C:\ie11\lib\checks\check-compatlist.js:33:51)

    at C:\ie11\app.js:166:41
    at Array.forEach (native)
    at C:\ie11\app.js:164:15
    at process._tickCallback (node.js:415:13)

在查看上面的错误之后,我从/ lib / checks /中删除了check-compatlist.js,这产生了一些积极但令人费解的结果....

在检查google.com时,我仍然会收到与上面所示相同的错误...但是,现在我能够扫描我们的内部网站,减去check-compatlist.js文件提供的功能。

1 个答案:

答案 0 :(得分:1)

是的,这应该是可能的。我认为最近可能会对服务器进行一些更改,导致提交的结果无法生成报告。请参阅https://github.com/InternetExplorer/modern.IE-static-code-scan/issues/50,请添加任何内容以帮助诊断问题。