SessionCreator (TestExecute) - PrjVar is not an option
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SessionCreator (TestExecute) - PrjVar is not an option
**EDIT** this option works, but not via SessionCreator method, still pending fix...
**EDIT** turns out i read the VERY latest information on the below, and infact PrjVar is a new functionality, as such an upgrade should solve this issue!
According to this page: https://support.smartbear.com/testexecute/docs/running/automating/sessioncreator/index.html i should be able to input a value for a variable using /PrjVar: in a command line entry (session creator).
I have tried this and it informs me that "Flag could not be matched: PrjVar:String"
The list of options also returned when running the session creator does not include the PrjVar option.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@hkim5 I dont see any options to pass prj var .I tried in 14.74. Can you share your command line scripts?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've just tried this (using the /arg:psv...) on 14.74 and get the error that /arg flag could not be matched (as attached), and it is not shown in the list of options for "RunTest" - same error as when trying to use just the pv or psv flag.
Regards,
Courtenay
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in the backlog, this is shown as having been fixed in version 14.74.179.
Here is the cmd line args i used:
"C:\Program Files (x86)\SmartBear\TestComplete 14\x64\Bin\SessionCreator.exe" RunTest /UserName:myDomain\user.name /password:MyComputerPassword /UA /ProjectPath:"C:\path_to\my_project\myProjectSuite.pjs" /project:myProjectName /test:"KeywordTests|Test4" /arg:pv:test1="1234"
where my project variable is called test1 (so you would reference them in your tests as Project.Variables.test1)
Justin Kim
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@hkim5 I tried for Version: 14.74.437.11 dint work.
I get this
Flag could not be matched: arg
SessionCreator.exe RunTest {OPTIONS}
Run the specified TestComplete test.
OPTIONS:
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, as far as im aware, the fix that ive proposed here should be included in the next release of Testcomplete, scheduled for mid April. I think the easiest thing to do for now would be to wait two weeks or so.
Justin Kim
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@hkim5 We had a question from Devops
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wanted to provide an example and request that this example be added to the Session Creator documentation page.
I was able to use a Project Variable with the command line Session Creator tool by doing the following
- adding /arg: option
- adding pv: within in the /arg:
- then setting the project variable to the desired value
- FULL EXAMPLE: /arg:pv:testedApp_AUT=xxxxTEST
Full Session Creator command line (some project specific elements are replaced by x's):
"C:\Program Files (x86)\SmartBear\TestExecute 15\Bin\SessionCreator.exe" RunTest /Username:xxxxxxx /Password:${bamboo.tc_password} /ScreenResolution:"3204*1288" /ProjectPath "C:\Users\xxxx\workspace\testcompletetrial\xxxxxx.pjs" /p:"qa_Automation" /t:"SmokeTests|xxxxSmoke" /arg:pv:testedApp_AUT=xxxxTEST /exportlog:"${bamboo.build.working.directory}/xxxxx_Results/index.html"

- « Previous
- Next »
- « Previous
- Next »