Contributions
Re: Why are my scripts missing SetText
Thanks for the help. When I record the test I get the following with no SetText command. Sub Test1 Dim sensorWorks Dim sensorWorksMain Dim manageJob Dim textBox Set sensorWorks = Aliases.SensorWorks Set sensorWorksMain = sensorWorks.SensorWorksMain Call sensorWorksMain.MainMenu.Click("Project|New") sensorWorks.dlgNew.btnOpen.ClickButton Set manageJob = sensorWorks.ManageJob Set textBox = manageJob.textBoxJobNumber Call textBox.Click(18, 7) Call textBox.Click(44, 10) Call manageJob.label2.Click(38, 18) manageJob.buttonOk.ClickButton Call sensorWorksMain.MainMenu.Click("Project|Close") End Sub I modified the script to add the two SetText items shown below and it works perfectly. Sub Test1 Dim sensorWorks Dim sensorWorksMain Dim manageJob Dim textBox Set sensorWorks = Aliases.SensorWorks Set sensorWorksMain = sensorWorks.SensorWorksMain Call sensorWorksMain.MainMenu.Click("Project|New") SensorWorks.dlgNew.ComboBoxEx32.SetText("test4.proj") sensorWorks.dlgNew.btnOpen.ClickButton Set manageJob = sensorWorks.ManageJob Set textBox = manageJob.textBoxJobNumber manageJob.textBoxJobNumber.SetText("123456") Call textBox.Click(18, 7) Call textBox.Click(44, 10) Call manageJob.label2.Click(38, 18) manageJob.buttonOk.ClickButton Call sensorWorksMain.MainMenu.Click("Project|Close") End Sub1.7KViews0likes3CommentsWhy are my scripts missing SetText
When I record test scripts, I am not getting a SetText line for any text that I am entering into any fields. I've tried SetText and Keys for both Keyword test and scripts and I've tried Jscript, C#, C++ and VB. Nothing seems to work. Thanks,1.8KViews0likes5CommentsRe: Differences in recording JScripts
Hi Helen, Thanks for the reply but I'm still having problems. I tried changing the script engine on both systems and it does not seem to make any difference. I have installed another license on my primary laptop running Win8 and I'm getting the same results as my co-worker running Win10: the dot notation. Dave3.3KViews0likes0CommentsRe: Differences in recording JScripts
Hello and thank you for your responses. I found the setting in Tool->Options but it is not what is causing the problem. It was un checked. Checking gives everything an Alias. I also still don't know why, when I record a test it looks like this: sensorWorks["SensorWorksMain"]["MainMenu"]["Click"]("Project|New"); And when my co-worked records a test it looks like this: sensorWorks.SensorWorksMain.MainMenu.Click("Project|Open"); Thanks, Dave3.4KViews0likes4CommentsDifferences in recording JScripts
Hello, When I record a script, it gives me variables for new dialogs and other objects. When a coworker records the same script, he is getting explict references to the same objects. Is there a configuration setting that we have missed? Thanks, Dave My script looks like this: function Test1() { var sensorWorks; var dlgNew; var manageJob; sensorWorks = Aliases["SensorWorks"]; sensorWorks["SensorWorksMain"]["MainMenu"]["Click"]("Project|New"); dlgNew = sensorWorks["dlgNew"]; dlgNew["ComboBoxEx32"]["SetText"]("test2"); dlgNew["btnOpen"]["ClickButton"](); manageJob = sensorWorks["ManageJob"]; manageJob["textBoxJobNumber"]["SetText"]("123456"); manageJob["buttonOk"]["ClickButton"](); } His script looks like this: function Test1() { var sensorWorks; sensorWorks = Aliases.SensorWorks; sensorWorks.SensorWorksMain.MainMenu.Click("Project|Open"); sensorWorks.dlgOpen.OpenFile("\\\\fs1\\Engineering\\MikeRakhunov\\200123_add_file_040716.proj"); sensorWorks.ManageJob.buttonOk.ClickButton(); }Solved3.4KViews0likes7Commentsmissing variable in jscript
Hi, I am recording test scripts using Jscript and have run into a problem. The application I'm testing is able to create new or open files. When I try to create new, it opens a standard Windows Save As window where I can enter the new file name. When I run the new script, it is failing. I looks like it is using a variable that is not getting declared. I simple sample script is below. If I add var ComboBoxEx32; in the variables list, it will run fine. Why is this variable not getting added when I record the script? Thanks, Dave function Test1() { var sensorWorks; var dlgNew; var manageJob; TestedApps["SensorWorks"]["Run"](); sensorWorks = Aliases["SensorWorks"]; sensorWorks["SensorWorksMain"]["MainMenu"]["Click"]("Project|New"); dlgNew = sensorWorks["dlgNew"]; dlgNew["ComboBoxEx32"]["SetText"]("test1"); dlgNew["btnOpen"]["ClickButton"](); manageJob = sensorWorks["ManageJob"]; manageJob["textBoxJobNumber"]["SetText"]("213456"); manageJob["buttonOk"]["ClickButton"](); }Solved1.1KViews0likes2Comments