Security test had the wrong filename and was taking a screenshot
regardless if an error occured or not. Fixing that
Change-Id: If2692948296fa1c1c7b35a34d4c639e6bfd1e508
Fix selection of days when starting day of month is not on a monday
and add a 0 to day (to make it 01, 02, etc.) so that tests don't get
confused by the formatting
Change-Id: I053f8ab65e0292a49ff4b5ab7a663c9a06b4ab21
It is now possible to skip tests on ce that are intended for pro
and vice versa. Applying this to the fax test, since fax settings
option is only available on pro and not on ce
Change-Id: I7e32fdd63d033d695b3a2cb60514c372c6757453
test_recordig mainly checks the filter settings on recordings page and see
if they get activated properly
Change-Id: I491356ade72bd536e3cc0103919eaa055edc2311
Buttons have been changed and re-arranged. Adapting code so that it
actually clicks the right buttons
Change-Id: Ib08750fce5c9980d644ba0c58b4fad787a3621eb
When switching language to German, one line of text has changed. Updating
line so that test no longer fails
Change-Id: I3747bc8feb70f917fd6c4f037258df136240d5f1
When day = 20 for example, it selects the year 20xx instead of the 20. of the
month, due to only checking if button contains number 20. Specifying XPATH
more clearly and dropping contains check to prevent this
Change-Id: I597e181ad2d88e40dfa0efc27dd29bacea7722eb
Only press "Go back to old UI" button when in new ui. Before it would still
try to press the button regardless if in old or new ui
Change-Id: I23d8f45975067b0a30240393af3a37e31a210c11
Previously when adding condition (date is) to a call forwarding, it was
hardcoded to be the 15th of every month. However this caused tests to fail
on this exact day every month. Now beeing more careful with date choosing.
Change-Id: I3e49f02230d5e6390f484e7d3864747c3437ecdf
Set thread count to one by default for local tests for better
visibilty and reliability. Jenkins tests will continue to run with
2 threads
Change-Id: Ib7ea46674d74f318c3818e733964d6ca2abbabbc
these csc selenium tests have been rewritten due to many ui changes
should also be easier to adapt them if more ui changes are coming
Change-Id: I705a16ca256bd074bda16cf37dddcd67f6516b24
Some pro machines that are used for running tests have cloudpbx enabled and
when trying to create a customer on those it will fail, because it wont
select the product at all. this patch will select basic sip account as product
if cloudpbx is enabled
Change-Id: I15abe159e1be116ac6247ba471e1f26b48f50842
- now check login with no credentials, completley invalid credentials and
only invalid password before logging in
Change-Id: I35be16e0c0a27dcc3c86ae4b144a26cbac62020a
- python selenium is perfectly capable to start geckodriver by itself, so we
can remove geckodriver launch in shell script. we are still killing geckodriver
on launch if necessary to prevent issues with re-execution
Change-Id: I4e413abfd3d4a2f04bee6d48bd33654cc559f562
- add a wait.until(EC.element_to_be_clickable()) element to all 3 instances
where it needs to change 'ring own phone' setting
Change-Id: If505ca17c0cd298b2df819a6ad5b30f892a2aa33
- replaced all wait instruction block into a seperate function. if those
need a change for some reason, we can change them easier
- changed how it should wait until the loading screen goes away
Change-Id: I96ce894c32284652dd3e5bb9cada76177eb70c2a
- edit said checks, so that they will actually print the defined error message
instead of python tracebacks
Change-Id: I923f3e2d5107ad9423f1a98806354652dce97a37
- first check if settings button is clickable before clicking it
- replace move_and_click with click_js. this will also remove the
move_and_click function, since it was almost never used.
Change-Id: I5d4a7fbf7f900ac6e8f1ade5e32033790f8cd753
- reset cursor position before cursor gets moved to prevent mouse curser
not triggering invisible buttons, because cursor is already on set position
- remove second element argument, it isnt needed anymore
- adjust function calls
Change-Id: I2b53a42cd0972ba9a7f8c7f5df92b63f56dc8dd8
- seperate thread settings for local and jenkins tests. this setting was
pretty much useless before.
- add some help text in config files.
Change-Id: Ib9358d3878519390b02beb7c3444b4fc53ad1844
- rewrite 'add number/voicemail' parts. these are now simpler and faster
- improve handling of loading screens. those should not crash the program
anymore
Change-Id: If8f75accb0b04439a4d81262213f3d6672127df3
- log messages are now shown in console for failed tests
- successful tests wont show log messages
Change-Id: Ifb5f3f2ce940c26c4a2f80f7b8b764994e7f5de6
- run tests with nose2 multithreading now. currently on 2 threads, since
anything higher kills my laptop.
- threads have their own subscriber, so that changing i.e the password wont
affect other tests. the amount of threads has to be changed in testrunner and
in the nose2 config files.
- tests are no longer named test_a, test_b, etc. since preperation and
cleanup functions are now done seperatley.
- webdriver creation has been moved into its own function, so changes to it
can be done easier
- fancy new messages when exectuing tests
- fixed tests bugs introduced with threading
Change-Id: I70f985dbde20af020bad9186a0b262f67b33de82
- try out every language on the login screen and see if it changes properly
revert to english after test is done
Change-Id: If4fd90744a26e26a0c2d657bd96b842b427afe5e
- check status of loading screen twice to see if element is clickable. the
loading circle dissapears and reappears again, which can misslead the script
into thinking "the loading is done" when its not.
Change-Id: I51c1712a8c9ae7f5a5f073becc0a2e4a09ff7f03
- said functions no longer work on machines without an active rtc:engine.
disabling them for now until we test on machines with an active engine.
Change-Id: I70a3c17d1e1752f7fda206f7f9e2c7dcb18ab342
- change interface language to all avalible languages and check if interface
language was changed properly
Change-Id: I27999245e43d50a9934ba7b6c52f39776d4860de
- elements that start with "/html" for example wouldnt get picked up since
they only use 1 slash while the check was expecting 2 slashes
Change-Id: I787f8914744e7b8337b27389a6a4257873c4d399
- this function will click an element using javascript instead of the normal
click command. selenium refuses to click some parts of the website even though
they are clearly visible and clickable (i.e language settings)
Change-Id: I4c2b821359a0f6bb0a58e22a28e48ba4fbc9af7b
- add move and click(). this function works by using action chains, just
like the ngcp-panel tests. all action chains in the code have been replaced
by this function.
Change-Id: Idfcf85e0407b2e78441c63ac7c0481c7119e721f
- remove unnecessary find_element calls
- now check for the column name instead of just the column existing
Change-Id: Iaebbbcddc410f8ce50b5e0c76bd203e50a7717e0