Forum Discussion
With regards to keyword tests, only if you are using Code Expressions in parameters or if you have Code Snippets in your keyword test does the original language make a difference. Within the keyword test, for an operation that contains a code expression parameter or for a code snippet, there is a segment of the XML that looks like this:
LangId="{9E432E59-33EF-4EAA-95C6-63FC35AF69EE}
This is the indicator of what language the code is used for. It's not clear, just from this, what language this is. So... while you can tell that there is a language originally used for these, I'm not certain how easy it is to determine the specifics of the language.
We are not using coded parameters or code snippets. If Delphi was originally chosen for a keyword test (but I didn't actually "code" anything), then I converted the keyword test to scripted and wanted to use JavaScript, would that be a problem?
- tristaanogre8 years agoEsteemed Contributor
Your process for that would be:
1) Create a JavaScript project (language is chosen on the project level, not at the keyword test level)
2) Add your Keyword test to the JavaScript project (Right click, select Add -> Existing item)
3) Right click on the keyword test and select "convert to script".
This will convert the keyword test to a script function utilizing the language syntax from the parent project. If, on step 1, you had selected VBScript for the language of your project, then any conversions of the keyword tests would be to VBScript because that's the project's parent language.
Related Content
- 4 months ago
- 4 years ago
Recent Discussions
- 12 hours ago