CodePudding user response:
Haven't this kind of practice, you need to do is single sign-on, you first need to login is itself, or is nonsense, because now commercial website support qq, only commonly WeChat, pay treasure to the three parties, such as login (oauth2 agreement), if the research and development ability is not enough, just online to find a single sign-on (sso) framework or component, you can, since the research, anyway the login logic is not complicated,If it is to log in three sides 1 & gt; Crawler was used to simulate the login, and then return the information reverse injection (feasibility is not high, need a domain name such as coordination, involving the cross-domain) 2 & gt; Using programmable browser imitation fortress machine login mode to achieve (feasibility is high, but complex)
CodePudding user response:
1, if this site is other site (non-self), unless it is expressly to receive automatic login account information, or no solution;2, if it's own web site, the integration of a single sign-on, into account password to jump pages, automatic login page to obtain parameters,
CodePudding user response:
A typical automatic test method, search the selenium JavaExample look at this:
https://www.jianshu.com/p/1e15d2a7d514
CodePudding user response: