Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Rizwan Akbar
Posts : 1
Join date : 2011-09-12

Logging test results/actions. Empty Logging test results/actions.

Mon Sep 12, 2011 2:44 pm
Dear All,

Can anyone please help me that how I can log the user actions in log file, e.g. click, sendKeys and other actions.

I will be thankful to you for your quick replies.

Thanks,
Rizwan Akbar
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Logging test results/actions. Empty Re: Logging test results/actions.

Tue Sep 13, 2011 6:16 pm
hi,

I think want to record every action performed on browser via script.

what you can do is to create a function which write in a text file the type of operation performed.

you just called that function every time an operation is performed.

Things to remember:
1. open txt file at start before execution starts.
2. write in opened file every time event fires.
3. write mode should be append so that existing log will not removed.
4. close the file at the end of execution.

This all can be done with help of programming language in which u code like java, C#, php etc.

Hope this will get an idea to you. Bets of luck.

Bye
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Logging test results/actions. Empty Re: Logging test results/actions.

Thu Sep 29, 2011 8:18 pm
You have to use log4J API in java for that.
Its a logging api and is having a lot of features.

Regards
Ashish
For selenium training please go to
http://qtpselenium.com/samplevideos/selenium/seleniumvideos.php
Sponsored content

Logging test results/actions. Empty Re: Logging test results/actions.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum