Forum Discussion

ian_brown's avatar
ian_brown
Occasional Contributor
13 years ago

SpinEdit Issues

Having problems playing recorded tests where values have been entered into SpinEdit controls. On playback the values are entered, as recorded, but revert to null values as soon as focus leaves them. Any ideas ??

Cheers, Ian

4 Replies

  • vajindarladdad's avatar
    vajindarladdad
    Frequent Contributor


    Hi Ian,

    First thing, I would advise is , not to use Record & Playback method.

    I would highly recommend you creating script for the required scenario & use it.



    Coming to your question;

    Try to map the SpinEdit object & get it's method which changes the value of it & then use it.

    Also check , if the same problem appears withe script also. It if does , then please report this issue to SmartBear Support


  • ian_brown's avatar
    ian_brown
    Occasional Contributor
    A script-based approach appears to make no difference. But in any case, one of the mainstays of the product IS the ability to record and play back tests. The spin edit issue would be a deal breaker for us as it is used throughout our applications.Since these controls are used to accept numeric data, which we would want to audit as part of our testing procedures, the inability to populate them on playback would render meaningful testing impossible. Cheers, Ian
  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi Ian,



    We use scripts and Recording is used as starting point. Simply recording and playing could work if the generated code would manage to specify the recording speed. Unfortunately it doesn't so you must fine tune the code for it to execute properly.



    Back to your issue, why don't you post an simple demo application for those interested to have a look. If confidentiality is an issue, you could send it to support.



    Sincerely







  • ian_brown's avatar
    ian_brown
    Occasional Contributor
    OK, I've managed to fix this. As has been remarked, the best way to use the application is with scripts, as this gives you much greater control. The spin edit control has a sub-control, a masked text box. The recorded script was setting the text of the text box whereas my amended script sets the text of the spin edit control itself, which works fine.