Index: tst_create_custom_treatment/test.py =================================================================== diff -u -rb4d2f9ef205d7fb355ffd9cd4e5f647dd2c37e9b -rcdc2b6ae80bb42957f9e1e225f5f64140614efd6 --- tst_create_custom_treatment/test.py (.../test.py) (revision b4d2f9ef205d7fb355ffd9cd4e5f647dd2c37e9b) +++ tst_create_custom_treatment/test.py (.../test.py) (revision cdc2b6ae80bb42957f9e1e225f5f64140614efd6) @@ -14,8 +14,8 @@ # NOTE: # This test is intended to be used to verify custom treatment in application . +# SliderArrows are briefly tested as part of tst_instructions_poc - import names from dialin.ui import utils from configuration import utility @@ -28,33 +28,6 @@ PRE_TREATMENT_STEP = 0 -def test_sliderArrows(sliderObject = None, occurenceIndex = 0, currentValue = 0, changeAmount = 0, valuesKey = "", configStr = ""): - """ - Method to test a slider's arrows (increment and decrement) effect on the slider's actual value - @param sliderObject: The slider object - @param currentValue: The slider's current value set when calling this method - @param valuesKey : the string key of this slider's value in the CREATE_TREATMENT_SLIDER_VALUES array - @param configStr : the configuration string - """ - # set the buttons to the index expected - names.o_PreTreatmentCreate_IncrementButton["occurrence"] = occurenceIndex - names.o_PreTreatmentCreate_DecrementButton["occurrence"] = occurenceIndex - - # increment slider value - mouseClick(waitForObject(names.o_PreTreatmentCreate_IncrementButton)) - test.compare(format(waitForObjectExists(sliderObject).value, '.2f'), format(currentValue+changeAmount, '.2f'), valuesKey+" slider value should set to "+str(currentValue+changeAmount)) - - # wait for GUi to update - utils.waitForGUI(0.2) - - # decrement slider value - mouseClick(waitForObject(names.o_PreTreatmentCreate_DecrementButton)) - test.compare(format(waitForObjectExists(sliderObject).value, '.2f'), format(currentValue, '.2f'), valuesKey+" slider value should set to "+str(currentValue)) - - #reset the index to 0 - names.o_PreTreatmentCreate_IncrementButton["occurrence"] = 0 - names.o_PreTreatmentCreate_DecrementButton["occurrence"] = 0 - def set_parameter_type(text): """ Method to set object property based on text