SPRINGFIELD, Ill. (AP) _ Bills requiring marriage license applicants to be tested for AIDS cleared both houses of the state Legislature, while a variety of other AIDS-related legislation also was passed by at least one chamber.

The state House of Representatives voted Friday to order health officials to trace the sexual contacts of AIDS victims. A more stringent measure for tracing contacts had been passed earlier by the Senate.

In light of Friday's votes, it appeared likely that some form of premarital testing and contact tracing proposals would win final approval in the General Assembly. Gov. James R. Thompson predicted earlier that such measures would pass overwhelmingly but has not said whether he would sign them.

The proposals for premarital AIDS testing won easy approval in both chambers, and while the bills are similar they are not identical. Each chamber's version now goes to the opposite chamber for debate. The legislative session ends June 30.

The measures requiring tracing of sexual contacts of AIDS victims were opposed by health-care experts who say they are costly and ineffective and could help spread the disease by discouraging victims from seeking help.

''This is politicians stepping in where experts fear to tread,'' said Rep. Barbara Flynn Currie. ''We will spend money in ways not helpful in combating the disease.''

Other bills approved Friday included:

- A measure passed by the Senate that would establish voluntary AIDS education for grades 6-12. Under the measure, school boards would have discretion in adopting AIDS education programs, and parents could take their children out of the classes with a written notice.

- A bill passed by the Senate that would require written consent for AIDS testing and provide safeguards on the disclosure of results and the identity of the person tested. The House passed a similar measure.

- A bill passed by the House unanimously that would create a statewide AIDS registry and pilot programs for the long-term care of AIDS patients.

Rep. Penny Pullen sponsored the House bill containing many of the most controversial measures, including mandatory AIDS testing for marriage license applicants and convicted sex offenders.

''It's time to move forward to protect the public from infection,'' she said.