English 中文(简体)
测试使用Selenium的Facebook联通应用程序?
原标题:Testing a Facebook Connect application using Selenium?

是否有任何人利用Selenium对使用FacebookLink进行用户标识的网络应用进行自动化测试? 您建议的任何建议或方法?

最佳回答

你们想要做什么?

  1. 你们是否使用真正的“Facebook”用户(由Facebook核实的电话)?

    安全和最可靠但非常困难(impossible)收集“real”用户(电话由FB核实)。

    在界定用户/联系细节方面,如教育历史、工作历史、名称、年龄等(如果你无法查阅所有“真实”的面貌账户)。

  2. 用于测试仪表的面包面用户(未经Fb核实)?

    Probably the easiest to setup, as all are fake users, no Phone verification(with FB) required. But email ids for all users would need to be created.

    即便可以按照你所熟知的思路来设计这一链接。 主要的缺点之一是,如果Fb检测用户不合法,FB将冻结所有账户。 这将使所有贵方位的自动检测成为“><>具体的用户>自动检测,在眼睛的链条上都是无用的。 你们无法做很多工作(除非你计划获得一个品牌的新电话链接,以核实这些账户、无角逐号码、没有天空、不允许有光线电话)。 FB非常严格。 还有1人只可授权1个账户。

  3. Will you be using the Facebook APIs to create Fb test users?

    可喜的是,使用Facebook链接检测你的照片的理想方式(根据FB)点击,用于如何使用它的文件。

    It may seem straight forward, but it has its downfalls(major ones). Very un-relaible, the API returns an error 10-20% of the time, and extremly slow the other times. No way to retrieve the password of a FB test user if misplaced once. Connection info cannot be easily customized. A fair amount of effort required to set it up something without being sure it work each time.

我个人选择了第二种选择。 Facebook在多个用户的平行标识基础上,发现用户(I guess)的合法性。 我拥有跨越各种服务器的 seRC,这些服务器同时进行这些测试,这有可能提高红旗。 因此,只是以更有组织的方式安排这些文字,以避免标识重叠。

我希望你在这种长期解释中找到答案。


永久执行——

$sel->start();
$sel->open_ok("$URL");
$sel->set_speed("500");
$sel->click_ok("//img[@alt= Facebook ]", User clicks on Facebook Login );
$sel->wait_for_pop_up_ok("", "30000", Facebook Login Popup Loading );
$sel->select_pop_up("null");    
$sel->type_ok("email", "email@email.com", User enters Facebook credentials - Username );
$sel->type_ok("pass", "password", User enters Facebook credentials - Password );
$sel->key_press("pass", "\13", User returns Facebook Login credentials );
$sel->select_window("null");
问题回答

暂无回答




相关问题
Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

What approach should I use to test a VBScript?

I ve been asked to help out with a project which has made extensive use of VBScript to process a whole bunch of text files and generate certain outputs - sanitized files, SQL entries etc.. The script ...

Integration Testing for a Web App

I want to do full integration testing for a web application. I want to test many things like AJAX, positioning and presence of certain phrases and HTML elements using several browsers. I m seeking a ...

Best practice approach for automated testing

This is a very strange request for advice for which I truly feel there is no real answer. In my project I have archiving routines on various objects that have been consumed for logical calculations, I ...

Jython exception handling within loops

I am using Marathon 2.0b4 to automate tests for an application. A shortcoming of wait_p, one of the script elements provided by Marathon, is that its default timeout is hardcoded to be 60 seconds. I ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签