Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

UI element test cases should be run even after Selenium IDE startup #8429

Open
lukeis opened this issue Mar 4, 2016 · 3 comments
Open

UI element test cases should be run even after Selenium IDE startup #8429

lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 8429

If you have a UI-Element definition with test case(s) (as per https://selenium.googlecode.com/git/javascript/selenium-core/scripts/ui-doc.html
> UI-Element Shorthand > testcase*), and the test case(s) fail, and you re-load that
Core extension, then Selenium IDE doesn't re-run the test cases().

What steps will reproduce the problem?
1. Selenium IDE > Options > Options > Selenium Core extensions > select the attached
ui_element_with_brokent_testcase.js
2. Restart Selenium IDE
3. The custom ui element definition is loaded, its test case is run and if it fails
it's reported (side note: the error doesn't currently show up well, see https://code.google.com/p/selenium/issues/detail?id=842)
4. Selenium IDE > Options > Options > click at Reload button right of 'Selenium Core
extensions'
5. The custom ui element definition is re-loaded, but its test case is not run (and
any failures in it are not reported).

Selenium version: 2.8.0
OS: Fedora 20
Browser: Firefox 35

Please, modify UIMap's addElement() in chrome://selenium-ide/content/selenium-core/scripts/ui-element.js,
around line 888, from

        // run the element's unit tests only for the IDE, and only when the
        // IDE is starting. Make a rough guess as to the latter condition.
        if (is_IDE() && !editor.selDebugger && !uiElement.test()) {

to

        // run the element's unit tests only for the IDE.
        if (is_IDE() && !uiElement.test()) {

To streamline, I suggest you implement it together with https://code.google.com/p/selenium/issues/detail?id=842.

Reported by peter.kehl on 2015-01-26 23:49:26


- _Attachment: [ui_element_with_brokent_testcase.js](https://storage.googleapis.com/google-code-attachments/selenium/issue-8429/comment-0/ui_element_with_brokent_testcase.js)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Correction: To streamline, I suggest you implement it together with https://code.google.com/p/selenium/issues/detail?id=8428

Reported by peter.kehl on 2015-01-26 23:51:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2015-02-14 21:49:06

  • Labels added: Component-IDE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:47:30

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant