问题标签 [extent]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1066 浏览

selenium - 我在我的硒(java)范围报告中得到一个空饼图。它看起来全黑

我正在为我的硒测试脚本生成范围报告。它不是一个 Maven 项目。这是一个简单的java项目。使用的 extentReports jar 版本为 2.41.2。我能够生成一个 html 报告,但问题是通过/失败结果没有反映在我的范围报告中。我在报告中得到一个全黑的饼图。请参考屏幕截图。 请参考我的范围报告的图片。


下面是我的代码块:GenerateExtentReports.java(该类包含生成范围报告的方法):


loginUsingIterator.java(这个类包含我的测试脚本):


任何人都可以帮忙吗?一个星期以来我一直在挣扎。

0 投票
0 回答
246 浏览

python - Matplotlib imshow 具有不断变化的数据范围的棋盘图

我有一个数据集,它在每个 y 坐标处都有不同的 x 坐标范围,没有特定的规则或固定的 delta_x。例如

  • y=0 -> x 是范围内的 40 个值 (20, 55)
  • y=1 -> x 是范围内的 40 个值 (24, 49)
  • y=2 -> x 是范围内的 40 个值 (23, 59)
  • ...

有没有办法使用这些数据获得棋盘图imshow

我尝试在循环中更改每个 y 值的范围,但这只是将每一行移动到我设置的最后一个范围。在下图中,顶部的水平范围应为 [1410, 2190],底部的水平范围应为 [1453, 4970]。红线和白线是顶部的简单图,应遵循红色和黄色阴影区域。在此处查看图片

我尝试过使用tricontourf(根据Oliver W. 的建议),它可以很好地处理数据集,绘图是准确的。您还可以查看水平范围如何变化。然而,图像中有一些伪影。如果可能的话,我想使用没有插值的矩形,而不是插值三角形。在此处查看图片

我尝试在每个 y 处附加所有 x 的最小值和最大值,并将这些值用于水平范围,它有点工作。在此处查看图片

它仍然不准确,我不知道为什么。我可以通过手动更改值来获得更好/更正确的图像,首先尝试。在此处查看图片

如有任何意见或建议,我将不胜感激。

0 投票
1 回答
42 浏览

projection - How can I set extent when .prj files are identical?

I have two .shp files whose .prj files are identical and whose extents are different. I'd like to set them to the same extent so they line up on the map.

In ArcGis I have tried:

  • Exporting both to a new coordinate system-defined feature dataset
  • Removing the .prj file and then re defining the projection of each file
  • "project"ing both to the same Coordinate system.
  • Setting the data frame Coordinate System, then reintroducing the shapefiles in hopes that they'll project "on the fly"

In QGIS I have tried:

  • Setting project CRS
  • Setting layer to project and project to layer
  • Saving the shapefiles in specific CRS.

It seems odd to me that this is an issue in the first place: why can't Arc or Q detect this asynchronicity and give the user the option to choose one over the other?

What am I missing here?

Should I look into creating a spatial reference for one of the files, that matches the other?

Any clues/ suggestions/ clarifications?

I know this is a popular issue, and I figure there must be some simple explanation for the above, but I'm not finding it anywhere despite spending hours puzzling over the situation. Perhaps I just don't have the right vocabulary to ask the question. Any help appreciated.

some information about the files:

Extents for shp1:

top: 672344.187336 ft bottom: 629117.938976 ft right:7660465.885171 ft left: 7627858.786745 ft

Extents for shp2:

top: 5984.800593 ft bottom: 4784.800593 ft right: 4616.411043 ft left: 3776.411043 ft

Layer Properties-Source for both shp1 and shp2:

Projected Coordinate System: NAD_1983_HARN_StatePlane_Oregon_North_FIPS_3601_Feet_Intl Projection: Lambert_Conformal_Conic False_Easting: 8202099.73753281 False_Northing: 0.00000000 Central_Meridian: -120.50000000 Standard_Parallel_1: 44.33333333 Standard_Parallel_2: 46.00000000 Latitude_Of_Origin: 43.66666667 Linear Unit: Foot

Geographic Coordinate System: GCS_North_American_1983_HARN Datum: D_North_American_1983_HARN Prime Meridian: Greenwich Angular Unit: Degree

.prj data for both shp1 and shp2:

PROJCS["NAD_1983_HARN_StatePlane_Oregon_North_FIPS_3601_Feet_Intl",GEOGCS["GCS_North_American_1983_HARN",DATUM["D_North_American_1983_HARN",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",8202099.737532808],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-120.5],PARAMETER["Standard_Parallel_1",44.33333333333334],PARAMETER["Standard_Parallel_2",46.0],PARAMETER["Latitude_Of_Origin",43.66666666666666],UNIT["Foot",0.3048]]

0 投票
1 回答
1642 浏览

extent - 使用范围报告在 Selenium 中调用 endTest 之前关闭

BaseTest.java:

  1. 以上是我的硒代码。
  2. 当我使用parallel="methods" 和thread count="3" 执行我的套件文件时,我收到以下错误:“com.relevantcodes.extentreports.ExtentTestInterruptedException: Close was called before test can be used to secure endTest.”。
  3. 在调试时,我发现即使在 AfterMehtod 中的所有 endTest() 被执行之前,AfterSuite 就被调用了。
  4. 我尝试了不同的变体以使代码正常工作,例如,删除静态,在测试本身而不是 after 方法中调用 endTest(),从 AfterSuite 中删除 close() 调用以及许多其他变体。但仍然得到同样的错误。
  5. 我尝试了互联网上提供的所有可能的解决方案,但没有用。

0 投票
0 回答
178 浏览

extent - 范围报告:Klov:查看测试用例历史/搜索时,如何限制其他项目中测试用例的可见性

我在比较历史中的测试用例时遇到了问题,因为在多个项目中引用了相同的测试用例。目前 KLOV 正在从所有项目中获取测试用例数据,并显示在历史记录部分。

有什么方法可以限制项目级别的测试用例的可见性?

KLOV 版本:0.1.1 范围:3.1.5

谢谢,~孙丹

0 投票
0 回答
758 浏览

selenium - 如何在黄瓜范围报告中显示动态值

我想在黄瓜范围报告中显示动态值

前任:

特征文件

给定输入用户标识为 <"userid">

并输入当前时间为 <"currenttime">

例子:

|用户名 | 当前时间|

|10002 | 今天|

定义文件:

在黄瓜范围报告中:它只显示“今天”而不是动态值(当前时间=“07:18”)

请指导我..

0 投票
2 回答
950 浏览

selenium - 截图在 klov 报告中不可见

截图没有上传到 klov 报告中:

收到以下警告:

[testng] 2018 年 7 月 5 日下午 12:34:29 com.aventstack.extentreports.mediastorage.HttpMediaManagerKlov storeMedia [testng] 警告:无法将文件上传到服务器 C:\V2AutoWK/temp//screenshots/HLT_01--Failed_AT-VerifyTitle --0507_123427_PM(IST).png

该文件正在保存在 db 中,但无法在 klov 报告中上传。

任何帮助表示赞赏!

0 投票
1 回答
1662 浏览

testng - 重试分析器和范围报告

我正在为 selenium 项目使用重试分析器和范围报告。当测试用例失败时,使用重试分析器运行失败的测试用例两次。问题在范围报告中能够看到两个运行。一个为已跳过,另一个为失败。

如何修改范围报告,使其只提供最终运行的测试结果,即只报告失败。

范围报告版本 - 2.41.2

此图像显示相同的测试用例,但我只需要记录一个

0 投票
1 回答
1149 浏览

selenium - 范围报告测试总是报告通过

我遇到了一个问题,如果我运行一个包含 6 个步骤、3 个通过、1 个失败、2 个跳过的测试。在我的范围报告中,它将始终报告为已通过。我正在使用克洛夫。是否有可能我没有正确配置报告?如果是这样,是否有人有解决此问题的建议。

这是我的测试,它只是一个打开谷歌登录页面的简单测试,只是为了确保范围报告能够完成我需要的一切

0 投票
5 回答
6423 浏览

report - 如何避免范围报告不覆盖html文件名

我在 appium 中使用带有 testng 的范围报告,它对我来说工作正常。当我的测试运行完成时,范围报告会在我的项目文件夹中生成 html 文件,这就是预期的。

问题是,当我再次运行测试时,extent 报告通过覆盖先前创建的 html 文件的名称来生成新的 html 报告文件。

每次运行测试时,我都希望范围报告生成具有唯一名称或带有日期的名称的 html 文件