html tool

2020年12月31日星期四

解决: [ WARN ] Accessing variable items using '@{result_values}[1]' syntax is deprecated. Use '${result_values}[1]' instead.

参考: https://github.com/robotframework/robotframework/issues/2601

【popexizhi: 之前是 robotframework               3.1.1

看这个应该是3.2 的新功能了:)

Changing the meaning of @{var}[x] and &{var}[x] is backwards compatible and requires graceful deprecation. My proposal is to do it like this:

  1. In RF 3.0.3 add the support for using ${var}[x] and also ${var}[nested][x] with variables containing lists and dictionaries. Don't change @{var}[x] and &{var}[x] syntax.

  2. In RF 3.1 deprecate using @{var}[x] and &{var}[x]. Issue a warning if the syntax is used but don't change the functionality yet.

  3. In RF 3.2 change @{var}[x] and &{var}[x] to mean using variable ${var}[x] as a list or dictionary, respectively.

@aaltat
Contributor

aaltat commented on 24 May 2017

I am pretty happy with the extended variable syntax. But I agree that it's quite painful to remember which way to write the square brackets in the variables. I think supporting ${var}[x][y][z] is a good idea.

没有评论:

发表评论