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
- declare after hours
- add call routes
- edit call routes
- create new source set
- add a new source
- delete new source
- test if deletion fails if only 1 source is left
- logout
Change-Id: I40e76d38c73b837d5ffdea7ffc5e3134b48db279
- 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
- improve 2 cases where WebDriverWait should check for the loading animation
screen dissapearing rather than an element beeing clickable again
Change-Id: Ic30da67ce79095559224cdf20b5f2e8e46663f02
- declare company hours
- add call routes
- edit call routes
- create new source set
- add a new source
- delete new source
- test if deletion fails if only 1 source is left
- logout
Change-Id: I6f5e616053eadb498145ad3843b5e357fd33c11b
- wait for the loading screen to go away instead of waiting until the button
is clickable. should work better
Change-Id: If9d0d33fad0c543db5883af439ae87a53d681723
- 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
- create a second source set
- test creation of destinations in second source set
- test if second source can be created and deleted
- test if deletion fails when only one source is left in list
- wait until EC.element_is_clickable has been replaced with
invisibility_of_element_located, to drop many time.sleep statements and
actually check if loading animation has gone away.
Change-Id: I192159c15c62554b6a34a3dacc447a31ff83f8ac
- add missing test in voicebox
- increase implicitly_wait value to 2 seconds while waiting for element to
dissapear
Change-Id: If05e4a9d23b0f5eb97373626bbb3d511c1864541
- extend call blocking test. edit numbers in both incoming and outgoing lists
and check in changes were applied
Change-Id: I997a405253bb92ef14710c6e442a795dbc724a66
- fix crash where call_blocking test could not switch properly to outgoing
and privacy options due to the fullscreen warning intercepting the click
Change-Id: I5a046aa7d3c2f1235b25aaeea68fed7a61c398cc
this file will contain helper functions. first up is fill_element, which
automatically replaces already filled in text, since send_keys wont do that.
Change-Id: Ib815e403ba9d7fa808c57aecd09a464f45d21413
- enabled option longMessage, which will display not only the contents of the
test, but also the message it got assigned. before it would only display the
message.
- redone the assert texts, since those are only shown when tests fail unlike
pearl tests
Change-Id: I3121be12a6a158ae6c1bb3dfca03071da9424118
- go to call forward always page
- add testdestination and voicebox for all sitautions
- check if all cases have been set up properly
Change-Id: Ia8e0a1e5686bd4346dac5aa3082286764a911266
- go to menu 'conference'
- press 'share conference'
- check if link is correct
- go to conversations
- check if all conversations tabs are empty
Change-Id: I24b3072167f62b02655138e36664b0b136117445
- 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
- log in to csc interface
- enable option 'All anonymous incoming calls are blocked'
- add number to incoming and outgoing calls
- check if number is correct and delete it afterwards
- enable privacy option 'Your number is hidden to the callee'
Change-Id: If6533e254b05bb7dd87d52d09ab53a353a5f5c86
- made some xpath expressions shorter
- fixed a bug where it couldnt detect properly if element was clickable
Change-Id: I82ca5a434fb870759c1523b2b94db192f369a60a
- renamed individual tests to test_a_test, test_b_test, etc so that the
order of execution can be controlled
- add test create_subsciber and delete_subscriber so that subscriber
creation/deletion gets triggered only once instead of every test
- add logout to every test
Change-Id: I5147676de4d366f6ab82d849a8091ac6025261cd
- log in to csc interface
- enable reminders
- set time for reminders
- change reminders setting to 'always'
- check with asserts if everything was applied correctly
Change-Id: Id87aeaa32cc9362989530169bb221eb5af0e09b1
- log in to csc interface
- create a speed dial
- check if speed dial was correctly created
- delete speed dial
- check if speed dial was deleted
Change-Id: Ia99de89171fd1f8781bcbc4b2864364fcb7769f8
- 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