No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hello, sorry if i am posting this in the wrong section but this is very urgent and i need help very quickly. i was contacted by my company today and was asked to delete all the posts that i have made on this website immediately. i cannot find "edit" or … |
|
Hey all, I am basically a QA tester. To ease some process, i need to download 2 files from some server and calculate the time taken to download each file. 1. The file names are constant 2. The location from where i want to download these files is constant Can … |
|
Hi, I have the below script which downloads few files from server and writes the file size, start time and download time to a file. Now i want a header for that file. The script does so, but when i run the script again, again the header is appended to … |
|
Hi, The below code extracts the branch number and the test environment to deploy that particular branches build on from a txt file (branch_dest.txt). Then it parses HTML pages to reach a webpage which contains some checkboxes. I want to check the "Select/Deselect All" checkbox and then click the "Deploy" … |
|
Hi, I have a code which uses HTMLParser to reach a webpage where an exe file is located. The code then downloads and installs the file on local machine. I need a solution for the below problem: HTMLParser reaches a webpage where there are links to clients_test2, clients_test5, clients_test8. Each … |
|
Hello, I am getting the below error when using mechanize to submit a webform. >>> Exception in Tkinter callback Traceback (most recent call last): File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) File "C:\Python26\lib\idlelib\MultiCall.py", line 159, in handler doafterhandler.pop()() File "C:\Python26\lib\idlelib\MultiCall.py", line 206, in <lambda> doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].remove(func) ValueError: … |
|
Hi, I am a tester and new to python. The code in bold should execute only if the webpage has the text 'BUILD COMPLETE'. This text is between the <th> tag and this is found using DataParser class. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser … |
|
Hi, After much research and help from forums, i have the following. Using HTMLParser to parse thru html pages and then finally reaching a webpage where i have to check all the checkboxes and then click the 'Deploy' button. Used ClientForm to do this. But i am getting some HTTP … |
|
Hi, I want to search for a particular text on an html page ---> Build Complete Further execution should be only if the build is successful which is denoted by the text 'Build Complete' on the webpage. Denoted in bold in the code below. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 … |
|
Hi, Please check the below code. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser import re # Fetching links using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(urlopen(url).read()) parser.close() return parser.links # Build url for Deploy page def get_deploy_url(): url = URL + "/buildresults/xxx_%s_nightly_build" % branch print … |
|
Hi, Im basically from QA. I have a piece of code in python that parses HTML pages to reach to a specific link on a webpage. The below code gets me the url of the link which needs to be clicked. What code should i write to simulate clicking a … |
|
Hi, The below code is doing the following 1. Reading the branch name and the destination from a txt file 2. Parsing thru HTML pages Basically, i want to deploy the build of the branch (supplied thru txt file) on a test environment (supplied thru txt file) The branch_dest file … |
|
Hi My txt file looks something like this: Branch: ltm_7.4 Destination: Test 5 [CODE] lines = open("branch_dest.txt").readlines() lines=[x.split() for x in lines] print lines branch = "%s" % lines[0][1].strip(': ') print branch destination = "%s" % lines[1][2].strip(': ') print destination [/CODE] I need to extract the branch name and the … |
|
Hi, I want to access a link starting with clients_test on a particular webpage. I have the following code client_re = re.compile(r"clients_test") def get_client_url(): url = get_artifacts_url() for link in get_links(url): if client_re.search(link["href"]): return "http://11.12.13.27:8080" + link["href"] Sometimes the page has many links beginnng with clients_test for e.g: clients_test4, clients_test5, … |
|
Hi, i am basically from QA. So what we do each morning is open a web browser with the address [url]http://11.12.13.27:8080/cruisecontrol[/url]. Then we click on the build with last nights date. Then we click on a folder say client. Then in that folder we click on an exe file say … |
|
Hi, I am basically from QA. What we testers do each day is 1. Open a web browser. Type in [url]http://hostname:8080/cruisecontrol[/url] (since we are in a particular network, only we can access this) 2. Check if the latest nightly build has been successful. If it is successful, deploy it on … |