How Can I debug a script and execute it step by step?

Asked by vishal aggarwal on 2013-04-01

Hi,
I am coming from QTP automation and fairly new to webdriver/python/sst.As in qtp we can debug a script and step through a framework code to pinpoint exact source of error or run from a step, can we do the same anyhow with sst?

Regards,
Vishal Agg

Question information

Language:
English Edit question
Status:
Answered
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Last query:
2013-04-01
Last reply:
2013-05-01
vishal aggarwal (vishal-agg) said : #1

I guess this has nothing to do with the python/webdriver/sst ..its a basically a feature of IDE.so by using tools like Pydev I can have that desired functionality.Plz correct me if I am wrong.

Thanks,
VA

Leo Arias (elopio) said : #2

You can use the python debugger:
http://docs.python.org/2/library/pdb.html

Corey Goldberg (coreygoldberg) said : #3

check out 'debug()' in sst.actions.
it will drtop you into pdb and you can step from there.

Can you help with this problem?

Provide an answer of your own, or ask vishal aggarwal for more information if necessary.

To post a message you must log in.