cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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 Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

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 Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
Community Manager

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

Alex, thank you for your advice!

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


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors