Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in many programming languages against any HTTP website using any mainstream JavaScript-enabled browser. السيلنيوم التحكم عن بعد (اتفاقيه روتردام) هي أداة الاختبار التي تسمح لك أن تكتب الآلي واجهة مستخدم الانترنت تطبيق الاختبارات في كثير من لغات البرمجه بروتوكول انتقال النص المتشعب ضد أي موقع ويب باستخدام اي تعميم جافا سكريبت - تمكين المتصفح. Selenium RC is a powerful and simple framework for running (scheduled or manually) automated UI centric regression tests for web applications / services. السيلنيوم اتفاقيه روتردام هي قوية وإطار بسيط لبالظهور (المقرر او يدويا) واجهة المستخدم الآلي centric الانحدار اختبارات لاستخدام تطبيقات الانترنت / الخدمات. Here are few simple tips for Selenium RC java client. وهنا النصائح البسيطة لاتفاقيه روتردام السيلنيوم جافا العملاء. I used JUnit for tests. كنت JUnit للاختبارات. You can use NGUnit too. يمكنك استخدام ngunit ايضا.

1. To run the Java client you need to only have selenium-java-client-driver.jar (located in selenium-remote-control-1.0-beta-1/selenium-java-client-driver-1.0-beta-1 ) in your classpath. لتشغيل جافا العملاء تحتاج فقط الى السيلنيوم - جافا - العميل - driver.jar (تقع في selenium-remote-control-1.0-beta-1/selenium-java-client-driver-1.0-beta-1) الخاصة بك في classpath.

2. The automatically generated java file (from Selenium Core) is likely to be defective. وقد تلقائيا ملف جافا (من السيلنيوم الاساسية) ومن المرجح ان يكون معيبا. Ensure at least you have the following import statements: ضمان على الاقل يكون لديك ما يلي استيراد البيانات :

import com.thoughtworks.selenium.*; استيراد com.thoughtworks.selenium *. ؛
import junit.framework.*; استيراد junit.framework *. ؛
import java.util.regex.Pattern; استيراد java.util.regex.pattern ؛

3. Ensure that the saved file name matches the generated class file name. ضمان ان انقذ اسم الملف مباريات المتولده من الدرجة اسم الملف.

4. Remove the package statement or replace it with your own package statement. بيان مجموعة ازالة او الاستعاضه عنها بيان مجموعة خاصة بك. Initially just remove it. في البداية فقط ازالتها.

5. Error: java.lang.UnsupportedOperationException: Catch body broken: IOException from cmd=setContext&1=SeleniumSTSanityTest.testSimpleThoughts -> java.net.ConnectException: Connection refused خطأ : java.lang.unsupportedoperationexception : الصيد هيئة كسر : ioexception من setcontext & CMD = 1 = seleniumstsanitytest.testsimplethoughts --> java.net.connectexception : رفض الاتصال

Have you run the Selenium server? وقد تشغيل خادم السيلنيوم؟
Run the Selenium server like this: السيلنيوم خادم تشغيل مثل هذه :
java -jar selenium-server.jar جرة جافا - السيلنيوم - server.jar

The selenium server is located in: السلنيوم خادم يقع في :
selenium-remote-control-1.0-beta-1/selenium-server-1.0-beta-1

6. Error: com.thoughtworks.selenium.SeleniumException: ERROR Server Exception: sessionId should not be null; has this session been started yet? خطأ : com.thoughtworks.selenium.seleniumexception : خطأ خادم استثناء : sessionid لا ينبغي ان يكون لاغيا ؛ وقد بدأت هذه الدورة حتى الآن؟

Ensure that the browser is in the PATH before running the server. ضمان ان المتصفح هو في الطريق قبل تشغيل الخادم. On my linux box I did: على بلدي لينكس مربع فعلت :
export PATH=$PATH:/usr/lib/firefox-2.0.0.6/ الصادرات الطريق دولار = المسار : / usr/lib/firefox-2.0.0.6 /

7. Error: com.thoughtworks.selenium.SeleniumException: Permission denied to get property Location.href خطأ : com.thoughtworks.selenium.seleniumexception : رفض الاذن للحصول على الممتلكات location.href

This happens on Firefox when a previous page wasn’t fully loaded before the next page was invoked (due to timeout or click() was used). هذا يحدث على فايرفوكس الصفحه السابقة عندما لم يكن كاملا قبل تحميلها تم الاستناد الى الصفحه التالية (نظرا لانتهاء وقت أو أضغط على ((استخدم). The solution is to use *chrome instead of *firefox in setup. الحل هو ان تستخدم بدلا من الكروم * * فايرفوكس في الاعداد. I use for firefox: انا استعمل فايرفوكس :
setUp(”http://blog.taragana.com/”, “*chrome”); الاعداد ( "http://blog.taragana.com/" ، و "الكروم *") ؛

8. Timeout error خطأ في فترة الاستراحه
Increase the time in selenium.waitForPageToLoad() to 60000 (1 minute) or more. زيادة الوقت في selenium.waitforpagetoload () الى 60000 (1 دقيقة) او اكثر.

9. How to run the generated java Test file? كيفية تشغيل ملف الاختبار جاوه ولدت؟
This is really a JUnit question but in short you can add the following code in the generated file to get it running: وهذا هو فعلا ولكن السؤال JUnit باختصار يمكنك اضافة الشفره التالية في توليد ملف للحصول على انها ادارة :

 public static Test suite() {  return new TestSuite( SeleniumSTSanityTest .class); }  public static void main(String args[]) {  junit.textui.TestRunner.run(suite()); } اختبار ساكنة العامة الجناح () (عودة جديدة testsuite (seleniumstsanitytest. الطبقة) ؛) ساكنة باطلة الرئيسية العامة (سلسلة args []) (junit.textui.testrunner.run (جناح ()) ؛) 

Note: Replace SeleniumSTSanityTest with the name of your Java source file (without the .java extension) ملاحظه : تحل محل seleniumstsanitytest مع جافا الذي لديك إسم ملف المصدر (دون. جاوه والارشاد)