Forum Discussion
Morning Tanya!
I have tried this and am getting this JScript runtime error "TestedApps.'testname'.Params.SimpleParams is null or not an object" Is there more setup I need to do before using this statement?
I also tried what's written in the link you shared and got the same runtime error.
<AppName> is the name of your tested app. Look at the green rectangles on this images:
For example, for the Notepad application, the code will look like this:
TestedApps.notepad.Params.SimpleParams.CommandLineParamete
rs
- amcnamara9 years agoContributor
Yes I am using my test app name that appears in that text box.
- amcnamara9 years agoContributor
I ended up just created separate tested applications for every server. Let me know in the future if someone finds a better way to do this.
- AlexKaras9 years agoChampion Level 3
Hi,
The approach mentioned by Tanya works.
It might help if you let us know the actual code that did not work for you.
> TestedApps.'testname'.Params.SimpleParams
Assuming that the TestedApp name for your application is 'testname' (without quotes), the code line must be
TestedApps.testname.Params.SimpleParams
I am not sure if it is possible to name the TestedApp as 'testname' (with quotes) as this produces the name that is invalid for the scripting language code and if you managed to name your tested app using quotes, this should be reported as an issue to Support via the http://support.smartbear.com/message/?prod=TestComplete form.
Related Content
- 6 years agoZach_Aars
- 6 months agosohailalam2696
Recent Discussions
- 4 hours agoJacobjacob44