controller_header.t:
- click on first element and sleep for 1 second, to make other popup
dissapear.
Change-Id: If4300ca4f527fa6acd51ac27dacf33dd2adec4c3
controller_other.t:
- click on first element and sleep for 1 second, to make other popup
dissapear.
Change-Id: I6264acf51692dc62edb5a9eaabfc3bf3942612bd
runner.t:
- add controller_profileset.t to experimental test plan
- make controller_profileset.t manually executable
- controller_subscriber will no longer be executed first. a few parts of it
are and will be split up to other files
- rename controller_profile.t to controller_profilepackage.t
controller_subscriber.t:
- moved advanced subscriber profile set tests to controller_profileset.t
Change-Id: I2955155952dc34c6d9d6ee5fbc9ff325aebe9bc6
Common.pm:
- added functions create_ncos and delete_ncos to easily create a ncos where
it is needed. will be used for a new file later
controller_ncos.t:
- replace create/delete code with new functions
Change-Id: I81a720d8a87502dcc2cfbd542226b3b82134a43b
controller_customer.t:
- set cash balance
- perform top-up
- check behavior if invalid values are used
- check for errors
Change-Id: I046592b61070a1c015d852e8f3b226a81a014a91
controller_ncos.t:
- edited one fallback element to something thats better detectable for
selenium (edit button for setting adm_cf_ncos)
Change-Id: Iaefdb6cc46bf8eb8b0f2078a5562265af7110792
controller_reseller.t:
- add a unique id to reseller contract used in termination test. searches
would fail because only searching for a number would pick up other results
too.
Change-Id: Ia4884c23d9cd16945af47f50f3926b0ddd9e3508
get_text_safe is mainly used to retrieve text from elements that like to
randomly dissapear. in the case of dissapearing, it wont crash the entire
script, instead it will only mark current test as failed.
added function call everywhere where it was needed
Change-Id: I82c00b135ec91e3ad5f003e0a1b9f677b5776b1a
controller_other.t:
- changed the element the click workaround should click. apparently the
titlebar gets somehow blocked too now
Change-Id: Id221776415cd023c88000740bc15747defb439c8
controller_customer.t:
- check if test is currently in wrong menu
- if yes, go back to customer details menu manually
- if no, continue as usual
- also check if customer details section in customer needs to be collapsed or
not
Change-Id: I17ae6f279cb37d46de86701668f5517b56c8ac3e
controller_other.t:
- refresh site when edit window is opened to clear out any remaining
tooltips
- remove old workaround (clicking on edit window title)
Change-Id: I8485723d74bb519ad76936515cbc59739e74f455
controller_reseller.t:
- create default reseller instead of creating a new one from scratch.
saves some time and we test default reseller creation too
Change-Id: Icf215dc39fe8b678af6b0fba8287c1378f169164
controller_other.t:
- fill domain name in call list suppression twice, to trigger popup message
on top of edit window, clearing the rest of the input fields from getting
blocked
Change-Id: I97f9014b3fd4bb4d82c3c66d192f33d221217f5b
controller_subscriber.t:
- check if test is currently in wrong menu
- if yes, go back to customer subscriber menu manually
- if no, continue as usual
- also check if subscriber section in customer needs to be collapsed or
not
Change-Id: I1e505409c10edae08dbb36095bb1dc71fbd52d54
controller_header.t:
- added refresh when trying to move objects to fix test not finding
buttons
- fixed up some alert messages
- soon, it will he ctr_headers time to shine (hopefully)
Change-Id: I58dc55e47d62d4e5198f2c1a57a601585ac15970
controller_ncos.t:
- tooltip blocks main menu entries. go to home page first before accesing
main menu to prevent tooltip from showing up
Change-Id: I72044ffd66bc7e3c8b64943f354d0c79b7913dc3
(cherry picked from commit 6a508b2a94)
controller_subscriber.t:
- subscriber details would sometimes throw you back to the subscribers
menu, messing up the test. this workaround should prevent crashing
Change-Id: I600e1570e3c5906fe9bd05980134468cd0478757
controller_billing:
- reload "Edit Peak Times" page, in order to get buttons working properly
without them suddendly going missing
Change-Id: I253d5e40cc7fde6fd7b444c6e094f24533dcd937
controller_other.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I84c7fa4d616eac9c071776d5d37235383d248a9e
controller_other.t
- antoher tooltip blocking input, fixing it by clicking on window text.
this should prevent the tooltip from popping up in the beginning
Change-Id: I2317768f59c0f897bb1c824d69bd939f7383d248
controller_profile.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: Ifcbc453a16eed70fac5b82b85419613ea19bb51b
controller_customer.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I4accb6759810f87c02fe6eb5d93decf0ba873bcc
controller_subscriber.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I3e8d1e98e38b2545839f127307f2a3696fefc59c
controller_ncos.t:
- sometimes alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I50883b20ef6c2cdb0a3a36ae7914148d618f0d42
controller_peering.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I233967e4cc9729c56dfc9cd7583249d44103d4a1
controller_peering.t:
- check for a empty table instead of a error message now. the error message
can sometimes not show up, which causes issues
Change-Id: I6683a276104827cef8a533bf065d0d50782807e3
controller_subscriber.t:
- ngcp-panel sometimes throws you out of the customer details window after
you created a subscriber, messing up the test. taking an alternative route
now to prevent this
Change-Id: Idd548d4726bce0a751248e23d00ebe1bca80763b
controller_timeset.t:
- create peering group
- add timeset to peering group
- check if timeset has been added to peering group
- delete peering group
Change-Id: I80fc624bef126eefb09f7a885a6ad04a90d20ad1
controller_emergency.t:
- sometimes, alerts wont get displayed in this test, which causes the script
to crash completley. it will now print a error message instead of crashing
the entire test
Change-Id: I850758bdabc482f28bc0d6befe803ee7600b6037
controller_subscriber.t:
- create a subscriber, but terminate him after creation instead of deleting
him
- check if customer associated with subscriber still works properly
Change-Id: Ie9f0a93e044281c31839c6632fd50c1a6b14f18f
controller_reseller.t:
- create a reseller and contract, but terminate them after creation instead
of deleting them
- check if reseller can be edited after reseller contract deletion
Change-Id: I06435af363aa45b31911ba495dfeccb789ee73ca
controller_emergency.t:
- tooltips are hell... clicking on back button kills the tooltip and frees
the area where it wants to click
- also fixed a typo
Change-Id: I894c97e5bbc35f770cd1e55cef22d297af16b50c
controller_subscriber.t:
- tooltip from search box sometime block main menu button... again...
clicking on back button once solves this issue
Change-Id: Idd7d6b16acd0e05273e6f665de61101a0efdbed4
controller_customer.t:
- create a customer, but terminate him after creation instead of deleting
him
- check if contact associated with customer still works properly
- added check due to TT#64661
Change-Id: Ia727377649fb693560c0053cfa170ced4e118894
controller_ncos.t:
- tooltip from the input box would not clear fast enough when scrolling
up to the main menu button, causing the tooltip to also scroll up, blocking
the menu button from inputs. now it will click into the second search box
after it is done with text input becuase the second toolip would not block
the menu even when scrolled
Change-Id: If3f548b67e0560fb8ab6bd59cbeae838b63bb4da
controller_other.t:
- execute click events before fill_element to prevent tooltips from blocking
input
- click on titlebar of edit window to workaround tooltips
Change-Id: Iae335558dc8c4b161cf11e74f0db95f0935a221d
controller_profile.t:
- create/edit/delete profile package
- add profile package to test customer
- test contact balance in customer
runner.t:
- added controller_profile.t to the experimental test plan
Change-Id: I43cf154e9c1f9eaca4c13c358f50920f48fdeaf0
testrunner
- reduce geckodriver logs to fatal errors
- this will not supress all logs, since the rest are generated by
firefox/marionette and this setting cannot be changed easily
Change-Id: I96b2f8731aa23af85dc8a32de56a19e1a9f7c2f7
controller_billing.t:
- replaced a instance of //table with its proper id
- cleaned up a diag message
Change-Id: I665ec4b844ac73b6e2ae405ddf53206e2b3bdf66
controller_ncos.t:
- check 2 times if element is availible to select, since geckodriver
apparently forgot how to wait properly for elements...
Change-Id: Ic59b8db94a4414a683fd487b3ad3acc19b4af9c3
noteable changes:
- added function wait_for_attribute, which will pause the script until a
elements attribute changes to a desired value
- move_action is no longer available, was replaced with ActionChains
- fill_element now scrolls to element when it needs to. removed unnecessary
scroll_to_element lines with it
- there are now checks if a edit window is opened, to prevent
element_not_interactable exception
- some checks needed sleep(1), else the test would be redirected to a totaly
wrong page
- added some checks to see if test is on the right page, to prevent failing
alert checks
Change-Id: Ic516fbd1c5bc94bd8b7cb21b1d6bd089d8880fdf
Dockerfile:
- update firefox to 68.0.1 (from 54.0)
- update geckodriver to 0.24 (from 0.18)
- update Selenium-Remove-Driver to 1.33 (from 1.20)
- remove libtest-pretty-perl package, formatting gets handled by TAP now
- update test run command, because it wouldnt work before
- remove control file, its no longer used
- many cleanups
Change-Id: Ib31074b134afd257ba2669d708e886bb133b6ed3
every test file now calls $d->quit(); after they are done testing, regardless
if successful or not. new geckodriver version has some issues when driver
instances are not killed properly
Change-Id: If3d9ccf139d4459345d08b96c33e6d76a0831f8f
controller_domain.t:
- domain now gets created before empty domain tests gets executed. saves
some code lines and some time
Change-Id: I0ffcfd41eddc59cf90d60fbefbe64be5cd8f72f7
controller_customer.t:
- fill in more invalid ips, not only text (real invalid ips, invalid subnet
masks)
- add a second location block when location gets edited
- removed second search query. it wasnt really necessary since only one
element exists plus the first search already checks if location searches
work
Change-Id: I71505b3d5fd0d2958e1941fa57e827bf21362008
controller_billing.t:
- first use letters, then use not valid numbers for values in billing fee
- check error messages when saving with invalid values
Change-Id: Ie3bb6a2b024bfeb298043d5525e8ba58d0822648
controller_domain.t:
- re-enabled test "add empty ip into allowed ip's". TT#61401 was fixed, so
it works properly now
Change-Id: I53f1f62481bbb1b26a54ad86bf37e9cccea70820
controller_header.t:
- removed fill_element when checking if header rule condition was deleted,
since it isn't really necessary plus it causes problems with stale elements
Change-Id: I8e2c1ec89a0986531987b6fca07973104e18333f
runner.t:
- ctr_other and ctr_soundset will be executed by default now
- ctr_header still has some issues that need some attention
Change-Id: I71f4f359b8f83d88d898ab663155430553c9d473
runner.t:
- add controller_header.t to experimental test plan
- make controller_header.t manually executable
Change-Id: Ieb4414cf8380c021295f9cf53da78f01c2f02fe4
controller_subscriber:
- new test will lock and unlock subscriber by checking subscriber details
- checking for "subscriber is locked" messages will be activated later,
since those still have some issues
Change-Id: Idde45cc0ce957dd3d18ffa74c88f231f31fbcd9e
controller_peering.t:
- some move_and_click() fallback elements were missing, causing test issues.
added them now
Change-Id: I6dbde4d03bd31a1b675881b5048cb6eb0c35c218
controller_reseller.t:
- test will now go to reseller details to check if 'reseller is locked'
message appears
Change-Id: I486a362d04f61e8680dc8b71c23deb36d5505699
controller_soundset.t:
- create/edit/delelte sound set
- load default sound files with different options
runner.t:
- add controller_soundset.t to experimental test plan
- make controller_soundset.t manually executable
Change-Id: I1b547e6f914507bdaa87724baf4edfaefd76425f
controller_header.t:
- create a rewrite rule set, to add it to header actions/conditions later
- see if rewrite rule set got added
- delete it after test is done
Change-Id: I2f3553eb196f57642559fa3c3566ee7d91d37631
controller_header.t:
- create/edit/delelte header rule set
- create/edit header rule
- check if a second header rule moves up
- delete second header rule
- create/edit/delete header condition
- create/edit header action
- check if a second header action moves up
- delete header action
runner.t:
- add controller_header.t to experimental test plan
- make controller_header.t manually executable
Change-Id: I0cd3c9f3a6b388a0de848ca434926ccbb3620aa2
controller_billing.t:
- try to fill in invalid values in time def
- add empty time def
- try to fill in invalid values in Special off-peak date
- edit Special off-peak date
Change-Id: Ic2a8c83bea2f055cdb259d7f4ab3eb5c21d0df03
controller_customer.t:
- try to insert invalid values, see if they get rejected
- check error messages
Change-Id: I0d698b3cde54bb175cbc53847736e7835c25fa05
Common.pm:
- reworked arguments system. pbx tests require 'pbx' flag, creating locked
accounts requires 'locked' flag
controller_customer.t:
- edit functions to use this new flag system
- addting test to check in customer details if customer is locked. unlock
it afterwards
Change-Id: I02bfae8a9db6afbad4d5bb1b5a17cd8913c7ffa7
controller_admin.t:
- remove some lines to prevent a unnecessary double search
- edit admin now also edits the name, just like in other scripts
Change-Id: Ie53298f90a0db713bd74329d3d7429750ddab709
controller_billing.t:
- rewritten tests, because trying to add new tests in the old code was pain
- added proper deletion and edit tests
Change-Id: I8d1e0149dfbf65f6c95a7eb4b80b2c84827b5838
controller_billing.t:
- edit diag texts
- change name when editing billing profile, just like in other scripts
- check prepaid setting when editing billing profile
Change-Id: I3e54440477a3d6e20b711f5a96550d4eeda7ec39
controller_reseller.t:
- unlock reseller after locking reseller test was succesfull
prevents some issues when editing reseller
Change-Id: I3aaeb2130b0c3f8616051b9e19e0d9e9c4cca21a
controller_rw_ruleset.t:
- alert checks now print the actual displayed text if check fails
- add missing check
Change-Id: I8e1a371819af4a4427a91f308e574351b671ff0d
controller_peering.t:
- alert checks now print the actual displayed text if check fails
- added missing checks
- removed unnecessary lines
Change-Id: I39354beb92ca2e94972b14a1b91ed2e4875ab5bd
controller_ncos.t:
- alert checks now print the actual displayed text if check fails
- added missing checks
- fixed one diag string
Change-Id: I240e9fe78c468ec1a8d203efc38936ab7e6eb825
controller_emergency.t:
- alert checks now print the actual displayed text if check fails
- removed some unnecessary lines
Change-Id: Ie7ea450e478e934a91fc136a1cd3cfa190ef6823
controller_invoice.t:
- alert checks now print the actual displayed text if check fails
- removed some unnecessary lines
Change-Id: Ic4dec184991f4601c5ce7dee8b3caa2a3bdd31fb
controller_billing.t:
- alert checks now print the actual displayed text if check fails
- added missing alert checks
- removed unnecessary lines
Change-Id: Iba76480349f08dc8d857fcaa195a20af78d382e1
controller_domain.t:
- alert checks now print the actual displayed text if check fails
- removed one unnecessary check
Change-Id: Idcab2a3222ba55145963116a10658e041d11046a
controller_subscriber.t:
- add more scroll_to_element to make sure target content is in sight
- add missing fallback elements to move_and_click()
Change-Id: Ifb68ed8e6a28cf5527333069241677d82d0fb3d7
controller_billing.t:
- temporarly disable a check for network blocks, since this one still creates
problems
Change-Id: I2601a729d4901ce4aaf587026d135ee70ee4fba1
controller_customer.t:
- alert checks now print the actual displayed text if check fails
- added missing alert checks
Change-Id: Id8df9c5c7340d24d08edc6ed6dd32e010af7debe
controller_customer.t:
- fix crash when changing account status (idk why it did work for so long
without any issues tbh)
Change-Id: I1f91331db443bd50f147f21e8487fd500f3f4735