Ask a Question

Unknown reason for errors in the logs while filling out the userform

SOLVED
Al2
Occasional Contributor

Unknown reason for errors in the logs while filling out the userform

Hello,

 

I'm using a user form to configure some tests and then run it. It works just fine, but I keep getting this error in the test logs. Could anyone please point to what seems to be wrong or what might be causing this error? 

 

image.png

 

Here's the snippet I have used for accepting the values in the cxUserName field.

 

//Username validation
function cxUserName_OnChange(Sender)
{
Project.Variables.LOGON_ID = Userform.cxUserName.Text;

}

 

Thank you

Al2

2 REPLIES 2
AlexKaras
Champion Level 3

Hi,

 

It is my guess that OnChange event is triggered too often (for example, for every keypress).

Is it really necessary to (re)assign the value to the project variable for every change in the text field? Why not to do all required assignments on form close when user completed all settings and is ready to proceed?

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
sonya_m
SmartBear Alumni (Retired)

Alex, thank you for your advice!

@Al2 Have you tried following it? What is your result?


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: