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
- 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
- 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
- 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
add function scroll to element, since this function is easier to remember
and use than anything in javascript. replaced every javascript scroll call
with this function.
Change-Id: Ie9bb3b258f35da96d00a111d1be0db7fe1aa53f7
- subscriber will now use their own domain to prevent errors when deletion
process of previous test runs failed. previously it would pick the first
domain available. however, this caused some issues when the cleanup process
of a previous testrun didnt delete the subscriber. subscriber creation would
fail since the same subscriber name with the same domain already exists.
- subscriber require a valid domain now for this reason
Change-Id: Ibf10106f09fdf8f871e1888afbabf4ef349a6404
- previously it was possible to create a subscriber without creating a
customer. it would just grab the first customer in the customer list and
create a subscriber there. however, since we delete the entire customer now
instead of just the created subscriber and some customers dont allow to create
a subscriber, this feature will be removed.
Change-Id: Ibc8872ebd6073f8ec531a1e9493f036392df0e56
- add functions create and delete_customer, so that you are guarenteed to
start with an empty customer with no subscribers
- edited tests to use those new functions
Change-Id: I853309645252cc2991e5afac6046f325c4d9620c
- add login functions for ngcp panel for usage in future new functions
- rename existing login functions to login/logout_csc
- removed login routine from create/delete_subscriber. functions that need
to create a subscriber or do any other things in ngcp-panel should launch
login_ngcp themselves
- edited tests to properly use these new functions
Change-Id: If936e92df3b486de9783b48d1cb64c1e75888485
- check first if element is clickable when trying to logout
- fix crash on speed dial test
- add a 1 second delay to clicks in reminder. it happens very often that
elements wont accept the click even though element_to_be_clickable() check
has passed.
Change-Id: I36bacabf79d2078530d7db6a60ff6cd17c682bab
Change-Id: Ifaed458e3958341d3081555efdbcd43be5efc2af
- renamed test_login to testrun.py
- put creation/deletion of subscriber in setUp() and tearDown()
- test if logout works
- add functions login() and logout() for use later
- assert statements now have messages to print
Change-Id: Ieb7fb9c1bb8c5df082e90481577920010c038157
ngcp-csc-ui selenium tests will be created here using python3 and nose2 for
running tests. firefox only for now, chrome can be added later.
this test will create a subscriber, login to csc panel and delete subscriber
when it is done
Change-Id: Ie10c369b878885aa38892488aea58353d43e74e1