-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ancestor not found in prefix map #185
Comments
@psagrera Please check the usage of 'ancestor' in XPATH. It needs to be specific to a given XPATH. For example refer: http://stackoverflow.com/questions/3005370/xpath-to-find-nearest-ancestor-element-that-contains-an-element-that-has-an-attr |
Hi @ydnath Thanks for your response, I fixed this issue, however, I'm getting another error: Example: This is working:
however, this is not:
Complete Message: cannot use absolute path on element I can't figure out what's going on .... command: show_chassis_hardware_detail Thanks |
Hi
I'm getting the following error whenever run this testfile:
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
ERROR!! SyntaxError
Complete Message: prefix 'ancestor' not found in prefix map
show_chassis_hardware_detail:
id: name
tests:
exists: name
info: Checking that HDD exits on RE0
xpath: chassis/chassis-module[name = "Routing Engine 0"]//chassis-re-disk-module[name
= "ad0"]
id: name
tests:
exists: name
info: Checking that HDD exits on RE1
xpath: chassis/chassis-module[name = "Routing Engine 1"]//chassis-re-disk-module[name
= "ad1"]
id: name
tests:
exists: name
info: Checking that CF exits on RE0
xpath: chassis/chassis-module[name = "Routing Engine 0"]//chassis-re-disk-module[name
= "ad0"]
id: name
tests:
exists: name
info: Checking that CF exits on RE1
xpath: chassis/chassis-module[name = "Routing Engine 1"]//chassis-re-disk-module[name
= "ad1"]
id: name
tests:
{{pre["description"]}} / POST: {{post["description"]}} )'
info: Checking chassis modules descriptions
no-diff: description
( PRE: {{pre["serial-number"]}} / POST: {{post["serial-number"]}} )'
info: Checking chassis modules serial numbers
no-diff: serial-number
( PRE: {{pre["model-number"]}} / POST {{post["model-number"]}} )'
info: Checking chassis modules model-number
no-diff: model-number
( PRE: {{pre["part-number"]}} / POST {{post["part-number"]}} )'
info: Checking chassis modules part-number
no-diff: part-number
info: Checking if chassis module have been removed
list-not-less: name
info: Checking if new chassis module have been inserted in the router
list-not-more: name
xpath: chassis/chassis-module
id: name, ../name
tests:
( PRE: {{pre["description"]}} / POST: {{post["description"]}} )'
info: Checking chassis submodules descriptions
no-diff: description
{{id_1}} ( PRE: {{pre["serial-number"]}} / POST: {{post["serial-number"]}}
)'
info: Checking chassis submodules serial numbers
no-diff: serial-number
{{id_1}} ( PRE: {{pre["model-number"]}} / POST {{post["model-number"]}}
)'
info: Checking chassis submodules model-number
no-diff: model-number
{{id_1}} ( PRE: {{pre["part-number"]}} / POST {{post["part-number"]}} )'
info: Checking chassis submodules part-number
no-diff: part-number
router.'
info: Checking if chassis submodules have been removed
list-not-less: name
router.'
info: Checking if new chassis submodules have been inserted in the router
list-not-more: name
xpath: //chassis/chassis-module/chassis-sub-module
id: name, ../name, ancestor::chassis-module//name
tests:
{{id_1}} ( PRE: {{pre["description"]}} / POST: {{post["description"]}} )'
info: Checking chassis sub-sub-modules descriptions
no-diff: description
{{id_2}} {{id_1}} ( PRE: {{pre["serial-number"]}} / POST: {{post["serial-number"]}}
)'
info: Checking chassis sub-sub-modules serial numbers
no-diff: serial-number
{{id_2}} {{id_1}} ( PRE: {{pre["model-number"]}} / POST {{post["model-number"]}}
)'
info: Checking chassis sub-sub-modules model-number
no-diff: model-number
{{id_2}} {{id_1}} ( PRE: {{pre["part-number"]}} / POST {{post["part-number"]}}
)'
info: Checking chassis sub-sub-modules part-number
no-diff: part-number
from the router.'
info: Checking if chassis sub-sub-modules have been removed
list-not-less: name
in the router.'
info: Checking if new chassis sub-sub-modules have been inserted in the router
list-not-more: name
xpath: //chassis-sub-sub-module
id: name, ../name, ancestor::chassis-sub-module//name, ancestor::chassis-module//name
tests:
{{id_2}} {{id_1}} ( PRE: {{pre["description"]}} / POST: {{post["description"]}}
)'
info: Checking chassis sub-sub-sub-modules descriptions
no-diff: description
{{id_3}} {{id_2}} {{id_1}} ( PRE: {{pre["serial-number"]}} / POST: {{post["serial-number"]}}
)'
info: Checking chassis sub-sub-sub-modules serial numbers
no-diff: serial-number
{{id_3}} {{id_2}} {{id_1}} ( PRE: {{pre["model-number"]}} / POST {{post["model-number"]}}
)'
info: Checking chassis sub-sub-sub-modules model-number
no-diff: model-number
{{id_3}} {{id_2}} {{id_1}} ( PRE: {{pre["part-number"]}} / POST {{post["part-number"]}}
)'
info: Checking chassis sub-sub-sub-modules part-number
no-diff: part-number
removed from the router.'
info: Checking if chassis sub-sub-sub-modules have been removed
list-not-less: name
inserted in the router.'
info: Checking if new chassis sub-sub-sub-modules have been inserted in the
router
list-not-more: name
xpath: //chassis-sub-sub-sub-module
The text was updated successfully, but these errors were encountered: