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

Asked by vishal aggarwal

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:
Last reply:
Revision history for this message
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

Revision history for this message
Leo Arias (elopio) said :
#2

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

Revision history for this message
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.