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":"MjUuNHwyLjF8b3wxfDE0OjAsMzk6MXwx","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,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:143852":{"__typename":"ModerationData","id":"moderation_data:143852","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:143852":{"__typename":"AcceptedSolutionMessage","uid":143852,"id":"message:143852","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:142049/message:143852","revisionNum":1,"author":{"__ref":"User:user:72668"},"readOnly":false,"repliesCount":1,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumTopicMessage:message:142049"},"conversation":{"__ref":"Conversation:conversation:142049"},"subject":"Re: Running TestExecute Using A PowerShell Script","moderationData":{"__ref":"ModerationData:moderation_data:143852"},"body":"Thanks everyone for all of the suggestions.
I actually stumbled across the solution to my issue in this thread: https://community.smartbear.com/t5/TestComplete-General-Discussions/Running-Test-Execute-file-from-powershell/td-p/126056
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":0,"postTime":"2017-06-09T12:51:20.049-07:00","lastPublishTime":"2017-06-09T12:51:20.049-07:00","solution":true,"metrics":{"__typename":"MessageMetrics","views":4503},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:166503"}}]},"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"customFields":[],"body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"208","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:166503":{"__typename":"ModerationData","id":"moderation_data:166503","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:166435":{"__typename":"ForumReplyMessage","id":"message:166435","entityType":"FORUM_REPLY","eventPath":"category:soapui-os-community/community:nwkab66374board:SoapUI_OS/message:166508/message:166435","revisionNum":1,"uid":166435},"ForumReplyMessage:message:166437":{"__typename":"ForumReplyMessage","repliesCount":6,"id":"message:166437","entityType":"FORUM_REPLY","eventPath":"category:soapui-os-community/community:nwkab66374board:SoapUI_OS/message:166508/message:166437","revisionNum":1,"uid":166437,"subject":"Re: Error in powershell script while trying to integrate SOAPUI tests in VSTS","parent":{"__ref":"ForumReplyMessage:message:166435"}},"ForumReplyMessage:message:166503":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:47014"},"id":"message:166503","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:142049/message:166503","revisionNum":1,"uid":166503,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"AcceptedSolutionMessage:message:143852"},"conversation":{"__ref":"Conversation:conversation:142049"},"subject":"Re: Running TestExecute Using A PowerShell Script","moderationData":{"__ref":"ModerationData:moderation_data:166503"},"body":"moved to correct forum","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"22","kudosSumWeight":0,"repliesCount":0,"postTime":"2018-06-20T01:58:02.590-07:00","lastPublishTime":"2018-06-20T01:58:02.590-07:00","metrics":{"__typename":"MessageMetrics","views":3520},"visibilityScope":"PUBLIC","placeholder":true,"showMoveIndicator":false,"originalMessageForPlaceholder":{"__ref":"ForumReplyMessage:message:166437"},"isEscalated":null,"solution":false,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]}},"QueryVariables:MessageSolutions":{"__typename":"QueryVariables","id":"MessageSolutions","value":{"first":10,"constraints":{"topicId":{"eq":"message:142049"},"solution":{"eq":true}},"sorts":{"postTime":{"direction":"ASC"}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":false,"useBody":true,"useKudosCount":false,"useTimeToRead":false,"useMedia":true,"useRepliesCount":false,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":true,"useTags":false,"useUserHoverCard":false,"useNodeHoverCard":false,"usePreviewSubjectModal":false,"useMessageStatus":false}},"CachedAsset:text:en_US-components/messages/EscalatedMessageBanner-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/EscalatedMessageBanner-1749759144459","value":{"escalationMessage":"Escalated to Salesforce by {username} on {date}","viewDetails":"View Details","modalTitle":"Case Details","escalatedBy":"Escalated by: ","escalatedOn":"Escalated on: ","caseNumber":"Case Number: ","status":"Status: ","lastUpdateDate":"Last Update: ","automaticEscalation":"automatic escalation","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-components/users/UserLink-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/users/UserLink-1749759144459","value":{"authorName":"View Profile: {author}","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/users/UserRank-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserRank-1749759144459","value":{"rankName":"{rankName}","userRank":"Author rank {rankName}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageTime-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageTime-1749759144459","value":{"postTime":"Published: {time}","lastPublishTime":"Last Update: {time}","conversation.lastPostingActivityTime":"Last posting activity time: {time}","conversation.lastPostTime":"Last post time: {time}","moderationData.rejectTime":"Rejected time: {time}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolvedBadge-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolvedBadge-1749759144459","value":{"solved":"Solved"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSubject-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSubject-1749759144459","value":{"noSubject":"(no subject)"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageBody-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageBody-1749759144459","value":{"showMessageBody":"Show More","mentionsErrorTitle":"{mentionsType, select, board {Board} user {User} message {Message} other {}} No Longer Available","mentionsErrorMessage":"The {mentionsType} you are trying to view has been removed from the community.","videoProcessing":"Video is being processed. Please try again in a few minutes.","bannerTitle":"Video provider requires cookies to play the video. Accept to continue or {url} it directly on the provider's site.","buttonTitle":"Accept","urlText":"watch"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageCustomFields-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageCustomFields-1749759144459","value":{"CustomField.default.label":"Value of {name}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageReplyButton-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageReplyButton-1749759144459","value":{"repliesCount":"{count}","title":"Reply","title@board:BLOG@message:root":"Comment","title@board:TKB@message:root":"Comment","title@board:IDEA@message:root":"Comment","title@board:OCCASION@message:root":"Comment"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolutionList-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolutionList-1749759144459","value":{"emptyDescription":"No has been message solutions yet"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageListMenu-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageListMenu-1749759144459","value":{"postTimeAsc":"Oldest","postTimeDesc":"Newest","kudosSumWeightAsc":"Least Liked","kudosSumWeightDesc":"Most Liked","sortTitle":"Sort By","sortedBy.item":" { itemName, select, postTimeAsc {Oldest} postTimeDesc {Newest} kudosSumWeightAsc {Least Liked} kudosSumWeightDesc {Most Liked} other {}}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1749759144459","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Pager/PagerLoadMore-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Pager/PagerLoadMore-1749759144459","value":{"loadMore":"Show More"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageCommentBanner-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageCommentBanner-1749759144459","value":{"preModCommentAuthorText":"This comment will be published as soon as it is approved","movedComment":"This {discussionStyle, select, FORUM {reply} other {comment}} was moved from another post","preModCommentModeratorText":"This comment is awaiting moderation","manageModeration":"Manage Moderation","confirmClearPlaceholderDialog.title":"Clear Placeholder","confirmClearPlaceholderDialog.body":"This will permanently remove the placeholder for all viewers","movedMessagePlaceholder":"This {discussionStyle, select, FORUM {reply} other {comment}} was moved to another post","clearPlaceholder.popover":"Clear placeholder","confirmClearPlaceholderDialog.submit":"Clear","confirmClearPlaceholderDialog.cancel":"Cancel","failureTitle":"Error - Action Failed","failureMessage":"An unidentified problem occurred during the action you took. Please try again later."},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageView/MessageViewInline-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageView/MessageViewInline-1749759144459","value":{"bylineAuthor":"{bylineAuthor}","bylineBoard":"{bylineBoard}","anonymous":"Anonymous","place":"Place {bylineBoard}","gotoParent":"Go to parent {name}"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1749759144459","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1749759144459","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/common/ExternalLinkWarningModal-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/common/ExternalLinkWarningModal-1749759144459","value":{"title":"Leaving the Community","description":"You're about to leave this site and navigate to an external domain. Are you sure you want to continue?","action.submit":"Continue","action.cancel":"Go Back"},"localOverride":false}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"testcomplete-questions","messageSubject":"running-testexecute-using-a-powershell-script","messageId":"142049"},"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_ThreadedReplyList","components_messages_EscalatedMessageBanner","shared_client_components_common_List_UnstyledList","components_messages_MessageView","shared_client_components_common_Pager_PagerLoadMore","components_messages_MessageCommentBanner","components_messages_MessageView_MessageViewInline","components_customComponent_CustomComponentContent_TemplateContent"],"appGip":true,"scriptLoader":[]}