F2etest and UI Recorder automated test environment deployment pits records

Source: Internet
Author: User



Pit 1: Try to deploy the time only in the opennode.bat filled with two browsers, test pass and then add other browsers, the page has not been displayed. You need to empty the ' wd_browsers ' and ' wd_nodes ' tables in the database and restart 2008, and the database reloads the new node information. (The solution to this pit is in the video tutorial, no text version)









Pit 2: Remote connection problem: After the 2008 boot, node does not start, the F2etestweb page can open 3 browser pages. When the Webdriver cloud shows that node has been started, the F2etestweb page can only open 1 browser pages, and many more will report a connection error. If this time again through the Remote Desktop to connect to 2008,f2e the previous page will not open.



Pits: Run gpedit.msc in Group Policy to configure the limit number of connections in the computer Configuration \ policies \ Administrative Templates \ Windows Components \ Remote Desktop Services \ Remote Desktop Session Host \ Connection, or change to 999999. Then enter gpupdate in cmd to update some policies. But it is said to last only 120 days, then again!






Pit 3:uirecorder after initialization, edit the Config.json, add the following authentication parameters, remember at the end of the previous line add a comma!!! Otherwise, the following error will occur!
























Pit 5: The domestic NPM node is very slow, resulting in installation dependency failure, but the reminder is not obvious, resulting in difficult to troubleshoot problems.



Pits



Fortunately, there are several mirror sites in the country for us to use, I am using http://www.cnpmjs.org/



Very fast, the mirror station will be updated in real time, saving us a lot of time. How to change the source of the machine?



(1) Configure to the domestic mirror source via config



NPM Config Set registry http://registry.cnpmjs.org//configuration point to Source NPM info Express//Download install third Party Package



(2) Specify the download source via the NPM command



NPM--registry http://registry.cnpmjs.org Info Express



(3) Write source address in config file ~/.NPMRC file



Nano ~/.NPMRC//Open Profile Registry =https://registry.npm.taobao.org//write config file






Pit 6: Sometimes npm will be prompted not to find ..../package.json.



Pits: NPM init-f forces the file to be generated before installing additional dependencies






Pit 6: After updating the selenium-server version, you need to modify the following path to the new version of the file name












Pit 7: If the system starts and then selenium server reported the following port is occupied error






Change the server session settings here to Yes.












Pit 8: Add Chai Dependency Package after updating the latest version of Uirecorder



#npm Install Chai--save-dev



Uirecorder 2.0 uses Jwebdriver 2.0, does not require generator, and needs to be updated Jwebdriver



#npm Install Jwebdriver






The bat file encoding under pit 9:app is not the ASI, which causes the Web browser to fail when it is garbled, which makes the LAN agent add failed. After saving as ANSI encoding to resolve the problem, it has been suggested that the F2etest author update the encoding format of the relevant file, which is now uploaded to GitHub. However, I am currently switching host in this way or not successfully, reporting API errors.









Legacy issues 1:f2etest page under Opera cannot surf the Internet, desktop mode can






Pit 10: Browser to use Uirecorder to make calls, you need to put in the directory, the original path of the browser-related files copied to the location, automated execution success.



However, the chrome browser did not succeed.



The Firefox browser needs to be placed in C:\Program Files\Mozilla Firefox\firefox.exe. cannot be placed in C:\Program Files (x86) \mozilla Firefox\firefox.exe. Firefox also has a problem is not support mouse movemouse operation, all related operations failed to check from the Internet, Firefox itself is the problem, the Firefox team has been working on the solution, and then to the current six months ago the problem remains unresolved.






Pit 11: Local proxy mode switch host is only available in the browser cloud and does not take effect in the Webdriver cloud because Webdriver Cloud does not launch the browser through Browsers.bat. Before the automated test, in the project directory (cmd command execution directory) to create a new Hosts file, and then start the test is to change the hosts under the test completed automatically restore the original hosts.



F2etest and UI Recorder automated test environment deployment pits records


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.