2016-07-25 10 views
-2

セレンスクリプトはうまく動作しますが、同じスクリプトをループで実行しているときには、一定時間(1〜2時間)後に停止します。続きセレンスクリプトはしばらくしてから終了します

は誤りです:

INFO: ERROR in Record- session d5609515-432f-4b01-b93d-b3b5571e009d does not exist 

は親切に私を助けて。

+1

どのようなスクリプトですか?あなたは例を挙げることができますか? –

+0

スクリプトは、クライアント側のビジネスプロセスの自動化です。 – Shik

+0

それ以上のものが必要です。スクリプト自体、主に失敗する部分を見る必要があります。可能であれば、それが何に対してテストしているのかのコード – Jsmith2800

答えて

0

ページにアクションがない場合は、ページが変更されずにセッションが終了する時間があるようです。たとえば、銀行口座のサイトではx秒後にセッションが終了します。

は、あなたが他の事の

Exception: ERROR in Record- session d5609515-432f-4b01-b93d-b3b5571e009d does not exist

を処理することは、任意のは、私はそれがセッションタイムアウトを知っているもののために、有効期限が切れ存在しないセッション識別を提案するためのドライバを使用しようとしていることを示しています場合でも、ウェブサイトに焦点を当てて、常に保つ

もう1つ重要なことは、スクリプトを(1〜2時間)実行する必要がある場合、より良い結果を得るために分割する方法を考える必要がある、インターネットであり、常に安定しているとは限りません。

Session Has Expired error on the Internet

ErrorWhen browsing a website that is database driven, requires a login, or is secured, you may see a "Session Expired" or "Session Has Expired" error. The causes of these error messages are detailed in the following sections.

Inactivity - If you have not been doing anything on the page for a set length of time (often 10-30min) the server will time out your 

session. This is often done for security reasons and to help increase the overall speed of the web page. In other words if you were browsing the page and get up and leave, go to lunch, or start browsing other pages when you come back you need to re-login and create a new session. Date or time not correct - Make sure the date and time are properly set on your computer. Cookies - If you are browsing anonymously or your browser does not have cookies enabled it causes many sessions to fail. Make sure your Internet cookies are enabled. Firewall or proxy - If you are connecting to the Internet behind a firewall or through a proxy the firewall or proxy may be restricting or prohibiting the session from being established. Other site related issue - If this issue is only occurring on a certain site and you're not encountering any of the above-related issues it's possible that it could be the site encountering an issue. Contact the company or Webmaster to verify the problem is not on their end.

+0

スクリプトやクライアントアプリケーションの問題がわかりません。どのように私は同じの根本的な原因を知っていますか?クライアントアプリケーションからの問題の場合は、同じログを取得できます。 – Shik

+1

あなたはそのイベントをトレースし、どこに例外がスローされているのか見ることができますが、ランダムになると思います。 –

+0

はい、ランダムで、同じ場所に来ないです。スクリプトは2〜3分しかかかりませんが、500〜1000回実行されます。停止するたびに部分的なプロセスを再起動する方法はありますか、またはフローを達成するための回避策はありますか? – Shik

関連する問題