We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
That works, too, but, to solve this issue I found I needed to change the following:
if (KeywordTests.Main.Variables.ourArray != null)
change to:
if (KeywordTests.Main.Variables.ourArray != '')
If I use null here, an empty string is passed to the sql query, causing the syntax error. If I use '' instead of null, no worries. Thanks.
I have tried running the test with that variable initialized, uncommented that line, but I receive a syntax error. The initialization of that variable is read as something other than null, which causes bad data to be sent to the sql query in the next section. This causes a syntax error.
Keywordtest variables do not play well with native array objects. Rather than assigning that array to a keyword test variable, make it a local variable to the function, unless there is some need to have that array available in the keyword test.
That works, too, but, to solve this issue I found I needed to change the following:
if (KeywordTests.Main.Variables.ourArray != null)
change to:
if (KeywordTests.Main.Variables.ourArray != '')
If I use null here, an empty string is passed to the sql query, causing the syntax error. If I use '' instead of null, no worries. Thanks.