PS C:\\Users\\kevin.burdett> Start-Process
cmdlet Start-Process at command pipeline position 1
Supply values for the following parameters:
FilePath: PS C:\\Users\\kevin.burdett> Start-Process -FilePath “C:\\Program Files (x86)\\SmartBear\\TestExecute 12\\Bin\\TestEx
ecute.exe” “X:\\QA\\Automated Testing\\Vortex\\Vortex.pjs” /r /p:Vortex”C:\\Program Files (x86)\\SmartBear\\TestExecute 12\\Bin\\
TestExecute.exe” “X:\\QA\\Automated Testing\\Vortex\\Vortex.pjs” /r /p:Vortex
Start-Process : A positional parameter cannot be found that accepts argument ‘/r’.
At line:1 char:1
+ Start-Process -FilePath “C:\\Program Files (x86)\\SmartBear\\TestExecute 12\\Bin\\Tes ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
This doesn't work when I try to run it from PowerShell, but if I take that same file path and enter it into the Command Prompt, it will launch TestExecute and run all of the tests in our Vortex suite. I haven't been able to figure out why this works in the Command Prompt but not from a PowerShell script.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"211","kudosSumWeight":0,"postTime":"2017-05-19T12:06:59.358-07:00","lastPublishTime":"2017-05-19T12:06:59.358-07:00","metrics":{"__typename":"MessageMetrics","views":4433},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:142535"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:142535":{"__typename":"ModerationData","id":"moderation_data:142535","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:142535":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:21756"},"id":"message:142535","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:142049/message:142535","revisionNum":1,"uid":142535,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:142473"},"conversation":{"__ref":"Conversation:conversation:142049"},"subject":"Re: Running TestExecute Using A PowerShell Script","moderationData":{"__ref":"ModerationData:moderation_data:142535"},"body":"Hi,
\n\n
> Start-Process : A positional parameter cannot be found that accepts argument ‘/r’.
\nI understand the above message as that Start-Process cannot process the '/r' parameter. Actually, this parameter must be processed by TestExecute and for me this means that command line for Start-Process lacks some quotation(s).
My guess that the command line should look like this:
start /wait \"ps \"Start-Process -FilePath \"“C:\\Program Files (x86)\\SmartBear\\TestExecute 12\\Bin\\TestEx
ecute.exe” “X:\\QA\\Automated Testing\\Vortex\\Vortex.pjs” /r /p:Vortex\"\"\"\"\"
but this is a wild guess that must be verified and corrected.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"211","kudosSumWeight":1,"repliesCount":0,"postTime":"2017-05-22T06:09:10.306-07:00","lastPublishTime":"2017-05-22T06:09:10.306-07:00","metrics":{"__typename":"MessageMetrics","views":4427},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"testcomplete-questions","messageSubject":"running-testexecute-using-a-powershell-script","messageId":"142049","replyId":"142339"},"buildId":"3XH0qYWYCnEYycuN5W4S8","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","surveysEnabled":true,"openTelemetry":{"clientEnabled":false,"configName":"smartbear","serviceVersion":"25.4.0","universe":"prod","collector":"http://localhost:4318","logLevel":"error","routeChangeAllowedTime":"5000","headers":"","enableDiagnostic":"false","maxAttributeValueLength":"4095"},"apolloDevToolsEnabled":false,"quiltLazyLoadThreshold":"3"},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["components_seo_QAPageSchema","components_community_Navbar_NavbarWidget","components_community_Breadcrumb_BreadcrumbWidget","components_messages_TopicWithThreadedReplyListWidget","components_messages_MessageListForNodeByRecentActivityWidget","components_messages_RelatedContentWidget","components_customComponent_CustomComponent","components_messages_MessageView_MessageViewStandard","components_messages_EscalatedMessageBanner","shared_client_components_common_List_UnstyledList","components_messages_MessageView","components_messages_MessageView_MessageViewInline","shared_client_components_common_Pager_PagerLoadMore","components_customComponent_CustomComponentContent_TemplateContent"],"appGip":true,"scriptLoader":[]}