Why we are getting the error - user sessin is locked ?
Thanks
NG
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"218","kudosSumWeight":0,"postTime":"2021-02-05T07:10:38.164-08:00","lastPublishTime":"2021-02-05T07:10:38.164-08:00","metrics":{"__typename":"MessageMetrics","views":3066},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:208717/message:212801","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:212802"}}]},"customFields":[],"editFrozen":false,"body@stringLength":"711","rawBody":"
Support not able to resolve the issue.
I put the handler as firefox is getting hung so it kill the fireofx and we do not get this issue. but we got another issue - The Operation cannot be performed because the user session is locked.
REM Kill Firefox if it Exists
tasklist /FI \"IMAGENAME eq firefox.exe\" 2>NUL | find /I /N \"firefox.exe\">NUL
if \"%ERRORLEVEL%\"==\"0\" taskkill /f /t /im firefox.exe
timeout /T 2
Why we are getting the error - user sessin is locked ?
Thanks
NG
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:212801_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:212802":{"__typename":"ModerationData","id":"moderation_data:212802","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:212802":{"__typename":"ForumReplyMessage","uid":212802,"id":"message:212802","revisionNum":1,"author":{"__ref":"User:user:87934"},"readOnly":false,"repliesCount":13,"depth":7,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:212801"},"conversation":{"__ref":"Conversation:conversation:208717"},"subject":"Re: TestExecute + Firefox has stopped working","moderationData":{"__ref":"ModerationData:moderation_data:212802"},"body":"
Does your ten tests run sequentially in the same firefox or each test close firefox and launch another one ?
\n\n
Generally i restart a new instance of Firefox every 5 tests to avoid problems due to :
\n- memory leak in tested app
\n- memory footage of firefox
\n- crash of firefox
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"218","kudosSumWeight":0,"postTime":"2021-02-05T07:34:27.019-08:00","lastPublishTime":"2021-02-05T07:34:27.019-08:00","metrics":{"__typename":"MessageMetrics","views":3066},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:208717/message:212802","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:212811"}}]},"customFields":[],"editFrozen":false,"body@stringLength":"331","rawBody":"Does your ten tests run sequentially in the same firefox or each test close firefox and launch another one ?
\n\n
Generally i restart a new instance of Firefox every 5 tests to avoid problems due to :
\n- memory leak in tested app
\n- memory footage of firefox
\n- crash of firefox
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:212802_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:212811":{"__typename":"ModerationData","id":"moderation_data:212811","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:212811":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:72353"},"id":"message:212811","revisionNum":1,"uid":212811,"depth":8,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:212802"},"conversation":{"__ref":"Conversation:conversation:208717"},"subject":"Re: TestExecute + Firefox has stopped working","moderationData":{"__ref":"ModerationData:moderation_data:212811"},"body":"
We are running our projects(tests) using batch file.
when running each project - we check whether any browser is running and if it is then close and kill the browser . launch the browser and ran some steps of the tests. Once the step is finished , we close the browser and also kill the browser process.
Now when the next project in sequence - we are checking again if there is any browser process then close and kill . Then doing the same steps as mentioned above. and so on.
let me know if you need more information. I have attached the batch file this trigger the project.
Thanks
NG
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"213","kudosSumWeight":0,"repliesCount":12,"postTime":"2021-02-05T09:00:16.540-08:00","lastPublishTime":"2021-02-05T09:00:16.540-08:00","metrics":{"__typename":"MessageMetrics","views":3048},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:208717/message:212811","customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[{"__typename":"AttachmentEdge","node":{"__ref":"Attachment:{\"id\":\"attachment:message212811AttachmentNumber1\",\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/1/TC_StudentProjects.txt\"}"}},{"__typename":"AttachmentEdge","node":{"__ref":"Attachment:{\"id\":\"attachment:message212811AttachmentNumber2\",\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/2/TestCompletemainScript.png\"}"}}],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"readOnly":false,"editFrozen":false,"body@stringLength":"926","rawBody":"
We are running our projects(tests) using batch file.
when running each project - we check whether any browser is running and if it is then close and kill the browser . launch the browser and ran some steps of the tests. Once the step is finished , we close the browser and also kill the browser process.
Now when the next project in sequence - we are checking again if there is any browser process then close and kill . Then doing the same steps as mentioned above. and so on.
let me know if you need more information. I have attached the batch file this trigger the project.
Thanks
NG
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:212811_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"Revision:revision:212802_1":{"__typename":"Revision","id":"revision:212802_1","lastEditTime":"2021-02-05T07:34:27.019-08:00"},"Revision:revision:212801_1":{"__typename":"Revision","id":"revision:212801_1","lastEditTime":"2021-02-05T07:10:38.164-08:00"},"Attachment:{\"id\":\"attachment:message212811AttachmentNumber1\",\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/1/TC_StudentProjects.txt\"}":{"__typename":"Attachment","id":"attachment:message212811AttachmentNumber1","filename":"TC_StudentProjects.txt","filesize":13388,"contentType":"text/plain","url":"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/1/TC_StudentProjects.txt"},"Attachment:{\"id\":\"attachment:message212811AttachmentNumber2\",\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/2/TestCompletemainScript.png\"}":{"__typename":"Attachment","id":"attachment:message212811AttachmentNumber2","filename":"TestCompletemainScript.png","filesize":49421,"contentType":"image/png","url":"https://community.smartbear.com/t5/s/nwkab66374/attachments/nwkab66374/testcomplete-questions/23156/2/TestCompletemainScript.png"},"Revision:revision:212811_1":{"__typename":"Revision","id":"revision:212811_1","lastEditTime":"2021-02-05T09:00:16.540-08:00"}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"testcomplete-questions","messageSubject":"testexecute--firefox-has-stopped-working","messageId":"208717","replyId":"208741"},"buildId":"q_bLpq2mflH0BeZigxpj6","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"25.2.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false,"inboxMuteWipFeatureEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/messages/RelatedContentWidget/RelatedContentWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","./components/customComponent/CustomComponentContent/TemplateContent.tsx","../shared/client/components/common/List/UnwrappedList/UnwrappedList.tsx","./components/attachments/AttachmentView/AttachmentView.tsx","./components/attachments/AttachmentView/AttachmentViewChip/AttachmentViewChip.tsx"],"appGip":true,"scriptLoader":[]}